mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-18 05:43:11 -05:00
Remove old references to Node v4, small cleanup of node version stuff (#53174)
This commit is contained in:
@@ -11,7 +11,6 @@ import {
|
||||
DirectoryWatcherCallback,
|
||||
FileWatcher,
|
||||
getDirectoryPath,
|
||||
getNodeMajorVersion,
|
||||
getRootLength,
|
||||
JsTyping,
|
||||
LanguageServiceMode,
|
||||
@@ -299,9 +298,7 @@ export function initializeNodeSystem(): StartInput {
|
||||
|
||||
const libDirectory = getDirectoryPath(normalizePath(sys.getExecutingFilePath()));
|
||||
|
||||
const nodeVersion = getNodeMajorVersion();
|
||||
// use watchGuard process on Windows when node version is 4 or later
|
||||
const useWatchGuard = process.platform === "win32" && nodeVersion! >= 4;
|
||||
const useWatchGuard = process.platform === "win32";
|
||||
const originalWatchDirectory: ServerHost["watchDirectory"] = sys.watchDirectory.bind(sys);
|
||||
const logger = createLogger();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user