@@ -219,6 +219,7 @@ namespace ts.server {
219
219
host : ServerHost ,
220
220
eventPort : number ,
221
221
readonly globalTypingsCacheLocation : string ,
222
+ readonly typingSafeListLocation : string ,
222
223
private newLine : string ) {
223
224
this . throttledOperations = new ThrottledOperations ( host ) ;
224
225
if ( eventPort ) {
@@ -260,6 +261,9 @@ namespace ts.server {
260
261
if ( this . logger . loggingEnabled ( ) && this . logger . getLogFileName ( ) ) {
261
262
args . push ( Arguments . LogFile , combinePaths ( getDirectoryPath ( normalizeSlashes ( this . logger . getLogFileName ( ) ) ) , `ti-${ process . pid } .log` ) ) ;
262
263
}
264
+ if ( this . typingSafeListLocation ) {
265
+ args . push ( Arguments . TypingSafeListLocation , this . typingSafeListLocation ) ;
266
+ }
263
267
const execArgv : string [ ] = [ ] ;
264
268
{
265
269
for ( const arg of process . execArgv ) {
@@ -378,11 +382,12 @@ namespace ts.server {
378
382
useSingleInferredProject : boolean ,
379
383
disableAutomaticTypingAcquisition : boolean ,
380
384
globalTypingsCacheLocation : string ,
385
+ typingSafeListLocation : string ,
381
386
telemetryEnabled : boolean ,
382
387
logger : server . Logger ) {
383
388
const typingsInstaller = disableAutomaticTypingAcquisition
384
389
? undefined
385
- : new NodeTypingsInstaller ( telemetryEnabled , logger , host , installerEventPort , globalTypingsCacheLocation , host . newLine ) ;
390
+ : new NodeTypingsInstaller ( telemetryEnabled , logger , host , installerEventPort , globalTypingsCacheLocation , typingSafeListLocation , host . newLine ) ;
386
391
387
392
super (
388
393
host ,
@@ -729,6 +734,8 @@ namespace ts.server {
729
734
validateLocaleAndSetLanguage ( localeStr , sys ) ;
730
735
}
731
736
737
+ const typingSafeListLocation = findArgument ( "--typingSafeListLocation" ) ;
738
+
732
739
const useSingleInferredProject = hasArgument ( "--useSingleInferredProject" ) ;
733
740
const disableAutomaticTypingAcquisition = hasArgument ( "--disableAutomaticTypingAcquisition" ) ;
734
741
const telemetryEnabled = hasArgument ( Arguments . EnableTelemetry ) ;
@@ -741,6 +748,7 @@ namespace ts.server {
741
748
useSingleInferredProject ,
742
749
disableAutomaticTypingAcquisition ,
743
750
getGlobalTypingsCacheLocation ( ) ,
751
+ typingSafeListLocation ,
744
752
telemetryEnabled ,
745
753
logger ) ;
746
754
process . on ( "uncaughtException" , function ( err : Error ) {
0 commit comments