Skip to content

Commit

Permalink
fix #9962: set session at the first place when construct `ConsoleWidg…
Browse files Browse the repository at this point in the history
…et` (#9963)

Signed-off-by: FinnChen <[email protected]>
  • Loading branch information
FinnChen authored and RomanNikitenko committed Sep 16, 2021
1 parent 201c321 commit 4d308c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/console/src/browser/console-widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export class ConsoleWidget extends BaseWidget implements StatefulWidget {
}
}));

this.session = this.sessionManager.selectedSession;
this.toDispose.push(this.sessionManager.onDidChangeSelectedSession(session => {
// Don't delete the last session by overriding it with 'undefined'
if (session) {
Expand Down

0 comments on commit 4d308c0

Please sign in to comment.