Remove old references to Node v4, small cleanup of node version stuff (#53174)

This commit is contained in:
Jake Bailey
2023-03-09 14:32:15 -08:00
committed by GitHub
parent 7898cc1866
commit ddcbd9ffbd
5 changed files with 3 additions and 26 deletions

View File

@@ -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();