mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 12:33:35 +01:00
Bump target for build scripts (#165287)
This commit is contained in:
@@ -299,6 +299,8 @@ function createTypeScriptBuilder(config, projectFile, cmd) {
|
||||
}
|
||||
exports.createTypeScriptBuilder = createTypeScriptBuilder;
|
||||
class ScriptSnapshot {
|
||||
_text;
|
||||
_mtime;
|
||||
constructor(text, mtime) {
|
||||
this._text = text;
|
||||
this._mtime = mtime;
|
||||
@@ -317,6 +319,7 @@ class ScriptSnapshot {
|
||||
}
|
||||
}
|
||||
class VinylScriptSnapshot extends ScriptSnapshot {
|
||||
_base;
|
||||
constructor(file) {
|
||||
super(file.contents.toString(), file.stat.mtime);
|
||||
this._base = file.base;
|
||||
@@ -326,15 +329,20 @@ class VinylScriptSnapshot extends ScriptSnapshot {
|
||||
}
|
||||
}
|
||||
class LanguageServiceHost {
|
||||
_cmdLine;
|
||||
_projectPath;
|
||||
_log;
|
||||
_snapshots;
|
||||
_filesInProject;
|
||||
_filesAdded;
|
||||
_dependencies;
|
||||
_dependenciesRecomputeList;
|
||||
_fileNameToDeclaredModule;
|
||||
_projectVersion;
|
||||
constructor(_cmdLine, _projectPath, _log) {
|
||||
this._cmdLine = _cmdLine;
|
||||
this._projectPath = _projectPath;
|
||||
this._log = _log;
|
||||
this.directoryExists = ts.sys.directoryExists;
|
||||
this.getDirectories = ts.sys.getDirectories;
|
||||
this.fileExists = ts.sys.fileExists;
|
||||
this.readFile = ts.sys.readFile;
|
||||
this.readDirectory = ts.sys.readDirectory;
|
||||
this._snapshots = Object.create(null);
|
||||
this._filesInProject = new Set(_cmdLine.fileNames);
|
||||
this._filesAdded = new Set();
|
||||
@@ -389,6 +397,7 @@ class LanguageServiceHost {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
static _declareModule = /declare\s+module\s+('|")(.+)\1/g;
|
||||
addScriptSnapshot(filename, snapshot) {
|
||||
this._projectVersion++;
|
||||
filename = normalize(filename);
|
||||
@@ -432,6 +441,11 @@ class LanguageServiceHost {
|
||||
getDefaultLibFileName(options) {
|
||||
return ts.getDefaultLibFilePath(options);
|
||||
}
|
||||
directoryExists = ts.sys.directoryExists;
|
||||
getDirectories = ts.sys.getDirectories;
|
||||
fileExists = ts.sys.fileExists;
|
||||
readFile = ts.sys.readFile;
|
||||
readDirectory = ts.sys.readDirectory;
|
||||
// ---- dependency management
|
||||
collectDependents(filename, target) {
|
||||
while (this._dependenciesRecomputeList.length) {
|
||||
@@ -488,4 +502,3 @@ class LanguageServiceHost {
|
||||
});
|
||||
}
|
||||
}
|
||||
LanguageServiceHost._declareModule = /declare\s+module\s+('|")(.+)\1/g;
|
||||
|
||||
Reference in New Issue
Block a user