File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/vs/platform/terminal/common/xterm Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -342,9 +342,7 @@ export class ShellIntegrationAddon extends Disposable implements IShellIntegrati
342
342
// - OSC 1337 ; CurrentDir=<Cwd> ST (iTerm)
343
343
// - OSC 7 ; scheme://cwd ST (Unknown origin)
344
344
// - OSC 9 ; 9 ; <cwd> ST (cmder)
345
- this . _createOrGetCwdDetection ( ) . updateCwd ( value ) ;
346
- const commandDetection = this . capabilities . get ( TerminalCapability . CommandDetection ) ;
347
- commandDetection ?. setCwd ( value ) ;
345
+ this . _updateCwd ( value ) ;
348
346
return true ;
349
347
}
350
348
case 'IsWindows' : {
@@ -362,6 +360,12 @@ export class ShellIntegrationAddon extends Disposable implements IShellIntegrati
362
360
return false ;
363
361
}
364
362
363
+ private _updateCwd ( value : string ) {
364
+ this . _createOrGetCwdDetection ( ) . updateCwd ( value ) ;
365
+ const commandDetection = this . capabilities . get ( TerminalCapability . CommandDetection ) ;
366
+ commandDetection ?. setCwd ( value ) ;
367
+ }
368
+
365
369
private _doHandleITermSequence ( data : string ) : boolean {
366
370
if ( ! this . _terminal ) {
367
371
return false ;
You can’t perform that action at this time.
0 commit comments