Skip to content

Commit 931ea9d

Browse files
committed
Type of result for definition command.
1 parent fca68b5 commit 931ea9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ function onMessage(msg: m.Message) {
360360
send(hoverResponse);
361361
} else if (msg.method === p.DefinitionRequest.method) {
362362
// https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_definition
363-
let result: Location | null = utils.runAnalysisAfterSanityCheck(
363+
let result: Location[] | null = utils.runAnalysisAfterSanityCheck(
364364
msg,
365365
(filePath) => [
366366
"definition",

0 commit comments

Comments
 (0)