Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bedd06b

Browse files
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‎

Lines changed: 2 additions & 2 deletions
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()=>{awaitthis.EnableISEMode();});
3434
this.defaultCommandRegistration = vscode.commands.registerCommand(
35-
"PowerShell.DisableISEMode", this.DisableISEMode);
35+
"PowerShell.DisableISEMode", async()=>{awaitthis.DisableISEMode();});
3636
}
3737

3838
public dispose() {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /