File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
tests/baselines/reference/api Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -838,7 +838,6 @@ namespace ts.server.protocol {
838
838
export interface EncodedSemanticClassificationsRequest extends FileRequest {
839
839
arguments : EncodedSemanticClassificationsRequestArgs ;
840
840
}
841
-
842
841
/**
843
842
* Arguments for EncodedSemanticClassificationsRequest request.
844
843
*/
@@ -852,6 +851,10 @@ namespace ts.server.protocol {
852
851
* Length of the span.
853
852
*/
854
853
length : number ;
854
+ /**
855
+ * Optional for backwards compat, use "2020" for modern LSP-like classifications
856
+ */
857
+ format ?: ts . SemanticClassificationFormat
855
858
}
856
859
857
860
/**
@@ -3318,6 +3321,8 @@ namespace ts.server.protocol {
3318
3321
Preserve = "Preserve" ,
3319
3322
ReactNative = "ReactNative" ,
3320
3323
React = "React" ,
3324
+ ReactJSX = "ReactJSX" ,
3325
+ ReactJSXDev = "ReactJSXDev" ,
3321
3326
}
3322
3327
3323
3328
export const enum ModuleKind {
@@ -3328,6 +3333,7 @@ namespace ts.server.protocol {
3328
3333
System = "System" ,
3329
3334
ES6 = "ES6" ,
3330
3335
ES2015 = "ES2015" ,
3336
+ ES2020 = "ES2020" ,
3331
3337
ESNext = "ESNext"
3332
3338
}
3333
3339
@@ -3351,6 +3357,7 @@ namespace ts.server.protocol {
3351
3357
ES2018 = "ES2018" ,
3352
3358
ES2019 = "ES2019" ,
3353
3359
ES2020 = "ES2020" ,
3360
+ JSON = "JSON" ,
3354
3361
ESNext = "ESNext"
3355
3362
}
3356
3363
}
Original file line number Diff line number Diff line change @@ -1081,7 +1081,7 @@ namespace ts.server {
1081
1081
1082
1082
private getEncodedSemanticClassifications ( args : protocol . EncodedSemanticClassificationsRequestArgs ) {
1083
1083
const { file, project } = this . getFileAndProject ( args ) ;
1084
- return project . getLanguageService ( ) . getEncodedSemanticClassifications ( file , args ) ;
1084
+ return project . getLanguageService ( ) . getEncodedSemanticClassifications ( file , args , args . format ) ;
1085
1085
}
1086
1086
1087
1087
private getProject ( projectFileName : string | undefined ) : Project | undefined {
Original file line number Diff line number Diff line change @@ -9084,7 +9084,9 @@ declare namespace ts.server.protocol {
9084
9084
None = "None",
9085
9085
Preserve = "Preserve",
9086
9086
ReactNative = "ReactNative",
9087
- React = "React"
9087
+ React = "React",
9088
+ ReactJSX = "ReactJSX",
9089
+ ReactJSXDev = "ReactJSXDev"
9088
9090
}
9089
9091
enum ModuleKind {
9090
9092
None = "None",
@@ -9094,6 +9096,7 @@ declare namespace ts.server.protocol {
9094
9096
System = "System",
9095
9097
ES6 = "ES6",
9096
9098
ES2015 = "ES2015",
9099
+ ES2020 = "ES2020",
9097
9100
ESNext = "ESNext"
9098
9101
}
9099
9102
enum ModuleResolutionKind {
@@ -9114,6 +9117,7 @@ declare namespace ts.server.protocol {
9114
9117
ES2018 = "ES2018",
9115
9118
ES2019 = "ES2019",
9116
9119
ES2020 = "ES2020",
9120
+ JSON = "JSON",
9117
9121
ESNext = "ESNext"
9118
9122
}
9119
9123
}
You can’t perform that action at this time.
0 commit comments