Skip to content

Commit 915595c

Browse files
Eskibearrgrunber
authored andcommitted
stop calling logFailedRequest which doesn't exist
Signed-off-by: Yan Zhang <[email protected]>
1 parent 86c572d commit 915595c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/extension.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export function activate(context: ExtensionContext): Promise<ExtensionAPI> {
264264
// https://github.com/redhat-developer/vscode-java/issues/2130
265265
// include all diagnostics for the current line in the CodeActionContext params for the performance reason
266266
provideCodeActions: (document, range, context, token, next) => {
267-
const client: any = standardClient.getClient();
267+
const client: LanguageClient = standardClient.getClient();
268268
const params: CodeActionParams = {
269269
textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document),
270270
range: client.code2ProtocolConverter.asRange(range),
@@ -307,8 +307,7 @@ export function activate(context: ExtensionContext): Promise<ExtensionAPI> {
307307
}
308308
return result;
309309
}, (error) => {
310-
client.logFailedRequest(CodeActionRequest.type, error);
311-
return Promise.resolve([]);
310+
return client.handleFailedRequest(CodeActionRequest.type, token, error, []);
312311
});
313312
}
314313
},

0 commit comments

Comments
 (0)