Skip to content

Commit bedd06b

Browse files
committed
WIP: await on enable/disable ISE mode to fix race condition?
1 parent 97be1a7 commit bedd06b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/features/ISECompatibility.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ export class ISECompatibilityFeature implements vscode.Disposable {
3030

3131
constructor() {
3232
this.iseCommandRegistration = vscode.commands.registerCommand(
33-
"PowerShell.EnableISEMode", this.EnableISEMode);
33+
"PowerShell.EnableISEMode", async () => { await this.EnableISEMode(); });
3434
this.defaultCommandRegistration = vscode.commands.registerCommand(
35-
"PowerShell.DisableISEMode", this.DisableISEMode);
35+
"PowerShell.DisableISEMode", async () => { await this.DisableISEMode(); } );
3636
}
3737

3838
public dispose() {

0 commit comments

Comments
 (0)