@@ -34,11 +34,11 @@ import { DatabasePanelCommands } from "../../common/commands";
3434import { App } from "../../common/app" ;
3535
3636export interface RemoteDatabaseQuickPickItem extends QuickPickItem {
37- kind : string ;
37+ remoteDatabaseKind : string ;
3838}
3939
4040export interface AddListQuickPickItem extends QuickPickItem {
41- kind : DbListKind ;
41+ databaseKind : DbListKind ;
4242}
4343
4444export class DbPanel extends DisposableObject {
@@ -113,19 +113,19 @@ export class DbPanel extends DisposableObject {
113113 ) {
114114 await this . addNewRemoteRepo ( highlightedItem . parentListName ) ;
115115 } else {
116- const quickPickItems = [
116+ const quickPickItems : RemoteDatabaseQuickPickItem [ ] = [
117117 {
118118 label : "$(repo) From a GitHub repository" ,
119119 detail : "Add a variant analysis repository from GitHub" ,
120120 alwaysShow : true ,
121- kind : "repo" ,
121+ remoteDatabaseKind : "repo" ,
122122 } ,
123123 {
124124 label : "$(organization) All repositories of a GitHub org or owner" ,
125125 detail :
126126 "Add a variant analysis list of repositories from a GitHub organization/owner" ,
127127 alwaysShow : true ,
128- kind : "owner" ,
128+ remoteDatabaseKind : "owner" ,
129129 } ,
130130 ] ;
131131 const databaseKind =
@@ -142,9 +142,9 @@ export class DbPanel extends DisposableObject {
142142 // We set 'true' to make this a silent exception.
143143 throw new UserCancellationException ( "No repository selected" , true ) ;
144144 }
145- if ( databaseKind . kind === "repo" ) {
145+ if ( databaseKind . remoteDatabaseKind === "repo" ) {
146146 await this . addNewRemoteRepo ( ) ;
147- } else if ( databaseKind . kind === "owner" ) {
147+ } else if ( databaseKind . remoteDatabaseKind === "owner" ) {
148148 await this . addNewRemoteOwner ( ) ;
149149 }
150150 }
0 commit comments