mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Update LKG
This commit is contained in:
+1
-17
@@ -4915,20 +4915,6 @@ function patchWriteFileEnsuringDirectory(sys2) {
|
||||
(path2) => sys2.directoryExists(path2)
|
||||
);
|
||||
}
|
||||
function getNodeMajorVersion() {
|
||||
if (typeof process === "undefined") {
|
||||
return void 0;
|
||||
}
|
||||
const version2 = process.version;
|
||||
if (!version2) {
|
||||
return void 0;
|
||||
}
|
||||
const dot = version2.indexOf(".");
|
||||
if (dot === -1) {
|
||||
return void 0;
|
||||
}
|
||||
return parseInt(version2.substring(1, dot));
|
||||
}
|
||||
var sys = (() => {
|
||||
const byteOrderMarkIndicator = "\uFEFF";
|
||||
function getNodeSystem() {
|
||||
@@ -4945,14 +4931,12 @@ var sys = (() => {
|
||||
let activeSession;
|
||||
let profilePath = "./profile.cpuprofile";
|
||||
const Buffer2 = require("buffer").Buffer;
|
||||
const nodeVersion = getNodeMajorVersion();
|
||||
const isNode4OrLater = nodeVersion >= 4;
|
||||
const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
|
||||
const platform = _os.platform();
|
||||
const useCaseSensitiveFileNames = isFileSystemCaseSensitive();
|
||||
const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
|
||||
const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
|
||||
const fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
|
||||
const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin";
|
||||
const getCurrentDirectory = memoize(() => process.cwd());
|
||||
const { watchFile: watchFile2, watchDirectory } = createSystemWatchFunctions({
|
||||
pollingWatchFileWorker: fsWatchFileWorker,
|
||||
|
||||
+3
-23
@@ -884,7 +884,6 @@ __export(server_exports, {
|
||||
getNodeForGeneratedName: () => getNodeForGeneratedName,
|
||||
getNodeId: () => getNodeId,
|
||||
getNodeKind: () => getNodeKind,
|
||||
getNodeMajorVersion: () => getNodeMajorVersion,
|
||||
getNodeModifiers: () => getNodeModifiers,
|
||||
getNodeModulePathParts: () => getNodeModulePathParts,
|
||||
getNonAssignedNameOfDeclaration: () => getNonAssignedNameOfDeclaration,
|
||||
@@ -8356,20 +8355,6 @@ function patchWriteFileEnsuringDirectory(sys2) {
|
||||
(path2) => sys2.directoryExists(path2)
|
||||
);
|
||||
}
|
||||
function getNodeMajorVersion() {
|
||||
if (typeof process === "undefined") {
|
||||
return void 0;
|
||||
}
|
||||
const version2 = process.version;
|
||||
if (!version2) {
|
||||
return void 0;
|
||||
}
|
||||
const dot = version2.indexOf(".");
|
||||
if (dot === -1) {
|
||||
return void 0;
|
||||
}
|
||||
return parseInt(version2.substring(1, dot));
|
||||
}
|
||||
var sys = (() => {
|
||||
const byteOrderMarkIndicator = "\uFEFF";
|
||||
function getNodeSystem() {
|
||||
@@ -8386,14 +8371,12 @@ var sys = (() => {
|
||||
let activeSession;
|
||||
let profilePath = "./profile.cpuprofile";
|
||||
const Buffer2 = require("buffer").Buffer;
|
||||
const nodeVersion = getNodeMajorVersion();
|
||||
const isNode4OrLater = nodeVersion >= 4;
|
||||
const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
|
||||
const platform = _os.platform();
|
||||
const useCaseSensitiveFileNames = isFileSystemCaseSensitive();
|
||||
const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
|
||||
const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
|
||||
const fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
|
||||
const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin";
|
||||
const getCurrentDirectory = memoize(() => process.cwd());
|
||||
const { watchFile: watchFile2, watchDirectory } = createSystemWatchFunctions({
|
||||
pollingWatchFileWorker: fsWatchFileWorker,
|
||||
@@ -168595,7 +168578,6 @@ __export(ts_exports3, {
|
||||
getNodeForGeneratedName: () => getNodeForGeneratedName,
|
||||
getNodeId: () => getNodeId,
|
||||
getNodeKind: () => getNodeKind,
|
||||
getNodeMajorVersion: () => getNodeMajorVersion,
|
||||
getNodeModifiers: () => getNodeModifiers,
|
||||
getNodeModulePathParts: () => getNodeModulePathParts,
|
||||
getNonAssignedNameOfDeclaration: () => getNonAssignedNameOfDeclaration,
|
||||
@@ -181109,8 +181091,7 @@ function initializeNodeSystem() {
|
||||
}
|
||||
}
|
||||
const libDirectory = getDirectoryPath(normalizePath(sys2.getExecutingFilePath()));
|
||||
const nodeVersion = getNodeMajorVersion();
|
||||
const useWatchGuard = process.platform === "win32" && nodeVersion >= 4;
|
||||
const useWatchGuard = process.platform === "win32";
|
||||
const originalWatchDirectory = sys2.watchDirectory.bind(sys2);
|
||||
const logger = createLogger();
|
||||
Debug.loggingHost = {
|
||||
@@ -181665,7 +181646,7 @@ function start({ args, logger, cancellationToken, serverMode, unknownServerMode,
|
||||
logger.info(`Starting TS Server`);
|
||||
logger.info(`Version: ${version}`);
|
||||
logger.info(`Arguments: ${args.join(" ")}`);
|
||||
logger.info(`Platform: ${platform} NodeVersion: ${getNodeMajorVersion()} CaseSensitive: ${sys.useCaseSensitiveFileNames}`);
|
||||
logger.info(`Platform: ${platform} NodeVersion: ${process.version} CaseSensitive: ${sys.useCaseSensitiveFileNames}`);
|
||||
logger.info(`ServerMode: ${serverMode} hasUnknownServerMode: ${unknownServerMode}`);
|
||||
setStackTraceLimit();
|
||||
if (Debug.isDebugging) {
|
||||
@@ -182544,7 +182525,6 @@ start(initializeNodeSystem(), require("os").platform());
|
||||
getNodeForGeneratedName,
|
||||
getNodeId,
|
||||
getNodeKind,
|
||||
getNodeMajorVersion,
|
||||
getNodeModifiers,
|
||||
getNodeModulePathParts,
|
||||
getNonAssignedNameOfDeclaration,
|
||||
|
||||
Vendored
-1
@@ -8286,7 +8286,6 @@ declare namespace ts {
|
||||
negative: boolean;
|
||||
base10Value: string;
|
||||
}
|
||||
function getNodeMajorVersion(): number | undefined;
|
||||
enum FileWatcherEventKind {
|
||||
Created = 0,
|
||||
Changed = 1,
|
||||
|
||||
+1
-19
@@ -6137,20 +6137,6 @@ ${lanes.join("\n")}
|
||||
(path2) => sys2.directoryExists(path2)
|
||||
);
|
||||
}
|
||||
function getNodeMajorVersion() {
|
||||
if (typeof process === "undefined") {
|
||||
return void 0;
|
||||
}
|
||||
const version2 = process.version;
|
||||
if (!version2) {
|
||||
return void 0;
|
||||
}
|
||||
const dot = version2.indexOf(".");
|
||||
if (dot === -1) {
|
||||
return void 0;
|
||||
}
|
||||
return parseInt(version2.substring(1, dot));
|
||||
}
|
||||
function setSys(s) {
|
||||
sys = s;
|
||||
}
|
||||
@@ -6198,14 +6184,12 @@ ${lanes.join("\n")}
|
||||
let activeSession;
|
||||
let profilePath = "./profile.cpuprofile";
|
||||
const Buffer2 = require("buffer").Buffer;
|
||||
const nodeVersion = getNodeMajorVersion();
|
||||
const isNode4OrLater = nodeVersion >= 4;
|
||||
const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
|
||||
const platform = _os.platform();
|
||||
const useCaseSensitiveFileNames = isFileSystemCaseSensitive();
|
||||
const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
|
||||
const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
|
||||
const fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
|
||||
const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin";
|
||||
const getCurrentDirectory = memoize(() => process.cwd());
|
||||
const { watchFile: watchFile2, watchDirectory } = createSystemWatchFunctions({
|
||||
pollingWatchFileWorker: fsWatchFileWorker,
|
||||
@@ -179181,7 +179165,6 @@ ${e.message}`;
|
||||
getNodeForGeneratedName: () => getNodeForGeneratedName,
|
||||
getNodeId: () => getNodeId,
|
||||
getNodeKind: () => getNodeKind,
|
||||
getNodeMajorVersion: () => getNodeMajorVersion,
|
||||
getNodeModifiers: () => getNodeModifiers,
|
||||
getNodeModulePathParts: () => getNodeModulePathParts,
|
||||
getNonAssignedNameOfDeclaration: () => getNonAssignedNameOfDeclaration,
|
||||
@@ -181540,7 +181523,6 @@ ${e.message}`;
|
||||
getNodeForGeneratedName: () => getNodeForGeneratedName,
|
||||
getNodeId: () => getNodeId,
|
||||
getNodeKind: () => getNodeKind,
|
||||
getNodeMajorVersion: () => getNodeMajorVersion,
|
||||
getNodeModifiers: () => getNodeModifiers,
|
||||
getNodeModulePathParts: () => getNodeModulePathParts,
|
||||
getNonAssignedNameOfDeclaration: () => getNonAssignedNameOfDeclaration,
|
||||
|
||||
Vendored
-1
@@ -4311,7 +4311,6 @@ declare namespace ts {
|
||||
negative: boolean;
|
||||
base10Value: string;
|
||||
}
|
||||
function getNodeMajorVersion(): number | undefined;
|
||||
enum FileWatcherEventKind {
|
||||
Created = 0,
|
||||
Changed = 1,
|
||||
|
||||
+1
-18
@@ -6137,20 +6137,6 @@ ${lanes.join("\n")}
|
||||
(path2) => sys2.directoryExists(path2)
|
||||
);
|
||||
}
|
||||
function getNodeMajorVersion() {
|
||||
if (typeof process === "undefined") {
|
||||
return void 0;
|
||||
}
|
||||
const version2 = process.version;
|
||||
if (!version2) {
|
||||
return void 0;
|
||||
}
|
||||
const dot = version2.indexOf(".");
|
||||
if (dot === -1) {
|
||||
return void 0;
|
||||
}
|
||||
return parseInt(version2.substring(1, dot));
|
||||
}
|
||||
function setSys(s) {
|
||||
sys = s;
|
||||
}
|
||||
@@ -6198,14 +6184,12 @@ ${lanes.join("\n")}
|
||||
let activeSession;
|
||||
let profilePath = "./profile.cpuprofile";
|
||||
const Buffer2 = require("buffer").Buffer;
|
||||
const nodeVersion = getNodeMajorVersion();
|
||||
const isNode4OrLater = nodeVersion >= 4;
|
||||
const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
|
||||
const platform = _os.platform();
|
||||
const useCaseSensitiveFileNames = isFileSystemCaseSensitive();
|
||||
const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
|
||||
const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
|
||||
const fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
|
||||
const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin";
|
||||
const getCurrentDirectory = memoize(() => process.cwd());
|
||||
const { watchFile: watchFile2, watchDirectory } = createSystemWatchFunctions({
|
||||
pollingWatchFileWorker: fsWatchFileWorker,
|
||||
@@ -168362,7 +168346,6 @@ ${options.prefix}` : "\n" : options.prefix
|
||||
getNodeForGeneratedName: () => getNodeForGeneratedName,
|
||||
getNodeId: () => getNodeId,
|
||||
getNodeKind: () => getNodeKind,
|
||||
getNodeMajorVersion: () => getNodeMajorVersion,
|
||||
getNodeModifiers: () => getNodeModifiers,
|
||||
getNodeModulePathParts: () => getNodeModulePathParts,
|
||||
getNonAssignedNameOfDeclaration: () => getNonAssignedNameOfDeclaration,
|
||||
|
||||
+1
-17
@@ -4349,20 +4349,6 @@ function patchWriteFileEnsuringDirectory(sys2) {
|
||||
(path3) => sys2.directoryExists(path3)
|
||||
);
|
||||
}
|
||||
function getNodeMajorVersion() {
|
||||
if (typeof process === "undefined") {
|
||||
return void 0;
|
||||
}
|
||||
const version2 = process.version;
|
||||
if (!version2) {
|
||||
return void 0;
|
||||
}
|
||||
const dot = version2.indexOf(".");
|
||||
if (dot === -1) {
|
||||
return void 0;
|
||||
}
|
||||
return parseInt(version2.substring(1, dot));
|
||||
}
|
||||
var sys = (() => {
|
||||
const byteOrderMarkIndicator = "\uFEFF";
|
||||
function getNodeSystem() {
|
||||
@@ -4379,14 +4365,12 @@ var sys = (() => {
|
||||
let activeSession;
|
||||
let profilePath = "./profile.cpuprofile";
|
||||
const Buffer2 = require("buffer").Buffer;
|
||||
const nodeVersion = getNodeMajorVersion();
|
||||
const isNode4OrLater = nodeVersion >= 4;
|
||||
const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
|
||||
const platform = _os.platform();
|
||||
const useCaseSensitiveFileNames = isFileSystemCaseSensitive();
|
||||
const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
|
||||
const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
|
||||
const fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
|
||||
const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin";
|
||||
const getCurrentDirectory = memoize(() => process.cwd());
|
||||
const { watchFile, watchDirectory } = createSystemWatchFunctions({
|
||||
pollingWatchFileWorker: fsWatchFileWorker,
|
||||
|
||||
Reference in New Issue
Block a user