@@ -4556,6 +4556,7 @@ declare namespace ts {
4556
4556
getFormattingEditsAfterKeystroke ( fileName : string , position : number , key : string , options : FormatCodeOptions | FormatCodeSettings ) : TextChange [ ] ;
4557
4557
getDocCommentTemplateAtPosition ( fileName : string , position : number ) : TextInsertion | undefined ;
4558
4558
isValidBraceCompletionAtPosition ( fileName : string , position : number , openingBrace : number ) : boolean ;
4559
+ getAutoCloseTagAtPosition ( fileName : string , position : number ) : string | undefined ;
4559
4560
getSpanOfEnclosingComment ( fileName : string , position : number , onlyMultiLine : boolean ) : TextSpan | undefined ;
4560
4561
toLineColumnOffset ?( fileName : string , position : number ) : LineAndCharacter ;
4561
4562
getCodeFixesAtPosition ( fileName : string , start : number , end : number , errorCodes : ReadonlyArray < number > , formatOptions : FormatCodeSettings , preferences : UserPreferences ) : ReadonlyArray < CodeFixAction > ;
@@ -5506,6 +5507,7 @@ declare namespace ts.server {
5506
5507
*/
5507
5508
declare namespace ts . server . protocol {
5508
5509
enum CommandTypes {
5510
+ AutoCloseTag = "autoCloseTag" ,
5509
5511
Brace = "brace" ,
5510
5512
BraceCompletion = "braceCompletion" ,
5511
5513
GetSpanOfEnclosingComment = "getSpanOfEnclosingComment" ,
@@ -6175,6 +6177,15 @@ declare namespace ts.server.protocol {
6175
6177
*/
6176
6178
openingBrace : string ;
6177
6179
}
6180
+ interface AutoCloseTagRequest extends FileLocationRequest {
6181
+ readonly command : CommandTypes . AutoCloseTag ;
6182
+ readonly arguments : AutoCloseTagRequestArgs ;
6183
+ }
6184
+ interface AutoCloseTagRequestArgs extends FileLocationRequestArgs {
6185
+ }
6186
+ interface AutoCloseTagResponse extends Response {
6187
+ readonly body : TextInsertion ;
6188
+ }
6178
6189
/**
6179
6190
* @deprecated
6180
6191
* Get occurrences request; value of command field is
@@ -8463,6 +8474,7 @@ declare namespace ts.server {
8463
8474
private getSyntacticDiagnosticsSync ;
8464
8475
private getSemanticDiagnosticsSync ;
8465
8476
private getSuggestionDiagnosticsSync ;
8477
+ private getAutoCloseTag ;
8466
8478
private getDocumentHighlights ;
8467
8479
private setCompilerOptionsForInferredProjects ;
8468
8480
private getProjectInfo ;
0 commit comments