Fix errors in 'build' script directory (#20004)

* Update build scripts

* Update build files

* fix build errors
This commit is contained in:
Karl Burtram
2022-07-11 23:23:24 -07:00
committed by GitHub
parent 980a233aad
commit 6eda44f828
17 changed files with 193 additions and 150 deletions

View File

@@ -559,6 +559,13 @@ class TypeScriptLanguageServiceHost {
this._files = files;
this._compilerOptions = compilerOptions;
}
// {{SQL CARBON EDIT}} - provide missing methods
readFile() {
return undefined;
}
fileExists() {
return false;
}
// --- language service host ---------------
getCompilationSettings() {
return this._compilerOptions;

View File

@@ -684,6 +684,14 @@ class TypeScriptLanguageServiceHost implements ts.LanguageServiceHost {
this._compilerOptions = compilerOptions;
}
// {{SQL CARBON EDIT}} - provide missing methods
readFile(): string | undefined {
return undefined;
}
fileExists(): boolean {
return false;
}
// --- language service host ---------------
getCompilationSettings(): ts.CompilerOptions {

View File

@@ -107,6 +107,13 @@ var _nls;
this.file = ts.ScriptSnapshot.fromString(contents);
this.lib = ts.ScriptSnapshot.fromString('');
}
// {{SQL CARBON EDIT}} - provide missing methods
readFile() {
return undefined;
}
fileExists() {
return false;
}
}
function isCallExpressionWithinTextSpanCollectStep(ts, textSpan, node) {
if (!ts.textSpanContainsTextSpan({ start: node.pos, length: node.end - node.pos }, textSpan)) {

View File

@@ -155,6 +155,14 @@ module _nls {
this.lib = ts.ScriptSnapshot.fromString('');
}
// {{SQL CARBON EDIT}} - provide missing methods
readFile(): string | undefined {
return undefined;
}
fileExists(): boolean {
return false;
}
getCompilationSettings = () => this.options;
getScriptFileNames = () => [this.filename];
getScriptVersion = () => '1';

View File

@@ -108,7 +108,7 @@ function submitAllStats(productJson, commit) {
.setAutoCollectDependencies(false)
.setAutoDependencyCorrelation(false)
.start();
appInsights.defaultClient.config.endpointUrl = 'https://vortex.data.microsoft.com/collect/v1';
appInsights.defaultClient.config.endpointUrl = 'https://mobile.events.data.microsoft.com/collect/v1';
/* __GDPR__
"monacoworkbench/packagemetrics" : {
"commit" : {"classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },

View File

@@ -167,6 +167,13 @@ class TypeScriptLanguageServiceHost {
this._files = files;
this._compilerOptions = compilerOptions;
}
// {{SQL CARBON EDIT}} - provide missing methods
readFile() {
return undefined;
}
fileExists() {
return false;
}
// --- language service host ---------------
getCompilationSettings() {
return this._compilerOptions;

View File

@@ -245,6 +245,14 @@ class TypeScriptLanguageServiceHost implements ts.LanguageServiceHost {
this._compilerOptions = compilerOptions;
}
// {{SQL CARBON EDIT}} - provide missing methods
readFile(): string | undefined {
return undefined;
}
fileExists(): boolean {
return false;
}
// --- language service host ---------------
getCompilationSettings(): ts.CompilerOptions {