File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -550,7 +550,7 @@ function references(msg: p.RequestMessage) {
550550 // https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_references
551551 let params = msg . params as p . ReferenceParams ;
552552 let filePath = fileURLToPath ( params . textDocument . uri ) ;
553- let result : typeof p . ReferencesRequest . type = utils . getReferencesForPosition (
553+ let result : typeof p . ReferencesRequest . type = await utils . getReferencesForPosition (
554554 filePath ,
555555 params . position
556556 ) ;
@@ -567,7 +567,7 @@ function prepareRename(msg: p.RequestMessage): p.ResponseMessage {
567567 // https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_prepareRename
568568 let params = msg . params as p . PrepareRenameParams ;
569569 let filePath = fileURLToPath ( params . textDocument . uri ) ;
570- let locations : null | p . Location [ ] = utils . getReferencesForPosition (
570+ let locations : null | p . Location [ ] = await utils . getReferencesForPosition (
571571 filePath ,
572572 params . position
573573 ) ;
Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ export let runAnalysisCommand = async (
375375 return response ;
376376} ;
377377
378- export let getReferencesForPosition = (
378+ export let getReferencesForPosition = async (
379379 filePath : p . DocumentUri ,
380380 position : p . Position
381381) =>
You can’t perform that action at this time.
0 commit comments