File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -326,8 +326,8 @@ namespace ts.server {
326
326
typingsInstaller : ITypingsInstaller ;
327
327
eventHandler ?: ProjectServiceEventHandler ;
328
328
throttleWaitMilliseconds ?: number ;
329
- globalPlugins ?: string [ ] ;
330
- pluginProbeLocations ?: string [ ] ;
329
+ globalPlugins ?: ReadonlyArray < string > ;
330
+ pluginProbeLocations ?: ReadonlyArray < string > ;
331
331
allowLocalPluginLoads ?: boolean ;
332
332
}
333
333
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ namespace ts.server {
15
15
typingSafeListLocation : string ;
16
16
npmLocation : string | undefined ;
17
17
telemetryEnabled : boolean ;
18
- globalPlugins : string [ ] ;
19
- pluginProbeLocations : string [ ] ;
18
+ globalPlugins : ReadonlyArray < string > ;
19
+ pluginProbeLocations : ReadonlyArray < string > ;
20
20
allowLocalPluginLoads : boolean ;
21
21
}
22
22
@@ -760,10 +760,10 @@ namespace ts.server {
760
760
const typingSafeListLocation = findArgument ( Arguments . TypingSafeListLocation ) ;
761
761
const npmLocation = findArgument ( Arguments . NpmLocation ) ;
762
762
763
- function parseStringArray ( argName : string ) : string [ ] {
763
+ function parseStringArray ( argName : string ) : ReadonlyArray < string > {
764
764
const arg = findArgument ( argName ) ;
765
765
if ( arg === undefined ) {
766
- return emptyArray as string [ ] ; // TODO: https://github.com/Microsoft/TypeScript/issues/16312
766
+ return emptyArray ;
767
767
}
768
768
return arg . split ( "," ) . filter ( name => name !== "" ) ;
769
769
}
Original file line number Diff line number Diff line change @@ -259,8 +259,8 @@ namespace ts.server {
259
259
eventHandler ?: ProjectServiceEventHandler ;
260
260
throttleWaitMilliseconds ?: number ;
261
261
262
- globalPlugins ?: string [ ] ;
263
- pluginProbeLocations ?: string [ ] ;
262
+ globalPlugins ?: ReadonlyArray < string > ;
263
+ pluginProbeLocations ?: ReadonlyArray < string > ;
264
264
allowLocalPluginLoads ?: boolean ;
265
265
}
266
266
You can’t perform that action at this time.
0 commit comments