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.
1 parent 711c52b commit 8861fc7Copy full SHA for 8861fc7
src/session.ts
@@ -383,6 +383,15 @@ export class SessionManager {
383
384
this.statusBarItem.command = this.ShowSessionMenuCommandName;
385
this.statusBarItem.show();
386
+ vscode.window.onDidChangeActiveTextEditor(textEditor => {
387
+ if (textEditor === undefined
388
+ || textEditor.document.languageId !== "powershell") {
389
+ this.statusBarItem.hide();
390
+ }
391
+ else {
392
+ this.statusBarItem.show();
393
394
+ })
395
}
396
397
0 commit comments