File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
extensions/ql-vscode/src/queries-panel Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
1212import { MultiFileSystemWatcher } from "../common/vscode/multi-file-system-watcher" ;
1313import { App } from "../common/app" ;
1414import { FileTreeDirectory , FileTreeLeaf } from "../common/file-tree-nodes" ;
15+ import { getOnDiskWorkspaceFolders } from "../helpers" ;
1516
1617/**
1718 * The results of discovering queries.
@@ -121,7 +122,10 @@ export class QueryDiscovery extends Discovery<QueryDiscoveryResults> {
121122 const name = workspaceFolder . name ;
122123
123124 // Don't try discovery on workspace folders that don't exist on the filesystem
124- if ( ! ( await pathExists ( fullPath ) ) ) {
125+ if (
126+ ! ( await pathExists ( fullPath ) ) ||
127+ ! getOnDiskWorkspaceFolders ( ) . includes ( fullPath )
128+ ) {
125129 return undefined ;
126130 }
127131
You can’t perform that action at this time.
0 commit comments