Skip to content

Commit a73eb9c

Browse files
anthonykim1karthiknadig
authored andcommitted
Wait 0.5 second for shell integration event, otherwise fall back to sendtext. (#24248)
For some reason, it seems like shell integration may take awhile to get activated: #24239 Performance issue seemed to indicate exactly 3 second coming from the https://github.com/microsoft/vscode-python/pull/24078/files#diff-5290f3097d5f92e3495c8abfbe095dff83c3f8de3dcac08ab2d0304f71bb412fR93, so lets try reducing this to 0.5 second and let user fall back to sendText. We may need further investigate why onDidChangeTerminalShellIntegration may be taking awhile.
1 parent 1c9cccf commit a73eb9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/common/terminal/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class TerminalService implements ITerminalService, Disposable {
9191
resolve(true);
9292
},
9393
);
94-
const TIMEOUT_DURATION = 3000;
94+
const TIMEOUT_DURATION = 500;
9595
setTimeout(() => {
9696
this.executeCommandListeners.add(shellIntegrationChangeEventListener);
9797
resolve(true);

0 commit comments

Comments
 (0)