Skip to content

Commit e1dae0b

Browse files
author
Dave Bartolomeo
committed
Avoid identifier collision with new VS Code version
1 parent b0940e6 commit e1dae0b

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

extensions/ql-vscode/src/databases/ui/db-panel.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ import { DatabasePanelCommands } from "../../common/commands";
3434
import { App } from "../../common/app";
3535

3636
export interface RemoteDatabaseQuickPickItem extends QuickPickItem {
37-
kind: string;
37+
remoteDatabaseKind: string;
3838
}
3939

4040
export interface AddListQuickPickItem extends QuickPickItem {
41-
kind: DbListKind;
41+
databaseKind: DbListKind;
4242
}
4343

4444
export 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

Comments
 (0)