@@ -3922,6 +3922,7 @@ declare namespace ts {
39223922 getRenameInfo ( fileName : string , position : number ) : RenameInfo ;
39233923 findRenameLocations ( fileName : string , position : number , findInStrings : boolean , findInComments : boolean ) : RenameLocation [ ] ;
39243924 getDefinitionAtPosition ( fileName : string , position : number ) : DefinitionInfo [ ] ;
3925+ getDefinitionAndBoundSpan ( fileName : string , position : number ) : DefinitionInfoAndBoundSpan ;
39253926 getTypeDefinitionAtPosition ( fileName : string , position : number ) : DefinitionInfo [ ] ;
39263927 getImplementationAtPosition ( fileName : string , position : number ) : ImplementationLocation [ ] ;
39273928 getReferencesAtPosition ( fileName : string , position : number ) : ReferenceEntry [ ] ;
@@ -3942,7 +3943,6 @@ declare namespace ts {
39423943 getDocCommentTemplateAtPosition ( fileName : string , position : number ) : TextInsertion ;
39433944 isValidBraceCompletionAtPosition ( fileName : string , position : number , openingBrace : number ) : boolean ;
39443945 getSpanOfEnclosingComment ( fileName : string , position : number , onlyMultiLine : boolean ) : TextSpan ;
3945- getSpanForPosition ( fileName : string , position : number ) : TextSpan ;
39463946 getCodeFixesAtPosition ( fileName : string , start : number , end : number , errorCodes : number [ ] , formatOptions : FormatCodeSettings ) : CodeAction [ ] ;
39473947 getApplicableRefactors ( fileName : string , positionOrRaneg : number | TextRange ) : ApplicableRefactorInfo [ ] ;
39483948 getEditsForRefactor ( fileName : string , formatOptions : FormatCodeSettings , positionOrRange : number | TextRange , refactorName : string , actionName : string ) : RefactorEditInfo | undefined ;
@@ -4174,6 +4174,10 @@ declare namespace ts {
41744174 containerKind : ScriptElementKind ;
41754175 containerName : string ;
41764176 }
4177+ interface DefinitionInfoAndBoundSpan {
4178+ definitions : ReadonlyArray < DefinitionInfo > ;
4179+ textSpan : TextSpan ;
4180+ }
41774181 interface ReferencedSymbolDefinitionInfo extends DefinitionInfo {
41784182 displayParts : SymbolDisplayPart [ ] ;
41794183 }
@@ -4793,6 +4797,7 @@ declare namespace ts.server.protocol {
47934797 CompileOnSaveEmitFile = "compileOnSaveEmitFile" ,
47944798 Configure = "configure" ,
47954799 Definition = "definition" ,
4800+ DefinitionAndBoundSpan = "definitionAndBoundSpan" ,
47964801 Implementation = "implementation" ,
47974802 Exit = "exit" ,
47984803 Format = "format" ,
@@ -5298,6 +5303,10 @@ declare namespace ts.server.protocol {
52985303 */
52995304 file : string ;
53005305 }
5306+ interface DefinitionInfoAndBoundSpan {
5307+ definitions : ReadonlyArray < FileSpan > ;
5308+ textSpan : TextSpan ;
5309+ }
53015310 /**
53025311 * Definition response message. Gives text range for definition.
53035312 */
@@ -6855,6 +6864,9 @@ declare namespace ts.server {
68556864 private convertToDiagnosticsWithLinePosition ( diagnostics , scriptInfo ) ;
68566865 private getDiagnosticsWorker ( args , isSemantic , selector , includeLinePosition ) ;
68576866 private getDefinition ( args , simplifiedResult ) ;
6867+ private getDefinitionAndBoundSpan ( args , simplifiedResult ) ;
6868+ private getSimplifiedDefinition ( definitions , project ) ;
6869+ private getSimplifiedTextSpan ( textSpan , scriptInfo ) ;
68586870 private getTypeDefinition ( args ) ;
68596871 private getImplementation ( args , simplifiedResult ) ;
68606872 private getOccurrences ( args ) ;
@@ -6888,7 +6900,6 @@ declare namespace ts.server {
68886900 private getNameOrDottedNameSpan ( args ) ;
68896901 private isValidBraceCompletion ( args ) ;
68906902 private getQuickInfoWorker ( args , simplifiedResult ) ;
6891- private getSpanForLocation ( args ) ;
68926903 private getFormattingEditsForRange ( args ) ;
68936904 private getFormattingEditsForRangeFull ( args ) ;
68946905 private getFormattingEditsForDocumentFull ( args ) ;
0 commit comments