Skip to content

Commit 2b356eb

Browse files
committed
add missing awaits
Signed-off-by: Shi Chen <[email protected]>
1 parent 3f88e37 commit 2b356eb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/standardLanguageClient.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,15 +311,19 @@ export class StandardLanguageClient {
311311
commands.executeCommand(Commands.SHOW_REFERENCES, Uri.parse(uri), this.languageClient.protocol2CodeConverter.asPosition(position), locations.map(this.languageClient.protocol2CodeConverter.asLocation));
312312
}));
313313

314-
context.subscriptions.push(commands.registerCommand(Commands.CONFIGURATION_UPDATE, async (uri) => projectConfigurationUpdate(this.languageClient, uri)));
314+
context.subscriptions.push(commands.registerCommand(Commands.CONFIGURATION_UPDATE, async (uri) => {
315+
await projectConfigurationUpdate(this.languageClient, uri);
316+
}));
315317

316318
context.subscriptions.push(commands.registerCommand(Commands.IGNORE_INCOMPLETE_CLASSPATH, () => setIncompleteClasspathSeverity('ignore')));
317319

318320
context.subscriptions.push(commands.registerCommand(Commands.IGNORE_INCOMPLETE_CLASSPATH_HELP, () => {
319321
commands.executeCommand(Commands.OPEN_BROWSER, Uri.parse('https://github.com/redhat-developer/vscode-java/wiki/%22Classpath-is-incomplete%22-warning'));
320322
}));
321323

322-
context.subscriptions.push(commands.registerCommand(Commands.PROJECT_CONFIGURATION_STATUS, async (uri, status) => setProjectConfigurationUpdate(this.languageClient, uri, status)));
324+
context.subscriptions.push(commands.registerCommand(Commands.PROJECT_CONFIGURATION_STATUS, async (uri, status) => {
325+
await setProjectConfigurationUpdate(this.languageClient, uri, status);
326+
}));
323327

324328
context.subscriptions.push(commands.registerCommand(Commands.APPLY_WORKSPACE_EDIT, (obj) => {
325329
applyWorkspaceEdit(obj, this.languageClient);

0 commit comments

Comments
 (0)