Skip to content

Commit a22747f

Browse files
committed
Tweak isfs workaround for vscode.workspace.getWorkspaceFolder quirk
1 parent 4ba0677 commit a22747f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/compile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ What do you want to do?`,
124124

125125
function updateOthers(others: string[], baseUri: vscode.Uri) {
126126
let workspaceFolder = vscode.workspace.getWorkspaceFolder(baseUri);
127-
if (!workspaceFolder && baseUri.scheme !== "file") {
127+
if (!workspaceFolder && (baseUri.scheme === FILESYSTEM_SCHEMA || baseUri.scheme === FILESYSTEM_READONLY_SCHEMA)) {
128128
// hack to deal with problem seen with isfs* schemes
129129
workspaceFolder = vscode.workspace.getWorkspaceFolder(baseUri.with({ path: "" }));
130130
}

0 commit comments

Comments
 (0)