Skip to content

Commit

Permalink
fix interpreters manager active session (#2785)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeM authored Apr 17, 2024
1 parent 342264f commit e790eef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ export const TopActionBarInterpretersManager = (props: TopActionBarInterpretersM
// Create the disposable store for cleanup.
const disposableStore = new DisposableStore();

// Add the onDidStartRuntime event handler.
// Add the onDidChangeForegroundSession event handler.
disposableStore.add(
context.runtimeSessionService.onDidStartRuntime(session => {
if (session.metadata.sessionMode === LanguageRuntimeSessionMode.Console) {
context.runtimeSessionService.onDidChangeForegroundSession(session => {
if (session?.metadata.sessionMode === LanguageRuntimeSessionMode.Console) {
setActiveSession(
context.runtimeSessionService.foregroundSession);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ export class RuntimeSessionService extends Disposable implements IRuntimeSession

this._foregroundSession = session;

// Fire the onDidChangeActiveRuntime event.
// Fire the onDidChangeForegroundSession event.
this._onDidChangeForegroundSessionEmitter.fire(this._foregroundSession);
}

Expand Down

0 comments on commit e790eef

Please sign in to comment.