File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -529,11 +529,11 @@ async function definition(msg: p.RequestMessage) {
529
529
return response ;
530
530
}
531
531
532
- function typeDefinition ( msg : p . RequestMessage ) {
532
+ async function typeDefinition ( msg : p . RequestMessage ) {
533
533
// https://microsoft.github.io/language-server-protocol/specification/specification-current/#textDocument_typeDefinition
534
534
let params = msg . params as p . TypeDefinitionParams ;
535
535
let filePath = fileURLToPath ( params . textDocument . uri ) ;
536
- let response = utils . runAnalysisCommand (
536
+ let response = await utils . runAnalysisCommand (
537
537
filePath ,
538
538
[
539
539
"typeDefinition" ,
@@ -1228,7 +1228,7 @@ async function onMessage(msg: p.Message) {
1228
1228
} else if ( msg . method === p . DefinitionRequest . method ) {
1229
1229
send ( await definition ( msg ) ) ;
1230
1230
} else if ( msg . method === p . TypeDefinitionRequest . method ) {
1231
- send ( typeDefinition ( msg ) ) ;
1231
+ send ( await typeDefinition ( msg ) ) ;
1232
1232
} else if ( msg . method === p . ReferencesRequest . method ) {
1233
1233
send ( references ( msg ) ) ;
1234
1234
} else if ( msg . method === p . PrepareRenameRequest . method ) {
You can’t perform that action at this time.
0 commit comments