Skip to content

Commit d0985f5

Browse files
authored
Merge main into insiders branch (#8656)
1 parent 7f99606 commit d0985f5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+720
-3174
lines changed

.github/workflows/ci_linux.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,10 @@ jobs:
2222
run: yarn install
2323
working-directory: Extension
2424

25-
- name: Generate hashes for runtime dependency packages
26-
run: yarn run generatePackageHashes
27-
working-directory: Extension
28-
2925
- name: Compile Sources
3026
run: yarn run compile
3127
working-directory: Extension
3228

33-
- name: Validate Extension/package.json
34-
run: yarn run pr-check
35-
working-directory: Extension
36-
3729
- name: Run Linter
3830
run: yarn run lint
3931
working-directory: Extension
@@ -48,8 +40,8 @@ jobs:
4840
run: yarn run unitTests
4941
working-directory: Extension
5042

51-
- name: Run languageServer integration tests
52-
uses: GabrielBB/[email protected]
53-
with:
54-
run: yarn run integrationTests
55-
working-directory: Extension
43+
# - name: Run languageServer integration tests
44+
# uses: GabrielBB/[email protected]
45+
# with:
46+
# run: yarn run integrationTests
47+
# working-directory: Extension

.github/workflows/ci_mac.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,10 @@ jobs:
2222
run: yarn install --network-timeout 100000
2323
working-directory: Extension
2424

25-
- name: Generate hashes for runtime dependency packages
26-
run: yarn run generatePackageHashes
27-
working-directory: Extension
28-
2925
- name: Compile Sources
3026
run: yarn run compile
3127
working-directory: Extension
3228

33-
- name: Validate Extension/package.json
34-
run: yarn run pr-check
35-
working-directory: Extension
36-
3729
- name: Run Linter
3830
run: yarn run lint
3931
working-directory: Extension
@@ -48,8 +40,8 @@ jobs:
4840
run: yarn run unitTests
4941
working-directory: Extension
5042

51-
- name: Run languageServer integration tests
52-
uses: GabrielBB/[email protected]
53-
with:
54-
run: yarn run integrationTests
55-
working-directory: Extension
43+
# - name: Run languageServer integration tests
44+
# uses: GabrielBB/[email protected]
45+
# with:
46+
# run: yarn run integrationTests
47+
# working-directory: Extension

.github/workflows/ci_windows.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,10 @@ jobs:
2222
run: yarn install
2323
working-directory: Extension
2424

25-
- name: Generate hashes for runtime dependency packages
26-
run: yarn run generatePackageHashes
27-
working-directory: Extension
28-
2925
- name: Compile Sources
3026
run: yarn run compile
3127
working-directory: Extension
3228

33-
- name: Validate Extension/package.json
34-
run: yarn run pr-check
35-
working-directory: Extension
36-
3729
- name: Run Linter
3830
run: yarn run lint
3931
working-directory: Extension
@@ -46,6 +38,6 @@ jobs:
4638
run: yarn run unitTests
4739
working-directory: Extension
4840

49-
- name: Run languageServer integration tests
50-
run: yarn run integrationTests
51-
working-directory: Extension
41+
# - name: Run languageServer integration tests
42+
# run: yarn run integrationTests
43+
# working-directory: Extension

Extension/.vscodeignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ ui/*.ts
2020

2121
# ignore Azure-Pipelines files
2222
jobs/**
23+
cgmanifest.json
2324

2425
# ignore development files
2526
tsconfig.json

Extension/cgmanifest.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"Registrations": [
3+
{
4+
"Component": {
5+
"Type": "git",
6+
"Git": {
7+
"RepositoryUrl": "https://github.com/llvm/llvm-project",
8+
"CommitHash": "0d44201451f03ba907cdb268ddddfc3fa38a0ebd"
9+
},
10+
"DevelopmentDependency": true
11+
}
12+
},
13+
{
14+
"Component": {
15+
"Type": "git",
16+
"Git": {
17+
"RepositoryUrl": "https://github.com/lldb-tools/lldb-mi",
18+
"CommitHash": "2388bd74133bc21eac59b2e2bf97f2a30770a315"
19+
}
20+
}
21+
}
22+
],
23+
"Version": 1
24+
}

Extension/gulpfile.js

Lines changed: 2 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,6 @@ gulp.task('lint', function () {
7171
.pipe(eslint.failAfterError());
7272
});
7373

74-
gulp.task('pr-check', (done) => {
75-
const packageJson = JSON.parse(fs.readFileSync('./package.json').toString());
76-
if (packageJson.activationEvents.length !== 1 && packageJson.activationEvents[0] !== '*') {
77-
console.log('Please make sure to not check in package.json that has been rewritten by the extension activation. If you intended to have changes in package.json, please only check-in your changes. If you did not, please run `git checkout -- package.json`.');
78-
done();
79-
process.exit(1);
80-
}
81-
82-
done();
83-
});
84-
8574

8675
// ****************************
8776
// Command: translations-export
@@ -301,109 +290,6 @@ gulp.task("translations-import", (done) => {
301290
}));
302291
});
303292

304-
// ****************************
305-
// Command: generate-package-hashes
306-
// Generates a hash for each dependency package
307-
// ****************************
308-
309-
async function DownloadFile(urlString) {
310-
const buffers = [];
311-
return new Promise((resolve, reject) => {
312-
const req = https.request(urlString, (response) => {
313-
if (response.statusCode === 301 || response.statusCode === 302) {
314-
// Redirect - download from new location
315-
let redirectUrl;
316-
if (typeof response.headers.location === "string") {
317-
redirectUrl = response.headers.location;
318-
} else {
319-
if (!response.headers.location) {
320-
console.log(`Invalid download location received`);
321-
return reject();
322-
}
323-
redirectUrl = response.headers.location[0];
324-
}
325-
console.log(`Using redirectUrl: '${redirectUrl}'`);
326-
return resolve(DownloadFile(redirectUrl));
327-
} else if (response.statusCode !== 200) {
328-
if (response.statusCode === undefined || response.statusCode === null) {
329-
console.log("unknown error code.");
330-
return reject();
331-
}
332-
console.log(`failed with error code: '${response.statusCode}'`);
333-
return reject();
334-
}
335-
336-
response.on('data', (data) => {
337-
buffers.push(data);
338-
});
339-
340-
response.on('end', () => {
341-
if (buffers.length > 0) {
342-
return resolve(Buffer.concat(buffers));
343-
} else {
344-
return reject();
345-
}
346-
});
347-
348-
response.on('error', err => {
349-
console.log(`problem with request: '${err.message}'`);
350-
return reject();
351-
});
352-
});
353-
354-
req.on('error', err => {
355-
console.log(`problem with request: '${err.message}'`);
356-
return reject();
357-
});
358-
359-
// Execute the request
360-
req.end();
361-
});
362-
363-
}
364-
365-
async function generatePackageHashes(packageJson) {
366-
const downloadAndGetHash = async (url) => {
367-
console.log(url);
368-
try {
369-
const buf = await DownloadFile(url);
370-
if (buf) {
371-
const hash = crypto.createHash('sha256');
372-
hash.update(buf);
373-
const value = hash.digest('hex').toUpperCase();
374-
return value;
375-
}
376-
return undefined;
377-
} catch (err) {
378-
return undefined;
379-
}
380-
};
381-
382-
for (let dependency of packageJson.runtimeDependencies) {
383-
console.log(`-------- Downloading package: '${dependency.description}' --------`);
384-
const hash = await downloadAndGetHash(dependency.url);
385-
if (hash) {
386-
dependency.integrity = hash;
387-
console.log(`integrity: '${hash}'`);
388-
} else {
389-
console.log(`No hash generated for package '${dependency.description}`);
390-
}
391-
console.log(`\n`);
392-
}
393-
394-
let content = JSON.stringify(packageJson, null, 2);
395-
return content;
396-
}
397-
398-
gulp.task('generate-package-hashes', async (done) => {
399-
const packageJsonPath = './package.json';
400-
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath).toString());
401-
const content = await generatePackageHashes(packageJson);
402-
fs.writeFileSync(packageJsonPath, content);
403-
done();
404-
});
405-
406-
407293
// ****************************
408294
// Command: translations-generate
409295
// The following is used to import an i18n directory structure and generate files used at runtime.
@@ -679,7 +565,7 @@ ${typeScriptSwitchContent}
679565
// ****** This file is generated from nativeStrings.json. Do not edit this file directly. ******
680566
681567
#pragma once
682-
568+
// NOLINTBEGIN(modernize-raw-string-literal)
683569
enum class localized_string_id : unsigned int
684570
{
685571
blank = 0,
@@ -688,6 +574,7 @@ ${nativeEnumContent}};
688574
inline static const char *localizable_strings[] = {
689575
"",
690576
${nativeStringTableContent}};
577+
// NOLINTEND(modernize-raw-string-literal)
691578
`;
692579

693580
console.log("Writing file: localized_string_ids.h -- If changed, copy to VS repo: src/vc/designtime/vscode/Common/generated/");

Extension/i18n/chs/package.i18n.json

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
"c_cpp.configuration.maxConcurrentThreads.markdownDescription": "用于语言服务处理的最大并发线程数。该值是一个提示,且不能始终使用。默认值 `null` (空)使用可用的逻辑处理器数。",
3535
"c_cpp.configuration.maxCachedProcesses.markdownDescription": "用于语言服务处理的最大缓存进程数。默认值 `null` (空)使用可用逻辑处理器数的两倍。",
3636
"c_cpp.configuration.maxMemory.markdownDescription": "可用于语言服务处理的最大内存(以 MB 为单位)。超过此内存使用量后,将缓存且并发运行较少的进程。默认值 `null` (空)使用系统的空闲内存。",
37-
"c_cpp.configuration.intelliSense.maxCachedProcesses.markdownDescription": "要继续运行的最大 IntelliSense 进程数。默认值 `null` (空)使用从 `#C_Cpp.maxCachedProcesses#` 继承的值",
37+
"c_cpp.configuration.intelliSense.maxCachedProcesses.markdownDescription": "要继续运行的最大 IntelliSense 进程数。默认值 `null` (空)使用从 `#C_Cpp.maxCachedProcesses#` 继承的值",
3838
"c_cpp.configuration.intelliSense.maxMemory.markdownDescription": "超过此内存使用量(以 MB 为单位)后,在创建新进程之前,旧的 IntelliSense 进程将关闭。默认值 `null` (空)使用从 `#C_Cpp.maxMemory#` 继承的值。",
3939
"c_cpp.configuration.references.maxConcurrentThreads.markdownDescription": "用于“查找所有引用”和“重命名”的最大并发线程数。默认值 `null` (空)使用从 `#C_Cpp.maxConcurrentThreads#` 继承的值。",
40-
"c_cpp.configuration.references.maxCachedProcesses.markdownDescription": "要为“查找所有引用”和“重命名”保留在内存中的最大进程数。`null` (空)的值使用从 `#C_Cpp.maxCachedProcesses#` 继承的值",
40+
"c_cpp.configuration.references.maxCachedProcesses.markdownDescription": "“查找所有引用”和“重命名”的要保留在内存中的最大进程数。默认值 `0` 将禁用此功能。值为 `null` (空)则使用从 `#C_Cpp.maxCachedProcesses#` 继承的值",
4141
"c_cpp.configuration.references.maxMemory.markdownDescription": "超过此内存使用量(以 MB 为单位)后,将缓存且并发运行更少的“查找所有引用”和“重命名”进程。默认值 `null` (空)使用从 `#C_Cpp.maxMemory#` 继承的值。",
42-
"c_cpp.configuration.codeAnalysis.maxConcurrentThreads.markdownDescription": "用于代码分析的最大并发线程数。默认值 \"null\" (空)使用从 \"#C_Cpp.maxConcurrentThreads#\" 继承的值的一半。",
42+
"c_cpp.configuration.codeAnalysis.maxConcurrentThreads.markdownDescription": "用于代码分析的最大并发线程数。默认值 `null` (空)使用从 `#C_Cpp.maxConcurrentThreads#` 继承的值的一半。",
4343
"c_cpp.configuration.codeAnalysis.maxMemory.markdownDescription": "超过此内存使用量(以 MB 为单位)后,将并发运行更少的代码分析进程。默认值 `null` (空)使用从 `#C_Cpp.maxMemory#` 继承的值。",
4444
"c_cpp.configuration.codeAnalysis.updateDelay.markdownDescription": "控制在 `#files.autoSave#` 为 `afterDelay` 且 `#C_Cpp.codeAnalysis.runAutomatically#` 为 `true` 时从编辑触发保存后,代码分析开始处理之前的延迟(以毫秒为单位)。",
4545
"c_cpp.configuration.codeAnalysis.exclude.markdownDescription": "配置 glob 模式已排除用于代码分析的文件夹和文件。始终排除不在工作区文件夹下的文件。从 `#files.exclude#` 和 `#C_Cpp.files.exclude#` 继承值。详细了解 glob 模式 [此处](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options)。",
@@ -54,7 +54,7 @@
5454
"c_cpp.configuration.codeAnalysis.clangTidy.args.markdownDescription": "要传递给 `clang-tidy` 的其他命令行参数。这些优先于等效的 `C_Cpp.codeAnalysis.clangTidy.*` 设置。",
5555
"c_cpp.configuration.codeAnalysis.clangTidy.checks.enabled.markdownDescription": "已启用的 `clang-tidy` 检查列表。这些值将追加到 `.clang-tidy` 文件中的 `Checks` 或 `#C_Cpp.codeAnalysis.clangTidy.config#` (如果有)。除非显式禁用,否则始终使用默认检查 `clang-analyzer-*`。",
5656
"c_cpp.configuration.codeAnalysis.clangTidy.checks.disabled.markdownDescription": "已禁用的 `clang-tidy` 检查列表。该值将追加到 `.clang-tidy` 文件中的 `Checks` 或 `#C_Cpp.codeAnalysis.clangTidy.config#` (如果有)。",
57-
"c_cpp.configuration.formatting.description": "配置格式化引擎",
57+
"c_cpp.configuration.formatting.description": "配置格式设置引擎。",
5858
"c_cpp.configuration.formatting.clangFormat.markdownDescription": "`clang-format` 将用于格式代码。",
5959
"c_cpp.configuration.formatting.vcFormat.markdownDescription": "将使用 Visual C++ 格式设置引擎来设置代码的格式。",
6060
"c_cpp.configuration.formatting.Default.markdownDescription": "默认情况下,`clang-format` 将用于格式化代码。但是,如果找到具有相关设置的 `.editorconfig` 文件接近于所格式化的代码,且 `#C_Cpp.clang_format_style#` 为默认值: `file`,则将使用 Visual C++ 格式化引擎。",
@@ -64,7 +64,7 @@
6464
"c_cpp.configuration.vcFormat.indent.multiLineRelativeTo.outermostParenthesis.description": "相对于最外侧的左括号缩进新行。",
6565
"c_cpp.configuration.vcFormat.indent.multiLineRelativeTo.innermostParenthesis.description": "相对于最内侧的左括号缩进新行。",
6666
"c_cpp.configuration.vcFormat.indent.multiLineRelativeTo.statementBegin.description": "相对于当前语句的开头缩进新行。",
67-
"c_cpp.configuration.vcFormat.indent.withinParentheses.markdownDescription": "键入新行时,其会在左括号下或根据`#C_Cpp.vcFormat.indent.multiLineRelativeTo#` 进行对齐。",
67+
"c_cpp.configuration.vcFormat.indent.withinParentheses.markdownDescription": "键入新行时,其会在左括号下或根据 `#C_Cpp.vcFormat.indent.multiLineRelativeTo#` 进行对齐。",
6868
"c_cpp.configuration.vcFormat.indent.withinParentheses.alignToParenthesis.markdownDescription": "新行对齐到左括号下。",
6969
"c_cpp.configuration.vcFormat.indent.withinParentheses.indent.markdownDescription": "根据 `#C_Cpp.vcFormat.indent.multiLineRelativeTo#` 缩进新行。",
7070
"c_cpp.configuration.vcFormat.indent.preserveWithinParentheses.description": "在现有代码中,保留括号内新行现有的缩进对齐方式。",
@@ -152,7 +152,7 @@
152152
"c_cpp.configuration.intelliSenseEngine.default.description": "通过单独的 IntelliSense 流程提供上下文感知结果。",
153153
"c_cpp.configuration.intelliSenseEngine.tagParser.description": "提供非上下文感知的“模糊”结果。",
154154
"c_cpp.configuration.intelliSenseEngine.disabled.description": "关闭 C/C++ 语言服务功能。",
155-
"c_cpp.configuration.intelliSenseEngineFallback.markdownDescription": "控制 IntelliSense 引擎是否将自动切换为包含`#include` 错误的翻译单元的标记分析器。",
155+
"c_cpp.configuration.intelliSenseEngineFallback.markdownDescription": "控制 IntelliSense 引擎是否将自动切换为包含 `#include` 错误的翻译单元的标记分析器。",
156156
"c_cpp.configuration.autocomplete.markdownDescription": "控制自动完成提供程序。如果“已禁用”,且你想要基于字词的补全,则还需要设置 `\"[cpp]\": {\"editor.wordBasedSuggestions\": true}`(对 `c` 和 `cuda-cpp` 语言同样执行此操作)。",
157157
"c_cpp.configuration.autocomplete.default.description": "使用活动的 IntelliSense 引擎。",
158158
"c_cpp.configuration.autocomplete.disabled.description": "使用 Visual Studio Code 提供的基于字词的补全。",
@@ -305,5 +305,19 @@
305305
"c_cpp.debuggers.VSSymbolOptionsModuleFilter.mode.loadOnlyIncluded.enumDescriptions": "请勿尝试为任何模块加载符号,除非该模块在 \"includedModules\" 数组中,或者它通过 \"includeSymbolsNextToModules\" 设置包含在内。",
306306
"c_cpp.debuggers.VSSymbolOptionsModuleFilter.excludedModules.description": "调试程序不得为其加载符号的模块数组。支持通配符(例如: MyCompany.*.dll)。\n\n会忽略此属性,除非“模式”设置为 \"loadAllButExcluded\"",
307307
"c_cpp.debuggers.VSSymbolOptionsModuleFilter.includedModules.description": "调试程序应为其加载符号的模块数组。支持通配符(例如: MyCompany.*.dll)。\n\n会忽略此属性,除非“模式”设置为 \"loadOnlyIncluded\"",
308-
"c_cpp.debuggers.VSSymbolOptionsModuleFilter.includeSymbolsNextToModules.description": "如果为 true,则对于未在 \"includedModules\" 数组中的任何模块,调试程序将在模块本身和启动可执行文件旁边进行检查,但它将不检查符号搜索列表上的路径。此选项默认为 \"true\"\n\n会忽略此属性,除非“模式”设置为 \"loadOnlyIncluded\""
308+
"c_cpp.debuggers.VSSymbolOptionsModuleFilter.includeSymbolsNextToModules.description": "如果为 true,则对于未在 \"includedModules\" 数组中的任何模块,调试程序将在模块本身和启动可执行文件旁边进行检查,但它将不检查符号搜索列表上的路径。此选项默认为 \"true\"\n\n会忽略此属性,除非“模式”设置为 \"loadOnlyIncluded\"",
309+
"c_cpp.semanticTokenTypes.referenceType.description": "C++/CLI 引用类型的样式。",
310+
"c_cpp.semanticTokenTypes.cliProperty.description": "C++/CLI 属性的样式。",
311+
"c_cpp.semanticTokenTypes.genericType.description": "C++/CLI 泛型类型的样式。",
312+
"c_cpp.semanticTokenTypes.valueType.description": "C++/CLI 值类型的样式。",
313+
"c_cpp.semanticTokenTypes.templateFunction.description": "C++ 模板函数的样式。",
314+
"c_cpp.semanticTokenTypes.templateType.description": "C++ 模板类型的样式。",
315+
"c_cpp.semanticTokenTypes.operatorOverload.description": "C++ 重载运算符的样式。",
316+
"c_cpp.semanticTokenTypes.memberOperatorOverload.description": "C++ 重载运算符成员函数的样式。",
317+
"c_cpp.semanticTokenTypes.newOperator.description": "C++ 新运算符或删除运算符的样式。",
318+
"c_cpp.semanticTokenTypes.customLiteral.description": "C++ 用户定义文本的样式。",
319+
"c_cpp.semanticTokenTypes.numberLiteral.description": "C++ 用户定义文本数字的样式。",
320+
"c_cpp.semanticTokenTypes.stringLiteral.description": "C++ 用户定义文本字符串的样式。",
321+
"c_cpp.semanticTokenModifiers.global.description": "用于全局符号的样式。",
322+
"c_cpp.semanticTokenModifiers.local.description": "用于本地符号的样式。"
309323
}

0 commit comments

Comments
 (0)