@@ -219,6 +219,7 @@ namespace ts.server {
219219 host : ServerHost ,
220220 eventPort : number ,
221221 readonly globalTypingsCacheLocation : string ,
222+ readonly typingSafeListLocation : string ,
222223 private newLine : string ) {
223224 this . throttledOperations = new ThrottledOperations ( host ) ;
224225 if ( eventPort ) {
@@ -260,6 +261,9 @@ namespace ts.server {
260261 if ( this . logger . loggingEnabled ( ) && this . logger . getLogFileName ( ) ) {
261262 args . push ( Arguments . LogFile , combinePaths ( getDirectoryPath ( normalizeSlashes ( this . logger . getLogFileName ( ) ) ) , `ti-${ process . pid } .log` ) ) ;
262263 }
264+ if ( this . typingSafeListLocation ) {
265+ args . push ( Arguments . TypingSafeListLocation , this . typingSafeListLocation ) ;
266+ }
263267 const execArgv : string [ ] = [ ] ;
264268 {
265269 for ( const arg of process . execArgv ) {
@@ -378,11 +382,12 @@ namespace ts.server {
378382 useSingleInferredProject : boolean ,
379383 disableAutomaticTypingAcquisition : boolean ,
380384 globalTypingsCacheLocation : string ,
385+ typingSafeListLocation : string ,
381386 telemetryEnabled : boolean ,
382387 logger : server . Logger ) {
383388 const typingsInstaller = disableAutomaticTypingAcquisition
384389 ? undefined
385- : new NodeTypingsInstaller ( telemetryEnabled , logger , host , installerEventPort , globalTypingsCacheLocation , host . newLine ) ;
390+ : new NodeTypingsInstaller ( telemetryEnabled , logger , host , installerEventPort , globalTypingsCacheLocation , typingSafeListLocation , host . newLine ) ;
386391
387392 super (
388393 host ,
@@ -729,6 +734,8 @@ namespace ts.server {
729734 validateLocaleAndSetLanguage ( localeStr , sys ) ;
730735 }
731736
737+ const typingSafeListLocation = findArgument ( "--typingSafeListLocation" ) ;
738+
732739 const useSingleInferredProject = hasArgument ( "--useSingleInferredProject" ) ;
733740 const disableAutomaticTypingAcquisition = hasArgument ( "--disableAutomaticTypingAcquisition" ) ;
734741 const telemetryEnabled = hasArgument ( Arguments . EnableTelemetry ) ;
@@ -741,6 +748,7 @@ namespace ts.server {
741748 useSingleInferredProject ,
742749 disableAutomaticTypingAcquisition ,
743750 getGlobalTypingsCacheLocation ( ) ,
751+ typingSafeListLocation ,
744752 telemetryEnabled ,
745753 logger ) ;
746754 process . on ( "uncaughtException" , function ( err : Error ) {
0 commit comments