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