Skip to content

Commit 940c694

Browse files
committed
Make folder-specific settings for ISFS folder work again
1 parent 68ecc09 commit 940c694

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/providers/FileSystemProvider/FileSystemProvider.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
145145
}
146146

147147
public stat(uri: vscode.Uri): Promise<vscode.FileStat> {
148-
uri = redirectDotvscodeRoot(uri);
148+
const redirectedUri = redirectDotvscodeRoot(uri);
149+
if (redirectedUri.path !== uri.path) {
150+
// When redirecting the /.vscode subtree we must fill in as-yet-unvisited folders to fix https://github.com/intersystems-community/vscode-objectscript/issues/1143
151+
return this._lookup(redirectedUri, true);
152+
}
149153
return this._lookup(uri);
150154
}
151155

0 commit comments

Comments
 (0)