Skip to content

Commit

Permalink
Fix shell integration detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Raj committed Nov 29, 2023
1 parent 61fcf3a commit e77f121
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,8 @@ export class ShellIntegrationService implements IShellIntegrationService {
const deferred = createDeferred<void>();
const timestamp = new Date().getTime();
const name = `Python ${timestamp}`;
const onDidExecuteTerminalCommand = this.appShell.onDidExecuteTerminalCommand?.bind(this.appShell);
if (!onDidExecuteTerminalCommand) {
// Proposed API is not available, assume shell integration is working at this point.
return true;
}
try {
const disposable = onDidExecuteTerminalCommand((e) => {
const disposable = this.appShell.onDidExecuteTerminalCommand!((e) => {
if (e.terminal.name === name) {
deferred.resolve();
}
Expand Down

0 comments on commit e77f121

Please sign in to comment.