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.
activateConsoleSession()
1 parent 9b86e5c commit d87869aCopy full SHA for d87869a
extensions/positron-r/src/session-manager.ts
@@ -99,6 +99,9 @@ export class RSessionManager implements vscode.Disposable {
99
throw Error(`Foreground session with ID ${sessionId} must not be a background session.`);
100
}
101
102
+ // Multiple `activateConsoleSession()` might run concurrently if the
103
+ // `didChangeForegroundSession` event fires rapidly. We might want to queue
104
+ // the handling.
105
this._lastForegroundSessionId = session.metadata.sessionId;
106
await this.activateConsoleSession(session, 'foreground session changed');
107
0 commit comments