Skip to content

Commit 8150858

Browse files
committed
Make server.codeLens async
1 parent 9430597 commit 8150858

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,11 +472,11 @@ function sendInlayHintsRefresh() {
472472
send(request);
473473
}
474474

475-
function codeLens(msg: p.RequestMessage) {
475+
async function codeLens(msg: p.RequestMessage) {
476476
const params = msg.params as p.CodeLensParams;
477477
const filePath = fileURLToPath(params.textDocument.uri);
478478

479-
const response = utils.runAnalysisCommand(
479+
const response = await utils.runAnalysisCommand(
480480
filePath,
481481
["codeLens", filePath],
482482
msg
@@ -1262,7 +1262,7 @@ async function onMessage(msg: p.Message) {
12621262
let params = msg.params as CodeLensParams;
12631263
let extName = path.extname(params.textDocument.uri);
12641264
if (extName === c.resExt) {
1265-
send(codeLens(msg));
1265+
send(await codeLens(msg));
12661266
}
12671267
} else if (msg.method === p.SignatureHelpRequest.method) {
12681268
let params = msg.params as SignatureHelpParams;

0 commit comments

Comments
 (0)