@@ -725,6 +725,9 @@ await this.RunScriptDiagnosticsAsync(
725
725
}
726
726
}
727
727
728
+ // NEED TO CHECK FILE GLOBBING HERE!!
729
+ // This is the handler for textDocument/definition - https://microsoft.github.io/language-server-protocol/specification#textDocument_definition
730
+ // It searches the workspace for a function reference, which is then used as the definition
728
731
protected async Task HandleDefinitionRequestAsync (
729
732
TextDocumentPositionParams textDocumentPosition ,
730
733
RequestContext < Location [ ] > requestContext )
@@ -748,6 +751,7 @@ protected async Task HandleDefinitionRequestAsync(
748
751
await editorSession . LanguageService . GetDefinitionOfSymbolAsync (
749
752
scriptFile ,
750
753
foundSymbol ,
754
+ // Probably something here...
751
755
editorSession . Workspace ) ;
752
756
753
757
if ( definition != null )
@@ -764,6 +768,9 @@ await editorSession.LanguageService.GetDefinitionOfSymbolAsync(
764
768
await requestContext . SendResultAsync ( definitionLocations . ToArray ( ) ) ;
765
769
}
766
770
771
+ // NEED TO CHECK FILE GLOBBING HERE!!
772
+ // This is the handler for textDocument/References - https://microsoft.github.io/language-server-protocol/specification#textDocument_references
773
+ // It searches the workspace for a function reference
767
774
protected async Task HandleReferencesRequestAsync (
768
775
ReferencesParams referencesParams ,
769
776
RequestContext < Location [ ] > requestContext )
@@ -781,7 +788,9 @@ protected async Task HandleReferencesRequestAsync(
781
788
FindReferencesResult referencesResult =
782
789
await editorSession . LanguageService . FindReferencesOfSymbolAsync (
783
790
foundSymbol ,
791
+ // Probably something here...
784
792
editorSession . Workspace . ExpandScriptReferences ( scriptFile ) ,
793
+ // Probably something here...
785
794
editorSession . Workspace ) ;
786
795
787
796
Location [ ] referenceLocations = s_emptyLocationResult ;
0 commit comments