Skip to content

Commit

Permalink
Fix deadlock caused by command invoke in string expansion during acti…
Browse files Browse the repository at this point in the history
…vation (#1532)
  • Loading branch information
xisui-MSFT authored Nov 9, 2020
1 parent 729a749 commit 67b6033
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1225,9 +1225,11 @@ async function setup(context: vscode.ExtensionContext, progress: ProgressHandle)

// Register a task provider to resolve tasks
// TODO: extend
cmakeTaskProvider = vscode.tasks.registerTaskProvider(CMakeTaskProvider.CMakeType, new CMakeTaskProvider({
rollbar.invokeAsync(localize('registerTaskProvider', 'Register the task provider.'), async () => {
cmakeTaskProvider = vscode.tasks.registerTaskProvider(CMakeTaskProvider.CMakeType, new CMakeTaskProvider({
build: await ext.tasksBuildCommand()
}));
});
}

class SchemaProvider implements vscode.TextDocumentContentProvider {
Expand Down

0 comments on commit 67b6033

Please sign in to comment.