File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ namespace ts.server {
33
33
const os : {
34
34
homedir ?( ) : string ;
35
35
tmpdir ( ) : string ;
36
+ platform ( ) : string ;
36
37
} = require ( "os" ) ;
37
38
38
39
interface NodeSocket {
@@ -824,8 +825,9 @@ namespace ts.server {
824
825
const logger = createLogger ( ) ;
825
826
826
827
const sys = < ServerHost > ts . sys ;
828
+ const nodeVersion = getNodeMajorVersion ( ) ;
827
829
// use watchGuard process on Windows when node version is 4 or later
828
- const useWatchGuard = process . platform === "win32" && getNodeMajorVersion ( ) >= 4 ;
830
+ const useWatchGuard = process . platform === "win32" && nodeVersion >= 4 ;
829
831
const originalWatchDirectory : ServerHost [ "watchDirectory" ] = sys . watchDirectory . bind ( sys ) ;
830
832
const noopWatcher : FileWatcher = { close : noop } ;
831
833
// This is the function that catches the exceptions when watching directory, and yet lets project service continue to function
@@ -980,8 +982,9 @@ namespace ts.server {
980
982
} ;
981
983
982
984
logger . info ( `Starting TS Server` ) ;
983
- logger . info ( `Version: ${ versionMajorMinor } ` ) ;
985
+ logger . info ( `Version: ${ version } ` ) ;
984
986
logger . info ( `Arguments: ${ process . argv . join ( " " ) } ` ) ;
987
+ logger . info ( `Platform: ${ os . platform ( ) } NodeVersion: ${ nodeVersion } CaseSensitive: ${ sys . useCaseSensitiveFileNames } ` ) ;
985
988
986
989
const ioSession = new IOSession ( options ) ;
987
990
process . on ( "uncaughtException" , err => {
You can’t perform that action at this time.
0 commit comments