Add icon
This commit is contained in:
@@ -501,6 +501,11 @@
|
|||||||
"command": "codeQL.copyVersion",
|
"command": "codeQL.copyVersion",
|
||||||
"title": "CodeQL: Copy Version Information"
|
"title": "CodeQL: Copy Version Information"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"command": "codeQLQueries.runLocalQueryContextInline",
|
||||||
|
"title": "Run local query",
|
||||||
|
"icon": "$(run)"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"command": "codeQLVariantAnalysisRepositories.openConfigFile",
|
"command": "codeQLVariantAnalysisRepositories.openConfigFile",
|
||||||
"title": "Open database configuration file",
|
"title": "Open database configuration file",
|
||||||
@@ -1095,6 +1100,11 @@
|
|||||||
"group": "1_queryHistory@1",
|
"group": "1_queryHistory@1",
|
||||||
"when": "viewItem == remoteResultsItem"
|
"when": "viewItem == remoteResultsItem"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"command": "codeQLQueries.runLocalQueryContextInline",
|
||||||
|
"group": "inline",
|
||||||
|
"when": "view == codeQLQueries && viewItem == queryFile"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"command": "codeQLTests.showOutputDifferences",
|
"command": "codeQLTests.showOutputDifferences",
|
||||||
"group": "qltest@1",
|
"group": "qltest@1",
|
||||||
@@ -1274,6 +1284,10 @@
|
|||||||
"command": "codeQL.openDataExtensionsEditor",
|
"command": "codeQL.openDataExtensionsEditor",
|
||||||
"when": "config.codeQL.canary && config.codeQL.dataExtensions.editor"
|
"when": "config.codeQL.canary && config.codeQL.dataExtensions.editor"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"command": "codeQLQueries.runLocalQueryContextInline",
|
||||||
|
"when": "false"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"command": "codeQLVariantAnalysisRepositories.openConfigFile",
|
"command": "codeQLVariantAnalysisRepositories.openConfigFile",
|
||||||
"when": "false"
|
"when": "false"
|
||||||
|
|||||||
@@ -9,16 +9,17 @@ export class QueryTreeViewItem extends vscode.TreeItem {
|
|||||||
) {
|
) {
|
||||||
super(name);
|
super(name);
|
||||||
this.tooltip = path;
|
this.tooltip = path;
|
||||||
this.description = language;
|
|
||||||
this.collapsibleState = this.children.length
|
|
||||||
? vscode.TreeItemCollapsibleState.Collapsed
|
|
||||||
: vscode.TreeItemCollapsibleState.None;
|
|
||||||
if (this.children.length === 0) {
|
if (this.children.length === 0) {
|
||||||
|
this.description = language;
|
||||||
|
this.collapsibleState = vscode.TreeItemCollapsibleState.None;
|
||||||
|
this.contextValue = "queryFile";
|
||||||
this.command = {
|
this.command = {
|
||||||
title: "Open",
|
title: "Open",
|
||||||
command: "vscode.open",
|
command: "vscode.open",
|
||||||
arguments: [vscode.Uri.file(path)],
|
arguments: [vscode.Uri.file(path)],
|
||||||
};
|
};
|
||||||
|
} else {
|
||||||
|
this.collapsibleState = vscode.TreeItemCollapsibleState.Collapsed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user