Skip to content

Commit 0762d23

Browse files
mjbvzalexdima
andauthored
Build VS Code using TS 4.4 (microsoft#127823)
* Build VS Code using TS 4.4 * Remove usages of deprecated `ClientRectList` * Add any casts for missing `caretRangeFromPoint` * Add temporary any casts for `zoom` css propery This non-standard css property no longer exists in lib.dom.d.ts * MouseWheelEvent -> WheelEvent * Pick up new TS nightly Co-authored-by: Alexandru Dima <alexdima@microsoft.com>
1 parent 4fe851b commit 0762d23

31 files changed

Lines changed: 74 additions & 76 deletions

build/azure-pipelines/common/createAsset.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ async function main() {
160160
blobService.defaultClientRequestTimeoutInMs = 10 * 60 * 1000;
161161
mooncakeBlobService.defaultClientRequestTimeoutInMs = 10 * 60 * 1000;
162162
console.log('Uploading blobs to Azure storage and Mooncake Azure storage...');
163-
await retry_1.retry(() => Promise.all([
163+
await (0, retry_1.retry)(() => Promise.all([
164164
uploadBlob(blobService, quality, blobName, filePath, fileName),
165165
uploadBlob(mooncakeBlobService, quality, blobName, filePath, fileName)
166166
]));
@@ -185,7 +185,7 @@ async function main() {
185185
console.log('Asset:', JSON.stringify(asset, null, ' '));
186186
const client = new cosmos_1.CosmosClient({ endpoint: process.env['AZURE_DOCUMENTDB_ENDPOINT'], key: process.env['AZURE_DOCUMENTDB_MASTERKEY'] });
187187
const scripts = client.database('builds').container(quality).scripts;
188-
await retry_1.retry(() => scripts.storedProcedure('createAsset').execute('', [commit, asset, true]));
188+
await (0, retry_1.retry)(() => scripts.storedProcedure('createAsset').execute('', [commit, asset, true]));
189189
console.log(` Done ✔️`);
190190
}
191191
main().then(() => {

build/azure-pipelines/common/createBuild.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async function main() {
4040
};
4141
const client = new cosmos_1.CosmosClient({ endpoint: process.env['AZURE_DOCUMENTDB_ENDPOINT'], key: process.env['AZURE_DOCUMENTDB_MASTERKEY'] });
4242
const scripts = client.database('builds').container(quality).scripts;
43-
await retry_1.retry(() => scripts.storedProcedure('createBuild').execute('', [Object.assign(Object.assign({}, build), { _partitionKey: '' })]));
43+
await (0, retry_1.retry)(() => scripts.storedProcedure('createBuild').execute('', [Object.assign(Object.assign({}, build), { _partitionKey: '' })]));
4444
}
4545
main().then(() => {
4646
console.log('Build successfully created');

build/azure-pipelines/common/installPlaywright.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
77
const retry_1 = require("./retry");
88
const { installBrowsersWithProgressBar } = require('playwright/lib/install/installer');
99
async function install() {
10-
await retry_1.retry(() => installBrowsersWithProgressBar());
10+
await (0, retry_1.retry)(() => installBrowsersWithProgressBar());
1111
}
1212
install();

build/azure-pipelines/common/releaseBuild.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function main() {
3939
}
4040
console.log(`Releasing build ${commit}...`);
4141
const scripts = client.database('builds').container(quality).scripts;
42-
await retry_1.retry(() => scripts.storedProcedure('releaseBuild').execute('', [commit]));
42+
await (0, retry_1.retry)(() => scripts.storedProcedure('releaseBuild').execute('', [commit]));
4343
}
4444
main().then(() => {
4545
console.log('Build successfully released');

build/darwin/create-universal-app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async function main() {
2323
const outAppPath = path.join(buildDir, `VSCode-darwin-${arch}`, appName);
2424
const productJsonPath = path.resolve(outAppPath, 'Contents', 'Resources', 'app', 'product.json');
2525
const infoPlistPath = path.resolve(outAppPath, 'Contents', 'Info.plist');
26-
await vscode_universal_1.makeUniversalApp({
26+
await (0, vscode_universal_1.makeUniversalApp)({
2727
x64AppPath,
2828
arm64AppPath,
2929
x64AsarPath,

build/lib/builtInExtensionsCG.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async function downloadExtensionDetails(extension) {
2525
const promises = [];
2626
for (const fileName of contentFileNames) {
2727
promises.push(new Promise(resolve => {
28-
got_1.default(`${repositoryContentBaseUrl}/${fileName}`)
28+
(0, got_1.default)(`${repositoryContentBaseUrl}/${fileName}`)
2929
.then(response => {
3030
resolve({ fileName, body: response.rawBody });
3131
})

build/lib/compilation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const fancyLog = require("fancy-log");
1717
const ansiColors = require("ansi-colors");
1818
const os = require("os");
1919
const watch = require('./watch');
20-
const reporter = reporter_1.createReporter();
20+
const reporter = (0, reporter_1.createReporter)();
2121
function getTypeScriptCompilerOptions(src) {
2222
const rootDir = path.join(__dirname, `../../${src}`);
2323
let options = {};

build/lib/eslint/code-import-patterns.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ module.exports = new class {
2121
const configs = context.options;
2222
for (const config of configs) {
2323
if (minimatch(context.getFilename(), config.target)) {
24-
return utils_1.createImportRuleListener((node, value) => this._checkImport(context, config, node, value));
24+
return (0, utils_1.createImportRuleListener)((node, value) => this._checkImport(context, config, node, value));
2525
}
2626
}
2727
return {};
2828
}
2929
_checkImport(context, config, node, path) {
3030
// resolve relative paths
3131
if (path[0] === '.') {
32-
path = path_1.join(context.getFilename(), path);
32+
path = (0, path_1.join)(context.getFilename(), path);
3333
}
3434
let restrictions;
3535
if (typeof config.restrictions === 'string') {

build/lib/eslint/code-layering.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = new class {
1717
};
1818
}
1919
create(context) {
20-
const fileDirname = path_1.dirname(context.getFilename());
20+
const fileDirname = (0, path_1.dirname)(context.getFilename());
2121
const parts = fileDirname.split(/\\|\//);
2222
const ruleArgs = context.options[0];
2323
let config;
@@ -39,11 +39,11 @@ module.exports = new class {
3939
// nothing
4040
return {};
4141
}
42-
return utils_1.createImportRuleListener((node, path) => {
42+
return (0, utils_1.createImportRuleListener)((node, path) => {
4343
if (path[0] === '.') {
44-
path = path_1.join(path_1.dirname(context.getFilename()), path);
44+
path = (0, path_1.join)((0, path_1.dirname)(context.getFilename()), path);
4545
}
46-
const parts = path_1.dirname(path).split(/\\|\//);
46+
const parts = (0, path_1.dirname)(path).split(/\\|\//);
4747
for (let i = parts.length - 1; i >= 0; i--) {
4848
const part = parts[i];
4949
if (config.allowed.has(part)) {

build/lib/eslint/code-no-nls-in-standalone-editor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ module.exports = new class NoNlsInStandaloneEditorRule {
2020
|| /vs(\/|\\)editor(\/|\\)editor.api/.test(fileName)
2121
|| /vs(\/|\\)editor(\/|\\)editor.main/.test(fileName)
2222
|| /vs(\/|\\)editor(\/|\\)editor.worker/.test(fileName)) {
23-
return utils_1.createImportRuleListener((node, path) => {
23+
return (0, utils_1.createImportRuleListener)((node, path) => {
2424
// resolve relative paths
2525
if (path[0] === '.') {
26-
path = path_1.join(context.getFilename(), path);
26+
path = (0, path_1.join)(context.getFilename(), path);
2727
}
2828
if (/vs(\/|\\)nls/.test(path)) {
2929
context.report({

0 commit comments

Comments
 (0)