File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import type {
1212 VariantAnalysisScannedRepositoryResult ,
1313} from "../variant-analysis/shared/variant-analysis" ;
1414import type { QLDebugConfiguration } from "../debugger/debug-configuration" ;
15- import { QueryTreeViewItem } from "../queries-panel/query-tree-view-item" ;
15+ import type { QueryTreeViewItem } from "../queries-panel/query-tree-view-item" ;
1616
1717// A command function matching the signature that VS Code calls when
1818// a command is invoked from a context menu on a TreeView with
Original file line number Diff line number Diff line change @@ -27,8 +27,10 @@ export class QueriesModule extends DisposableObject {
2727 }
2828
2929 public getCommands ( ) : QueriesPanelCommands {
30- if ( ! this . shouldInitializeQueriesPanel ) {
31- return { } as any as QueriesPanelCommands ;
30+ if ( ! this . shouldInitializeQueriesPanel ( ) ) {
31+ return {
32+ "codeQLQueries.runLocalQueryContextInline" : ( ) => Promise . resolve ( ) ,
33+ } ;
3234 }
3335
3436 if ( ! this . queriesPanel ) {
Original file line number Diff line number Diff line change 1- import * as vscode from "vscode" ;
21import { DisposableObject } from "../common/disposable-object" ;
32import { QueryTreeDataProvider } from "./query-tree-data-provider" ;
43import { QueryDiscovery } from "./query-discovery" ;
54import { QueriesPanelCommands } from "../common/commands" ;
65import { QueryTreeViewItem } from "./query-tree-view-item" ;
76import { App } from "../common/app" ;
7+ import { Uri , window } from "vscode" ;
88
99export class QueriesPanel extends DisposableObject {
1010 public constructor (
@@ -15,7 +15,7 @@ export class QueriesPanel extends DisposableObject {
1515
1616 const dataProvider = new QueryTreeDataProvider ( queryDiscovery ) ;
1717
18- const treeView = vscode . window . createTreeView ( "codeQLQueries" , {
18+ const treeView = window . createTreeView ( "codeQLQueries" , {
1919 treeDataProvider : dataProvider ,
2020 } ) ;
2121 this . push ( treeView ) ;
@@ -32,7 +32,7 @@ export class QueriesPanel extends DisposableObject {
3232 ) : Promise < void > {
3333 await this . app . queryServerCommands . execute (
3434 "codeQLQueries.runLocalQueryFromQueriesPanel" ,
35- vscode . Uri . file ( queryTreeViewItem . path ) ,
35+ Uri . file ( queryTreeViewItem . path ) ,
3636 ) ;
3737 }
3838}
You can’t perform that action at this time.
0 commit comments