Skip to content

Commit 9430597

Browse files
committed
Make server.inlayHint async
1 parent 82b7cdb commit 9430597

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
@@ -445,11 +445,11 @@ async function hover(msg: p.RequestMessage) {
445445
return response;
446446
}
447447

448-
function inlayHint(msg: p.RequestMessage) {
448+
async function inlayHint(msg: p.RequestMessage) {
449449
const params = msg.params as p.InlayHintParams;
450450
const filePath = fileURLToPath(params.textDocument.uri);
451451

452-
const response = utils.runAnalysisCommand(
452+
const response = await utils.runAnalysisCommand(
453453
filePath,
454454
[
455455
"inlayHint",
@@ -1256,7 +1256,7 @@ async function onMessage(msg: p.Message) {
12561256
let params = msg.params as InlayHintParams;
12571257
let extName = path.extname(params.textDocument.uri);
12581258
if (extName === c.resExt) {
1259-
send(inlayHint(msg));
1259+
send(await inlayHint(msg));
12601260
}
12611261
} else if (msg.method === p.CodeLensRequest.method) {
12621262
let params = msg.params as CodeLensParams;

0 commit comments

Comments
 (0)