Skip to content

Commit c069eb8

Browse files
testforstephenfbricon
authored andcommitted
Fix the settings format for didChangeConfiguration request
Signed-off-by: Jinbo Wang <[email protected]>
1 parent e8491ac commit c069eb8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/extension.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,11 @@ export function activate(context: ExtensionContext): Promise<ExtensionAPI> {
172172
middleware: {
173173
workspace: {
174174
didChangeConfiguration: () => {
175-
languageClient.sendNotification(DidChangeConfigurationNotification.type, { settings: getJavaConfig(requirements.java_home) });
175+
languageClient.sendNotification(DidChangeConfigurationNotification.type, {
176+
settings: {
177+
java: getJavaConfig(requirements.java_home),
178+
}
179+
});
176180
onConfigurationChange(languageClient, context);
177181
}
178182
}

0 commit comments

Comments
 (0)