Skip to content

Commit c775947

Browse files
committed
Use SQL file type icon for example items
Signed-off-by: Seb Julliand <[email protected]>
1 parent 45d688c commit c775947

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/examples/exampleBrowser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Event, EventEmitter, ExtensionContext, MarkdownString, ThemeIcon, TreeDataProvider, TreeItem, TreeItemCollapsibleState, commands, window, workspace } from "vscode";
1+
import { Event, EventEmitter, ExtensionContext, MarkdownString, ThemeIcon, TreeDataProvider, TreeItem, TreeItemCollapsibleState, Uri, commands, window, workspace } from "vscode";
22
import { Examples, SQLExample, ServiceInfoLabel } from ".";
33
import { getInstance } from "../../base";
44
import { OSData, fetchSystemInfo } from "../../config";
@@ -109,7 +109,7 @@ class SQLExampleItem extends TreeItem {
109109
constructor(example: SQLExample) {
110110
super(example.name, TreeItemCollapsibleState.None);
111111
this.iconPath = ThemeIcon.File;
112-
112+
this.resourceUri = Uri.parse('_.sql');
113113
this.tooltip = new MarkdownString(['```sql', example.content.join(`\n`), '```'].join(`\n`));
114114

115115
this.command = {

0 commit comments

Comments
 (0)