@@ -757,6 +757,9 @@ await this.RunScriptDiagnosticsAsync(
757
757
}
758
758
}
759
759
760
+ // NEED TO CHECK FILE GLOBBING HERE!!
761
+ // This is the handler for textDocument/definition - https://microsoft.github.io/language-server-protocol/specification#textDocument_definition
762
+ // It searches the workspace for a function reference, which is then used as the definition
760
763
protected async Task HandleDefinitionRequestAsync (
761
764
TextDocumentPositionParams textDocumentPosition ,
762
765
RequestContext < Location [ ] > requestContext )
@@ -780,6 +783,7 @@ protected async Task HandleDefinitionRequestAsync(
780
783
await editorSession . LanguageService . GetDefinitionOfSymbolAsync (
781
784
scriptFile ,
782
785
foundSymbol ,
786
+ // Probably something here...
783
787
editorSession . Workspace ) ;
784
788
785
789
if ( definition != null )
@@ -796,6 +800,9 @@ await editorSession.LanguageService.GetDefinitionOfSymbolAsync(
796
800
await requestContext . SendResultAsync ( definitionLocations . ToArray ( ) ) ;
797
801
}
798
802
803
+ // NEED TO CHECK FILE GLOBBING HERE!!
804
+ // This is the handler for textDocument/References - https://microsoft.github.io/language-server-protocol/specification#textDocument_references
805
+ // It searches the workspace for a function reference
799
806
protected async Task HandleReferencesRequestAsync (
800
807
ReferencesParams referencesParams ,
801
808
RequestContext < Location [ ] > requestContext )
@@ -813,7 +820,9 @@ protected async Task HandleReferencesRequestAsync(
813
820
FindReferencesResult referencesResult =
814
821
await editorSession . LanguageService . FindReferencesOfSymbolAsync (
815
822
foundSymbol ,
823
+ // Probably something here...
816
824
editorSession . Workspace . ExpandScriptReferences ( scriptFile ) ,
825
+ // Probably something here...
817
826
editorSession . Workspace ) ;
818
827
819
828
Location [ ] referenceLocations = s_emptyLocationResult ;
0 commit comments