We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 406c410 commit b20d9c4Copy full SHA for b20d9c4
src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts
@@ -432,9 +432,7 @@ export class ShellIntegrationAddon extends Disposable implements IShellIntegrati
432
433
const [command] = data.split(';');
434
435
- // We need to manually make sure the given URI is not merely `file://` because The `URI.parse` handles it
436
- // exactly as it handles `file:///` (which is a valid URI for us here).
437
- if (command.startsWith('file://') && command.length > 7) {
+ if (command.match(/^file:\/\/.*\//)) {
438
const uri = URI.parse(command);
439
if (uri.path && uri.path.length > 0) {
440
this._updateCwd(uri.path);
0 commit comments