Skip to content

Commit 1aa22b8

Browse files
authored
Merge branch 'main' into bobbrow/telemetryUpdate
2 parents b7a8a07 + 5dcb308 commit 1aa22b8

File tree

51 files changed

+225
-132
lines changed

Some content is hidden

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

51 files changed

+225
-132
lines changed

Extension/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# C/C++ for Visual Studio Code Change Log
22

3-
## Version 1.6.0-insiders: August 12, 2021
3+
## Version 1.6.0: August 24, 2021
44
### New Feature
55
* Added support for standard `.editorconfig` entries when using vcFormat. [#7920](https://github.com/microsoft/vscode-cpptools/issues/7920)
66
* Debug Step Granularity for cppdbg [MIEngine#1169](https://github.com/microsoft/MIEngine/pull/1169)
77
* Thank you for the contribution @Trass3r
8+
* InstructionBreakpoints for cppdbg [MIEgnine#1192](https://github.com/microsoft/MIEngine/pull/1192)
89

910
### Enhancements
1011
* Debugger now runs on .NET 5 [#7858](https://github.com/microsoft/vscode-cpptools/pull/7858)
@@ -30,6 +31,10 @@
3031
* Fix an issue with support detection on Android. [#7906](https://github.com/microsoft/vscode-cpptools/issues/7906)
3132
* Fix a bug with handling of `"C_Cpp.vcFormat.newLine.beforeOpenBrace.block": "newLine"`. [#7926](https://github.com/microsoft/vscode-cpptools/issues/7926)
3233
* Fix Disassembly view is blank on linux [#7960](https://github.com/microsoft/vscode-cpptools/issues/7960)
34+
* Fix an issue with cppdbg debugging on Windows x64. [#7971](https://github.com/microsoft/vscode-cpptools/issues/7971)
35+
* Fix an issue with VS `<execution>` header causing IntelliSense process crash. [#7972](https://github.com/microsoft/vscode-cpptools/issues/7972)
36+
* Fix insiders update install loop for remote scenarios. [#8000](https://github.com/microsoft/vscode-cpptools/issues/8000)
37+
* Fix MacOS unable to use external terminal to debug [#8008](https://github.com/microsoft/vscode-cpptools/issues/8008)
3338

3439
## Version 1.5.1: July 9, 2021
3540
### Bug Fixes

Extension/c_cpp_properties.schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@
188188
"env": {
189189
"type": "object",
190190
"description": "Custom variables that can be reused anywhere in this file using the ${variable} or ${env:variable} syntax.",
191+
"descriptionHint": "The word 'variable' within curly braces should also be translated. The \"env\" should not be translated, and the punctuation (\"${:}\") should be preserved.",
191192
"patternProperties": {
192193
"(?!^workspaceFolder$)(?!^workspaceRoot$)(?!^workspaceFolderBasename$)(?!^default$)(^.+$)": {
193194
"oneOf": [

Extension/gulpfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,9 @@ const processJsonSchemaFiles = () => {
219219
};
220220
let descriptionCallback = (path, value, parent) => {
221221
let locId = filePath + "." + path;
222+
let locHint = parent.descriptionHint;
222223
localizationJsonContents[locId] = value;
223-
localizationMetadataContents.keys.push(locId);
224+
localizationMetadataContents.keys.push(locHint ? { key: locId, comment: [locHint] } : locId);
224225
localizationMetadataContents.messages.push(value);
225226
};
226227
traverseJson(jsonTree, descriptionCallback, "");

Extension/i18n/chs/package.i18n.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"c_cpp.configuration.formatting.description": "配置格式化引擎",
3030
"c_cpp.configuration.formatting.clangFormat.description": "将使用 clang-format 设置代码的格式。",
3131
"c_cpp.configuration.formatting.vcFormat.description": "将使用 Visual C++ 格式设置引擎来设置代码的格式。",
32-
"c_cpp.configuration.formatting.Default.description": "将使用 clang-format 设置代码的格式",
32+
"c_cpp.configuration.formatting.Default.description": "默认情况下,clang-format 将用于设置代码格式。但如果找到更接近要设置格式代码的具有相关设置的 .editorconfig 文件,并且 clang_format_style 为默认值 “file”,则将使用 Visual C++ 格式设置引擎",
3333
"c_cpp.configuration.formatting.Disabled.description": "将禁用代码格式设置。",
3434
"c_cpp.configuration.vcFormat.indent.braces.description": "按照在“编辑器: 制表符大小”设置中指定的量缩进大括号。",
3535
"c_cpp.configuration.vcFormat.indent.multiLineRelativeTo.description": "确定新行缩进的基准",
@@ -116,9 +116,9 @@
116116
"c_cpp.configuration.vcFormat.wrap.preserveBlocks.oneLiners.description": "无论任何“VC 格式: 新行”设置的值如何,在一行输入的完整代码块都保留在一行上",
117117
"c_cpp.configuration.vcFormat.wrap.preserveBlocks.allOneLineScopes.description": "无论任何“VC 格式: 新行”设置的值如何,在同一行输入左大括号和右大括号的任何代码都保留在同一行上",
118118
"c_cpp.configuration.vcFormat.wrap.preserveBlocks.never.description": "始终根据“VC 格式: 新行”设置来设定代码块的格式",
119-
"c_cpp.configuration.clang_format_path.description": "clang 格式可执行文件的完整路径。如果未指定,并且 clang 格式在环境路径中可用,则使用该格式。如果在环境路径中找不到 clang 格式,则将使用与该扩展绑定的 clang 格式的副本。",
120-
"c_cpp.configuration.clang_format_style.description": "编码样式,当前支持: Visual Studio、LLVM、Google、Chromium、Mozilla、WebKit。使用 \"file\" 从当前目录或父目录中的 .clang 格式文件中加载样式。使用 {键: 值, ...} 设置特定参数。例如,\"Visual Studio\" 样式类似于: { BasedOnStyle: LLVM, UseTab: Never, IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, ColumnLimit: 0, AccessModifierOffset: -4, NamespaceIndentation: All, FixNamespaceComments: false }",
121-
"c_cpp.configuration.clang_format_fallbackStyle.description": "如果使用样式 \"file\" 调用 clang 格式但是找不到 .clang 格式文件,则使用预定义的样式的名称作为回退。可能的值为 Visual Studio、LLVM、Google、Chromium、Mozilla、WebKit、none,或使用 {key: value, ...} 设置特定参数。例如,\"Visual Studio\" 样式类似于: { BasedOnStyle: LLVM, UseTab: Never, IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, ColumnLimit: 0, AccessModifierOffset: -4, NamespaceIndentation: All, FixNamespaceComments: false }",
119+
"c_cpp.configuration.clang_format_path.description": "clang-format 格式可执行文件的完整路径。如果未指定,并且 clang-format 格式在环境路径中可用,则使用该格式。如果在环境路径中找不到 clang-format 格式,则将使用与该扩展绑定的 clang-format 格式的副本。",
120+
"c_cpp.configuration.clang_format_style.description": "编码样式,当前支持: Visual Studio、LLVM、Google、Chromium、Mozilla、WebKit。使用 \"file\" 从当前目录或父目录中的 .clang-format 格式文件中加载样式。使用 {键: 值, ...} 设置特定参数。例如,\"Visual Studio\" 样式类似于: { BasedOnStyle: LLVM, UseTab: Never, IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, ColumnLimit: 0, AccessModifierOffset: -4, NamespaceIndentation: All, FixNamespaceComments: false }",
121+
"c_cpp.configuration.clang_format_fallbackStyle.description": "如果使用样式 \"file\" 调用 clang-format 格式但是找不到 .clang-format 格式文件,则使用预定义的样式的名称作为回退。可能的值为 Visual Studio、LLVM、Google、Chromium、Mozilla、WebKit、none,或使用 {key: value, ...} 设置特定参数。例如,\"Visual Studio\" 样式类似于: { BasedOnStyle: LLVM, UseTab: Never, IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, ColumnLimit: 0, AccessModifierOffset: -4, NamespaceIndentation: All, FixNamespaceComments: false }",
122122
"c_cpp.configuration.clang_format_sortIncludes.description": "如果已设置,则重写由 SortIncludes 参数确定的包含排序行为。",
123123
"c_cpp.configuration.intelliSenseEngine.description": "控制 IntelliSense 提供程序。“标记分析器”提供非上下文感知的“模糊”结果。“默认”提供上下文感知结果。“已禁用”将关闭 C/C++ 语言服务功能。",
124124
"c_cpp.configuration.intelliSenseEngineFallback.description": "控制 IntelliSense 引擎是否自动切换到包含 #include 错误的翻译单元的标记分析器。",
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
4+
*--------------------------------------------------------------------------------------------*/
5+
// Do not edit this file. It is machine generated.
6+
{
7+
"editorconfig.default.behavior": "代码格式设置使用 .editorconfig 中的设置,而不是 .clang-format。有关详细信息,请参阅 “C_Cpp.formatting” 设置的“默认”值的文档。"
8+
}

Extension/i18n/chs/walkthrough/installcompiler/install-compiler-windows.md.i18n.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"walkthrough.windows.link.title1": "在 VS Code 中使用 C++ 和 适用于 Linux 的 Windows 子系统(WSL)",
1010
"walkthrough.windows.link.title2": "在带 MinGW 的 Windows 上安装 GCC",
1111
"walkthrough.windows.text2": "要安装 MSVC,请从 Visual Studio {1} 页面下载 {0}。",
12-
"walkthrough.windows.build.tools1": "C++ 生成工具",
12+
"walkthrough.windows.build.tools1": "Build Tools for Visual Studio 2019",
1313
"walkthrough.windows.link.downloads": "下载",
1414
"walkthrough.windows.text3": "在 Visual Studio 安装程序中,检查 {0} 工作负载并选择 {1}。",
1515
"walkthrough.windows.build.tools2": "C++ 生成工具",

Extension/i18n/cht/c_cpp_properties.schema.json.i18n.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.limitSymbolsToIncludedHeaders": "設為 true,就會只處理直接或間接以標頭形式包含的檔案; 設為 false,則會處理位於指定 include 路徑下的所有檔案。",
2121
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.databaseFilename": "產生的符號資料庫路徑。如果指定了相對路徑,就會是相對於工作區預設儲存位置的路徑。",
2222
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.path": "用來為工作區符號進行索引編製與剖析的路徑清單 (供 [移至定義]、[尋找所有參考] 等使用)。根據預設,會以遞迴方式搜尋這些路徑。指定 '*' 表示非遞迴搜尋。例如,'${workspaceFolder}' 將在所有子目錄中搜尋,'${workspaceFolder}/*' 則不會。",
23-
"c_cpp_properties.schema.json.definitions.configurations.items.properties.customConfigurationVariables": "可透過命令 ${cpptools:activeConfigCustomVariable} 查詢的自訂變數,用於 launch.json 或 tasks.js 的輸入變數。",
24-
"c_cpp_properties.schema.json.definitions.env": "可以透過使用 ${變數} 或 ${環境:變數} 語法,在此檔案中任何地方重複使用的自訂變數。",
23+
"c_cpp_properties.schema.json.definitions.configurations.items.properties.customConfigurationVariables": "可透過命令 ${cpptools:activeConfigCustomVariable} 查詢的自訂變數,用於 launch.json 或 tasks.json 的輸入變數。",
24+
"c_cpp_properties.schema.json.definitions.env": "可以透過使用 ${變數} 或 ${env:變數} 語法,在此檔案中任何地方重複使用的自訂變數。",
2525
"c_cpp_properties.schema.json.definitions.version": "組態檔版本。此屬性受延伸模組管理,請勿變更。",
2626
"c_cpp_properties.schema.json.definitions.enableConfigurationSquiggles": "控制延伸模組是否會回報 c_cpp_properties.json 中偵測到的錯誤。"
2727
}

Extension/i18n/cht/package.i18n.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55
// Do not edit this file. It is machine generated.
66
{
7-
"c_cpp.capabilities.untrustedWorkspaces.description": "多個設定可能會導致工作區的本機進程得以執行,例如 C_Cpp. clang_format_path、C_Cpp addNodeAddonIncludePaths、C_Cpp. compilerPath、C_Cpp.default.configurationProvider 以及 C_Cpp. compileCommands 以及 c_cpp_properties.js 上的對等屬性。",
7+
"c_cpp.capabilities.untrustedWorkspaces.description": "多個設定可能會導致工作區的本機進程得以執行,例如 C_Cpp.clang_format_path、C_Cpp.addNodeAddonIncludePaths、C_Cpp.compilerPath、C_Cpp.default.configurationProvider 以及 C_Cpp.compileCommands 以及 c_cpp_properties.json 上的對等屬性。",
88
"c_cpp.command.configurationSelect.title": "選取組態...",
99
"c_cpp.command.configurationProviderSelect.title": "變更組態提供者...",
1010
"c_cpp.command.configurationEditJSON.title": "編輯組態 (JSON)",
@@ -29,7 +29,7 @@
2929
"c_cpp.configuration.formatting.description": "選擇格式設定引擎",
3030
"c_cpp.configuration.formatting.clangFormat.description": "將使用 clang-format 來格式化程式碼。",
3131
"c_cpp.configuration.formatting.vcFormat.description": "將使用 Visual C++ 格式化引擎來格式化程式碼。",
32-
"c_cpp.configuration.formatting.Default.description": "將使用 clang-format 來格式化程式碼",
32+
"c_cpp.configuration.formatting.Default.description": "根據預設,會使用 clang 格式將程式碼格式化。不過,如果具有相關設定之 .editorconfig 檔案更接近要格式化的程式碼,且 clang_format_style 為預設值 'file',則將會使用 Visual C++ 格式引擎",
3333
"c_cpp.configuration.formatting.Disabled.description": "將停用程式碼格式化。",
3434
"c_cpp.configuration.vcFormat.indent.braces.description": "大括弧會依據 [Editor: Tab Size] 設定中指定的數量縮排。",
3535
"c_cpp.configuration.vcFormat.indent.multiLineRelativeTo.description": "決定換行縮排相對於",
@@ -118,7 +118,7 @@
118118
"c_cpp.configuration.vcFormat.wrap.preserveBlocks.never.description": "程式碼區塊的格式一律以 VC 格式的值為準: [新行] 設定",
119119
"c_cpp.configuration.clang_format_path.description": "此為 clang-format 可執行檔的完整路徑。如果未指定,且在環境路徑中可用 clang-format,即會使用該格式。如果在環境路徑中找不到,則會使用延伸模組所配備的 clang-format 複本。",
120120
"c_cpp.configuration.clang_format_style.description": "編碼樣式,目前支援: Visual Studio、LLVM、Google、Chromium、Mozilla、WebKit。使用 \"file\" 可從目前目錄或父目錄的 .clang-format 檔案載入樣式。使用 {key: value, ...} 可設定特定參數。例如,\"Visual Studio\" 樣式類似於: { BasedOnStyle: LLVM, UseTab: Never, IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, ColumnLimit: 0, AccessModifierOffset: -4, NamespaceIndentation: All, FixNamespaceComments: false }",
121-
"c_cpp.configuration.clang_format_fallbackStyle.description": "當已使用樣式 \"file\" 叫用 clang 格式,但找不到 .clang-format 檔案時,用作後援的預先定義樣式名稱。可能的值包括 Visual Studio、LLVM、Google、Chromium、Mozilla、WebKit、none 或使用 {key: value, ...} 來設定特定參數。例如,\"Visual Studio\" 樣式類似於: { BasedOnStyle: LLVM, UseTab: Never, IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, ColumnLimit: 0, AccessModifierOffset: -4, NamespaceIndentation: All, FixNamespaceComments: false }",
121+
"c_cpp.configuration.clang_format_fallbackStyle.description": "當已使用樣式 \"file\" 叫用 clang-format 格式,但找不到 .clang-format 檔案時,用作後援的預先定義樣式名稱。可能的值包括 Visual Studio、LLVM、Google、Chromium、Mozilla、WebKit、none 或使用 {key: value, ...} 來設定特定參數。例如,\"Visual Studio\" 樣式類似於: { BasedOnStyle: LLVM, UseTab: Never, IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, ColumnLimit: 0, AccessModifierOffset: -4, NamespaceIndentation: All, FixNamespaceComments: false }",
122122
"c_cpp.configuration.clang_format_sortIncludes.description": "若設定,會覆寫 SortIncludes 參數所決定的包含排序行為。",
123123
"c_cpp.configuration.intelliSenseEngine.description": "控制 IntelliSense 提供者。「標籤剖析器」會提供非內容感知的「模糊」結果。「預設」會提供內容感知的結果。「停用」會關閉 C/C++ 語言服務功能。",
124124
"c_cpp.configuration.intelliSenseEngineFallback.description": "控制 IntelliSense 引擎是否會自動切換到包含 #include 錯誤之編譯單位的標籤剖析器。",
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
4+
*--------------------------------------------------------------------------------------------*/
5+
// Do not edit this file. It is machine generated.
6+
{
7+
"editorconfig.default.behavior": "程式碼格式設定使用來自 .editorconfig 的設定,而不是 .clang 格式。如需詳細資訊,請參閱 'C_Cpp.formatting' 設定之 'Default' 值的文件。"
8+
}

Extension/i18n/cht/walkthrough/installcompiler/install-compiler-windows.md.i18n.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"walkthrough.windows.link.title1": "在 VS Code 中使用 C++ 與 Windows 子系統 Linux 版 (WSL) ",
1010
"walkthrough.windows.link.title2": "使用 MinGW 在 Windows 安裝 GCC",
1111
"walkthrough.windows.text2": "若要安裝 MSVC,請 {0}從 Visual Studio{1} 頁面下載。",
12-
"walkthrough.windows.build.tools1": "C++ 建置工具",
12+
"walkthrough.windows.build.tools1": "Build Tools for Visual Studio 2019",
1313
"walkthrough.windows.link.downloads": "下載",
1414
"walkthrough.windows.text3": "在 Visual Studio 安裝程式中,檢查 {0} 工作負載,然後選取 {1}。",
1515
"walkthrough.windows.build.tools2": "C++ 組建工具",

0 commit comments

Comments
 (0)