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 {
326326 typingsInstaller : ITypingsInstaller ;
327327 eventHandler ?: ProjectServiceEventHandler ;
328328 throttleWaitMilliseconds ?: number ;
329- globalPlugins ?: string [ ] ;
330- pluginProbeLocations ?: string [ ] ;
329+ globalPlugins ?: ReadonlyArray < string > ;
330+ pluginProbeLocations ?: ReadonlyArray < string > ;
331331 allowLocalPluginLoads ?: boolean ;
332332 }
333333
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ namespace ts.server {
1515 typingSafeListLocation : string ;
1616 npmLocation : string | undefined ;
1717 telemetryEnabled : boolean ;
18- globalPlugins : string [ ] ;
19- pluginProbeLocations : string [ ] ;
18+ globalPlugins : ReadonlyArray < string > ;
19+ pluginProbeLocations : ReadonlyArray < string > ;
2020 allowLocalPluginLoads : boolean ;
2121 }
2222
@@ -760,10 +760,10 @@ namespace ts.server {
760760 const typingSafeListLocation = findArgument ( Arguments . TypingSafeListLocation ) ;
761761 const npmLocation = findArgument ( Arguments . NpmLocation ) ;
762762
763- function parseStringArray ( argName : string ) : string [ ] {
763+ function parseStringArray ( argName : string ) : ReadonlyArray < string > {
764764 const arg = findArgument ( argName ) ;
765765 if ( arg === undefined ) {
766- return emptyArray as string [ ] ; // TODO: https://github.com/Microsoft/TypeScript/issues/16312
766+ return emptyArray ;
767767 }
768768 return arg . split ( "," ) . filter ( name => name !== "" ) ;
769769 }
Original file line number Diff line number Diff line change @@ -255,8 +255,8 @@ namespace ts.server {
255255 eventHandler ?: ProjectServiceEventHandler ;
256256 throttleWaitMilliseconds ?: number ;
257257
258- globalPlugins ?: string [ ] ;
259- pluginProbeLocations ?: string [ ] ;
258+ globalPlugins ?: ReadonlyArray < string > ;
259+ pluginProbeLocations ?: ReadonlyArray < string > ;
260260 allowLocalPluginLoads ?: boolean ;
261261 }
262262
You can’t perform that action at this time.
0 commit comments