Skip to content

Commit

Permalink
Update LKG
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Mar 14, 2023
1 parent d97bb67 commit cb69c8a
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 96 deletions.
18 changes: 1 addition & 17 deletions lib/tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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,
Expand Down
26 changes: 3 additions & 23 deletions lib/tsserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,6 @@ __export(server_exports, {
getNodeForGeneratedName: () => getNodeForGeneratedName,
getNodeId: () => getNodeId,
getNodeKind: () => getNodeKind,
getNodeMajorVersion: () => getNodeMajorVersion,
getNodeModifiers: () => getNodeModifiers,
getNodeModulePathParts: () => getNodeModulePathParts,
getNonAssignedNameOfDeclaration: () => getNonAssignedNameOfDeclaration,
Expand Down Expand Up @@ -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() {
Expand All @@ -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,
Expand Down Expand Up @@ -168595,7 +168578,6 @@ __export(ts_exports3, {
getNodeForGeneratedName: () => getNodeForGeneratedName,
getNodeId: () => getNodeId,
getNodeKind: () => getNodeKind,
getNodeMajorVersion: () => getNodeMajorVersion,
getNodeModifiers: () => getNodeModifiers,
getNodeModulePathParts: () => getNodeModulePathParts,
getNonAssignedNameOfDeclaration: () => getNonAssignedNameOfDeclaration,
Expand Down Expand Up @@ -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 = {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -182544,7 +182525,6 @@ start(initializeNodeSystem(), require("os").platform());
getNodeForGeneratedName,
getNodeId,
getNodeKind,
getNodeMajorVersion,
getNodeModifiers,
getNodeModulePathParts,
getNonAssignedNameOfDeclaration,
Expand Down
1 change: 0 additions & 1 deletion lib/tsserverlibrary.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8286,7 +8286,6 @@ declare namespace ts {
negative: boolean;
base10Value: string;
}
function getNodeMajorVersion(): number | undefined;
enum FileWatcherEventKind {
Created = 0,
Changed = 1,
Expand Down
20 changes: 1 addition & 19 deletions lib/tsserverlibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -179181,7 +179165,6 @@ ${e.message}`;
getNodeForGeneratedName: () => getNodeForGeneratedName,
getNodeId: () => getNodeId,
getNodeKind: () => getNodeKind,
getNodeMajorVersion: () => getNodeMajorVersion,
getNodeModifiers: () => getNodeModifiers,
getNodeModulePathParts: () => getNodeModulePathParts,
getNonAssignedNameOfDeclaration: () => getNonAssignedNameOfDeclaration,
Expand Down Expand Up @@ -181540,7 +181523,6 @@ ${e.message}`;
getNodeForGeneratedName: () => getNodeForGeneratedName,
getNodeId: () => getNodeId,
getNodeKind: () => getNodeKind,
getNodeMajorVersion: () => getNodeMajorVersion,
getNodeModifiers: () => getNodeModifiers,
getNodeModulePathParts: () => getNodeModulePathParts,
getNonAssignedNameOfDeclaration: () => getNonAssignedNameOfDeclaration,
Expand Down
1 change: 0 additions & 1 deletion lib/typescript.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4311,7 +4311,6 @@ declare namespace ts {
negative: boolean;
base10Value: string;
}
function getNodeMajorVersion(): number | undefined;
enum FileWatcherEventKind {
Created = 0,
Changed = 1,
Expand Down
19 changes: 1 addition & 18 deletions lib/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -168362,7 +168346,6 @@ ${options.prefix}` : "\n" : options.prefix
getNodeForGeneratedName: () => getNodeForGeneratedName,
getNodeId: () => getNodeId,
getNodeKind: () => getNodeKind,
getNodeMajorVersion: () => getNodeMajorVersion,
getNodeModifiers: () => getNodeModifiers,
getNodeModulePathParts: () => getNodeModulePathParts,
getNonAssignedNameOfDeclaration: () => getNonAssignedNameOfDeclaration,
Expand Down
18 changes: 1 addition & 17 deletions lib/typingsInstaller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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,
Expand Down

0 comments on commit cb69c8a

Please sign in to comment.