Inform extensions that call 'vscode.openFolder' with file URIs created with URI.parse #57267
Closed
9 of 17 tasks
Labels
feature-request
Request for new features or functionality
plan-item
VS Code - planned item for upcoming
verified
Verification succeeded
Milestone
Looking at the source code of extensions on the Marketplace, we found the following extension that seem to use the 'vscode.openFolder' command with an invalid file URI.
When creating a URI from a file path, always use
vscode.URI.file(path)
, e.gvscode.URI.file('c:\\test')
Use
vscode.URI.parse(uriString)
when the input string is in the formscheme://authority/path
15,41: vscode.commands.executeCommand('vscode.openFolder', tempDirUri, true);
no repo
49,45: await vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(dirObj[0].path));
Fix URI creation from path basys/vscode-basys#1
24,45: vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(dir), true);
23,45: vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(dir), true);
24,45: vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(dir), true);
24,45: vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(dir), true);
24,45: vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(dir), true);
24,45: vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(dir), true);
32,45: vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(dirPath), true);
24,45: vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(dir), true);
24,45: vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(dir), true);
no repo
18,30: .executeCommand("vscode.openFolder", repoUri, newWindow)
Fix URI creation from path cg-cnu/vscode-krita-plugin-generator#1
55,47: yield vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(logbookDirectory), openInNewWindow // whether the logbook directory should open in a new window or not.
no repo
22,37: vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(data.projectFolder));
no repo
24,50: return vscode_1.commands.executeCommand('vscode.openFolder', projectUri).then(null, console.error);
no issue tracking FYI @joeferraro @kidtsunami
98,49: vscode.commands.executeCommand("vscode.openFolder", vscode.Uri.parse(selectedDir));
*** privat repo *** FYI @dphans
133,49: vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(workingFolder));
133,49: vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(workingFolder));
221,55: yield vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(workingFolder));
Fix URI creation from path dphans/micropython-ide-vscode#6
373,53: vscode.commands.executeCommand('vscode.openFolder', uri, true);
192,55: vscode_1.commands.executeCommand('vscode.openFolder', uri, true);
Fix URI creation from path editor-rs/vscode-rust#385
37,65: vscode.commands.executeCommand("vscode.openFolder", vscode.Uri.parse(folder[0].fsPath));
Fix URI creation from path matijarmk/dotnet-core-commands#13
57,45: vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(dir));
Fix URI creation from path AL#3467
136,51: yield vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(gitRepoFolder));
27,51: yield vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(gitRepoFolder));
27,51: yield vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(gitRepoFolder));
Fix URI creation from path NAVBaaS/GitIntegration#16
43,55: yield vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(path.join(response.data.projectUri, response.data.projectName)));
salesforce.salesforcedx-vscode-core/out/src/commands/isvdebugging/bootstrapCmd.js
273,51: yield vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(projectPath));
Fix URI creation from path forcedotcom/salesforcedx-vscode#600
151,53: vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(location));
*** no repo ***
325,34: vscode.commands.executeCommand('vscode.openFolder', uri);
Release version 1.2.1 Samsung/vscode-extension-tizentv#12
87,53: vscode.commands.executeCommand('vscode.openFolder', uri);
*** no repo ***
The text was updated successfully, but these errors were encountered: