Skip to content

Commit 93b6abe

Browse files
authored
Rename iconPath to icon (#1742)
1 parent 616a269 commit 93b6abe

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

extensions/ql-vscode/src/databases/ui/db-tree-view-item.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
export class DbTreeViewItem extends vscode.TreeItem {
1717
constructor(
1818
public readonly dbItem: DbItem | undefined,
19-
public readonly iconPath: vscode.ThemeIcon | undefined,
19+
public readonly icon: vscode.ThemeIcon | undefined,
2020
public readonly label: string,
2121
public readonly tooltip: string | undefined,
2222
public readonly collapsibleState: vscode.TreeItemCollapsibleState,

extensions/ql-vscode/src/vscode-tests/minimal-workspace/databases/db-panel.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ describe('db panel', async () => {
214214
): void {
215215
expect(item.label).to.equal(`Top ${n} repositories`);
216216
expect(item.tooltip).to.equal(`Top ${n} repositories of a language`);
217-
expect(item.iconPath).to.deep.equal(new vscode.ThemeIcon('github'));
217+
expect(item.icon).to.deep.equal(new vscode.ThemeIcon('github'));
218218
expect(item.collapsibleState).to.equal(vscode.TreeItemCollapsibleState.None);
219219
}
220220

@@ -225,7 +225,7 @@ describe('db panel', async () => {
225225
): void {
226226
expect(item.label).to.equal(listName);
227227
expect(item.tooltip).to.be.undefined;
228-
expect(item.iconPath).to.be.undefined;
228+
expect(item.icon).to.be.undefined;
229229
expect(item.collapsibleState).to.equal(vscode.TreeItemCollapsibleState.Collapsed);
230230
expect(item.children).to.be.ok;
231231
expect(item.children.length).to.equal(repos.length);
@@ -241,7 +241,7 @@ describe('db panel', async () => {
241241
): void {
242242
expect(item.label).to.equal(ownerName);
243243
expect(item.tooltip).to.be.undefined;
244-
expect(item.iconPath).to.deep.equal(new vscode.ThemeIcon('organization'));
244+
expect(item.icon).to.deep.equal(new vscode.ThemeIcon('organization'));
245245
expect(item.collapsibleState).to.equal(vscode.TreeItemCollapsibleState.None);
246246
expect(item.children).to.be.ok;
247247
expect(item.children.length).to.equal(0);
@@ -253,7 +253,7 @@ describe('db panel', async () => {
253253
): void {
254254
expect(item.label).to.equal(repoName);
255255
expect(item.tooltip).to.be.undefined;
256-
expect(item.iconPath).to.deep.equal(new vscode.ThemeIcon('database'));
256+
expect(item.icon).to.deep.equal(new vscode.ThemeIcon('database'));
257257
expect(item.collapsibleState).to.equal(vscode.TreeItemCollapsibleState.None);
258258
}
259259
});

0 commit comments

Comments
 (0)