@@ -884,7 +884,6 @@ __export(server_exports, {
884884 getNodeForGeneratedName: () => getNodeForGeneratedName,
885885 getNodeId: () => getNodeId,
886886 getNodeKind: () => getNodeKind,
887- getNodeMajorVersion: () => getNodeMajorVersion,
888887 getNodeModifiers: () => getNodeModifiers,
889888 getNodeModulePathParts: () => getNodeModulePathParts,
890889 getNonAssignedNameOfDeclaration: () => getNonAssignedNameOfDeclaration,
@@ -8356,20 +8355,6 @@ function patchWriteFileEnsuringDirectory(sys2) {
83568355 (path2) => sys2.directoryExists(path2)
83578356 );
83588357}
8359- function getNodeMajorVersion() {
8360- if (typeof process === "undefined") {
8361- return void 0;
8362- }
8363- const version2 = process.version;
8364- if (!version2) {
8365- return void 0;
8366- }
8367- const dot = version2.indexOf(".");
8368- if (dot === -1) {
8369- return void 0;
8370- }
8371- return parseInt(version2.substring(1, dot));
8372- }
83738358var sys = (() => {
83748359 const byteOrderMarkIndicator = "\uFEFF";
83758360 function getNodeSystem() {
@@ -8386,14 +8371,12 @@ var sys = (() => {
83868371 let activeSession;
83878372 let profilePath = "./profile.cpuprofile";
83888373 const Buffer2 = require("buffer").Buffer;
8389- const nodeVersion = getNodeMajorVersion();
8390- const isNode4OrLater = nodeVersion >= 4;
83918374 const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
83928375 const platform = _os.platform();
83938376 const useCaseSensitiveFileNames = isFileSystemCaseSensitive();
83948377 const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
83958378 const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
8396- const fsSupportsRecursiveFsWatch = isNode4OrLater && ( process.platform === "win32" || process.platform === "darwin") ;
8379+ const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin";
83978380 const getCurrentDirectory = memoize(() => process.cwd());
83988381 const { watchFile: watchFile2, watchDirectory } = createSystemWatchFunctions({
83998382 pollingWatchFileWorker: fsWatchFileWorker,
@@ -168595,7 +168578,6 @@ __export(ts_exports3, {
168595168578 getNodeForGeneratedName: () => getNodeForGeneratedName,
168596168579 getNodeId: () => getNodeId,
168597168580 getNodeKind: () => getNodeKind,
168598- getNodeMajorVersion: () => getNodeMajorVersion,
168599168581 getNodeModifiers: () => getNodeModifiers,
168600168582 getNodeModulePathParts: () => getNodeModulePathParts,
168601168583 getNonAssignedNameOfDeclaration: () => getNonAssignedNameOfDeclaration,
@@ -181109,8 +181091,7 @@ function initializeNodeSystem() {
181109181091 }
181110181092 }
181111181093 const libDirectory = getDirectoryPath(normalizePath(sys2.getExecutingFilePath()));
181112- const nodeVersion = getNodeMajorVersion();
181113- const useWatchGuard = process.platform === "win32" && nodeVersion >= 4;
181094+ const useWatchGuard = process.platform === "win32";
181114181095 const originalWatchDirectory = sys2.watchDirectory.bind(sys2);
181115181096 const logger = createLogger();
181116181097 Debug.loggingHost = {
@@ -181665,7 +181646,7 @@ function start({ args, logger, cancellationToken, serverMode, unknownServerMode,
181665181646 logger.info(`Starting TS Server`);
181666181647 logger.info(`Version: ${version}`);
181667181648 logger.info(`Arguments: ${args.join(" ")}`);
181668- logger.info(`Platform: ${platform} NodeVersion: ${getNodeMajorVersion() } CaseSensitive: ${sys.useCaseSensitiveFileNames}`);
181649+ logger.info(`Platform: ${platform} NodeVersion: ${process.version } CaseSensitive: ${sys.useCaseSensitiveFileNames}`);
181669181650 logger.info(`ServerMode: ${serverMode} hasUnknownServerMode: ${unknownServerMode}`);
181670181651 setStackTraceLimit();
181671181652 if (Debug.isDebugging) {
@@ -182544,7 +182525,6 @@ start(initializeNodeSystem(), require("os").platform());
182544182525 getNodeForGeneratedName,
182545182526 getNodeId,
182546182527 getNodeKind,
182547- getNodeMajorVersion,
182548182528 getNodeModifiers,
182549182529 getNodeModulePathParts,
182550182530 getNonAssignedNameOfDeclaration,
0 commit comments