Skip to content

Commit e7dff79

Browse files
authored
Merge pull request #13179 from microsoft/seanmcm/1_23_4_cherrypicks2
More cherry picks for 1.23.4
2 parents f786306 + ec41c3e commit e7dff79

File tree

188 files changed

+688
-544
lines changed

Some content is hidden

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

188 files changed

+688
-544
lines changed

Extension/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Version 1.23.4: January 21, 2025
44
### Bug Fixes
5+
* Fix some localization issues. [#12909](https://github.com/microsoft/vscode-cpptools/issues/12909), [#13090](https://github.com/microsoft/vscode-cpptools/issues/13090)
56
* Fix a couple bugs with `.editorConfig` handling. [PR #13140](https://github.com/microsoft/vscode-cpptools/pull/13140)
67
* Fix a bug when processing a file with invalid multi-byte sequences. [#13150](https://github.com/microsoft/vscode-cpptools/issues/13150)
78
* Fix a potential telemetry issue with Copilot hover. [PR #13158](https://github.com/microsoft/vscode-cpptools/pull/13158)

Extension/i18n/chs/c_cpp_properties.schema.json.i18n.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"c_cpp_properties.schema.json.definitions.configurations.items.properties.compilerArgs": "用于修改所使用的包含或定义的编译器参数,例如 `-nostdinc++`、`-m32` 等。采用其他空格分隔参数的参数应在数组中作为单独的参数输入,例如,对于 `--sysroot <arg>` 使用 `\"--sysroot\", \"<arg>\"`。",
1010
"c_cpp_properties.schema.json.definitions.configurations.items.properties.cStandard": "用于 IntelliSense 的 C 语言标准的版本。注意: GNU 标准仅用于查询设置编译器以获取 GNU 定义,并且 IntelliSense 将模拟等效的 C 标准版本。",
1111
"c_cpp_properties.schema.json.definitions.configurations.items.properties.cppStandard": "用于 IntelliSense 的 C++ 语言标准的版本。注意: GNU 标准仅用于查询设置用来获取 GNU 定义的编译器,并且 IntelliSense 将模拟等效的 C++ 标准版本。",
12-
"c_cpp_properties.schema.json.definitions.configurations.items.properties.compileCommands": "工作区的 `compile_commands.json` 文件的完整路径",
12+
"c_cpp_properties.schema.json.definitions.configurations.items.properties.compileCommands": "工作区的 `compile_commands.json` 文件的完整路径或完整路径列表",
1313
"c_cpp_properties.schema.json.definitions.configurations.items.properties.includePath": "搜索包含的标头时,IntelliSense 引擎要使用的路径列表。在这些路径上进行搜索为非递归搜索。指定 `**` 以指示递归搜索。例如,`${workspaceFolder}/**` 将搜索所有子目录,而 `${workspaceFolder}` 则不会。通常,此操作不应包含系统包含项;请改为设置 `C_Cpp.default.compilerPath`。",
1414
"c_cpp_properties.schema.json.definitions.configurations.items.properties.macFrameworkPath": "IntelliSense 引擎在 Mac 框架中搜索包含的标头时要使用的路径的列表。仅在 Mac 配置中受支持。",
1515
"c_cpp_properties.schema.json.definitions.configurations.items.properties.windowsSdkVersion": "要在 Windows 上使用的 Windows SDK 包含路径的版本,例如 `10.0.17134.0`。",

Extension/i18n/chs/package.i18n.json

+7-6
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"c_cpp.configuration.codeAnalysis.clangTidy.codeAction.showClear.AllAndAllTypeAndThis.description": "如果有多个问题类型,显示“全部清除”,如果有多个 <type> 问题,显示“清除所有 <type>”以及显示“清除此项”代码操作",
7878
"c_cpp.configuration.codeAnalysis.clangTidy.codeAction.formatFixes.markdownDescription": "如果为 `true`,则在“修复”代码操作更改的行上运行格式设置。",
7979
"c_cpp.configuration.codeAnalysis.clangTidy.enabled.markdownDescription": "如果为 `true`,则在 `#C_Cpp.codeAnalysis.runAutomatically#` 为 `true` (默认值)时,将启用使用 `clang-tidy` 的代码分析,并在文件打开或保存后运行它。",
80-
"c_cpp.configuration.codeAnalysis.clangTidy.path.markdownDescription": "`clang-tidy` 可执行文件的完整路径。如果未指定,并且 `clang-tidy` 在环境路径中可用,则使用该路径。如果在环境路径中找不到,则将使用与扩展捆绑的 `clang-tidy`。",
80+
"c_cpp.configuration.codeAnalysis.clangTidy.path.markdownDescription": "`clang-tidy` 可执行文件的完整路径。如果未指定,并且 `clang-tidy` 在环境路径中可用,则除非与扩展捆绑的版本更新,否则将使用该项。如果在环境路径中找不到,则将使用与扩展捆绑的 `clang-tidy`。",
8181
"c_cpp.configuration.codeAnalysis.clangTidy.config.markdownDescription": "指定 YAML/JSON 格式的 `clang-tidy` 配置: `{Checks: '-*,clang-analyzer-*', CheckOptions: [{键: x, 值: y}]}`。当值为空时,`clang-tidy` 将尝试为其父目录中的每个源文件查找名为 `.clang-tidy` 的文件。",
8282
"c_cpp.configuration.codeAnalysis.clangTidy.fallbackConfig.markdownDescription": "指定 YAML/JSON 格式的 `clang-tidy` 配置,以在未设置 `#C_Cpp.codeAnalysis.clangTidy.config#`,并且未找到 `.clang-tidy` 文件: `{Checks: '-*,clang-analyzer-*', CheckOptions: [{键: x, 值: y}]}` 时将其用作回退。",
8383
"c_cpp.configuration.codeAnalysis.clangTidy.headerFilter.markdownDescription": "与要从中输出诊断的标头名称匹配的 POSIX 扩展正则表达式 (ERE)。始终显示来自每个翻译单元的主文件的诊断。支持 `${workspaceFolder}` 变量(如果不存在 `.clang-tidy` 文件,则该变量将用作默认回退值)。如果此选项不是 `null` (空),则将替代 `.clang-tidy` 文件中的 `HeaderFilterRegex` 选项(如果有)。",
@@ -175,7 +175,7 @@
175175
"c_cpp.configuration.vcFormat.wrap.preserveBlocks.oneLiners.markdownDescription": "在一行中输入的完整代码块会保留在一行上,不考虑`C_Cpp.vcFormat.newLine.*` 设置的值。",
176176
"c_cpp.configuration.vcFormat.wrap.preserveBlocks.allOneLineScopes.markdownDescription": "任何在一行中输入左大括号和右大括号的代码都会保留在一行上,不考虑任何 `C_Cpp.vcFormat.newLine.*` 设置的值。",
177177
"c_cpp.configuration.vcFormat.wrap.preserveBlocks.never.markdownDescription": "代码块始终基于 `C_Cpp.vcFormat.newLine.*` 设置的值进行格式化。",
178-
"c_cpp.configuration.clang_format_path.markdownDescription": "`clang-format` 可执行文件的完整路径。如果未指定, `clang-format` 在使用的环境路径中可用。如果在环境路径中找不到,则将使用与扩展捆绑的 `clang-format`。",
178+
"c_cpp.configuration.clang_format_path.markdownDescription": "`clang-format` 可执行文件的完整路径。如果未指定,并且 `clang-format` 在环境路径中可用,则除非与扩展捆绑的版本更新,否则将使用该项。如果在环境路径中找不到,则将使用与扩展捆绑的 `clang-format`。",
179179
"c_cpp.configuration.clang_format_style.markdownDescription": "编码样式目前支持: `Visual Studio`、`LLVM`、 `Google`、`Chromium`、`Mozilla`、`WebKit`、 `Microsoft`、`GNU`。使用 `file` 从当前目录或父目录中的 `.clang-format` 文件加载样式,或使用 `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 }`。",
180180
"c_cpp.configuration.clang_format_fallbackStyle.markdownDescription": "用作回退的预定义样式的名称,以防使用样式 `file` 调用 `clang-format` 但找不到 `.clang-format` 文件。可能的值为 `Visual Studio`、`LLVM`、 `Google`、`Chromium`、`Mozilla`、`WebKit`、 `Microsoft`、`GNU`、`none`,或使用 `{键: 值, ...}` 以设置特定参数。例如,`Visual Studio` 样式类似于: `{ BasedOnStyle: LLVM, UseTab: Never, IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, ColumnLimit: 0, AccessModifierOffset: -4, NamespaceIndentation: All, FixNamespaceComments: false }`。",
181181
"c_cpp.configuration.clang_format_sortIncludes.markdownDescription": "如果设置,则替换由 `SortIncludes` 参数确定的包含排序行为。",
@@ -205,7 +205,7 @@
205205
"c_cpp.configuration.exclusionPolicy.markdownDescription": "当扩展在确定哪些文件应添加到代码导航数据库,并遍历 `browse.path` 数组中的路径时,指示其使用 `#files.exclude#` (和 `#C_Cpp.files.exclude#`)设置的时间。如果 `#files.exclude#` 设置仅包含文件夹,则 `checkFolders` 为最佳选择,且将提高扩展可以初始化代码导航数据库的速度。",
206206
"c_cpp.configuration.exclusionPolicy.checkFolders.description": "排除筛选器将仅对每个文件夹进行一次评估(不检查单个文件)。",
207207
"c_cpp.configuration.exclusionPolicy.checkFilesAndFolders.description": "将针对每个遇到的文件和文件夹评估排除筛选器。",
208-
"c_cpp.configuration.preferredPathSeparator.markdownDescription": "用作 `#include` 自动完成结果的路径分隔符的字符",
208+
"c_cpp.configuration.preferredPathSeparator.markdownDescription": "用作生成的用户路径的路径分隔符的字符",
209209
"c_cpp.configuration.simplifyStructuredComments.markdownDescription": "如果为 `true`,则悬停和自动完成的工具提示将仅显示结构化注释的某些标签。否则,将显示所有注释。",
210210
"c_cpp.configuration.doxygen.generateOnType.description": "控制在键入所选注释样式后是否自动插入 Doxygen 注释。",
211211
"c_cpp.configuration.doxygen.generatedStyle.description": "用作 Doxygen 注释起始行的字符串。",
@@ -253,6 +253,7 @@
253253
"c_cpp.configuration.hover.description": "如果禁用,则语言服务器不再提供悬停详细信息。",
254254
"c_cpp.configuration.vcpkg.enabled.markdownDescription": "为 [vcpkg 依存关系管理器](https://aka.ms/vcpkg/) 启用集成服务。",
255255
"c_cpp.configuration.addNodeAddonIncludePaths.markdownDescription": "当来自 `nan` 和 `node-addon-api` 的包含路径为依赖项时,请将其添加。",
256+
"c_cpp.configuration.copilotHover.markdownDescription": "如果 `disabled`,则悬停时不会显示任何 Copilot 信息。",
256257
"c_cpp.configuration.renameRequiresIdentifier.markdownDescription": "如果为 `true`,则“重命名符号”将需要有效的 C/C++ 标识符。",
257258
"c_cpp.configuration.autocompleteAddParentheses.markdownDescription": "如果为 `true`,则自动完成将在函数调用后自动添加 `(` ,在这种情况下,也可以添加 `)` ,具体取决于 `#editor.autoClosingBrackets#` 设置的值。",
258259
"c_cpp.configuration.filesExclude.markdownDescription": "为排除文件夹(以及文件 - 如果更改了 `#C_Cpp.exclusionPolicy#`)配置 glob 模式。这些特定于 C/C++ 扩展,并且是 `#files.exclude#` 的补充,但与 `#files.exclude#` 不同,它们也适用于当前工作区文件夹之外的路径,并且不会从资源管理器视图中删除。详细了解 [glob 模式](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options)。",
@@ -427,8 +428,8 @@
427428
"c_cpp.walkthrough.create.cpp.file.title": "创建 C++ 文件",
428429
"c_cpp.walkthrough.create.cpp.file.description": "[打开](command:toSide:workbench.action.files.openFile)或[创建](command:toSide:workbench.action.files.newUntitledFile?%7B%22languageId%22%3A%22cpp%22%7D)一个 C++ 文件。请确保将其保存为 \".cpp\" 扩展名,例如 \"helloworld.cpp\"\n[创建 C++ 文件](command:toSide:workbench.action.files.newUntitledFile?%7B%22languageId%22%3A%22cpp%22%7D)",
429430
"c_cpp.walkthrough.create.cpp.file.altText": "使用 C++ 项目打开 C++ 文件或文件夹。",
430-
"c_cpp.walkthrough.command.prompt.title": "从开发人员命令提示启动",
431-
"c_cpp.walkthrough.command.prompt.description": "使用 Microsoft Visual Studio C++ 编译器时,C++ 扩展需要从开发人员命令提示符中启动 VS Code。请按照右侧的说明重新启动。\n[重新加载窗口](command:workbench.action.reloadWindow)",
431+
"c_cpp.walkthrough.command.prompt.title": "从 VS 的开发人员命令提示启动",
432+
"c_cpp.walkthrough.command.prompt.description": "使用 Microsoft Visual Studio C++ 编译器时,C++ 扩展需要你从 VS 的开发人员命令提示符中启动 VS Code。请按照右侧的说明重新启动。\n[重新加载窗口](command:workbench.action.reloadWindow)",
432433
"c_cpp.walkthrough.run.debug.title": "运行并调试 C++ 文件",
433434
"c_cpp.walkthrough.run.debug.mac.description": "打开你的 C++ 文件,在编辑器右上角点击播放按钮,或者在文件上按 F5。选择“clang++ - 构建和调试活动文件”以使用调试器运行。",
434435
"c_cpp.walkthrough.run.debug.linux.description": "打开 C++ 文件,在编辑器右上角点击播放按钮,或者在文件上按 F5。选择“g++ - 构建和调试活动文件”以使用调试器运行。",
@@ -449,4 +450,4 @@
449450
"c_cpp.configuration.refactoring.includeHeader.never.description": "从不包含头文件。",
450451
"c_cpp.languageModelTools.configuration.displayName": "C/C++ 配置",
451452
"c_cpp.languageModelTools.configuration.userDescription": "活动 C 或 C++ 文件的配置,例如语言标准版本和目标平台。"
452-
}
453+
}

Extension/i18n/chs/src/Debugger/configurationProvider.i18n.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"pre.Launch.Task": "preLaunchTask: {0}",
1818
"debugger.path.not.exists": "找不到 {0} 调试器。将忽略 {1} 的调试配置。",
1919
"build.and.debug.active.file": "构建和调试活动文件",
20-
"cl.exe.not.available": "仅当从 VS 开发人员命令提示符处运行 VS Code 时,{0} 生成和调试才可用",
20+
"cl.exe.not.available": "{0} 仅在 VS Code 从 {1} 中运行时才可用",
2121
"lldb.find.failed": "缺少 lldb-mi 可执行文件的依赖项“{0}”。",
2222
"lldb.search.paths": "搜索范围:",
2323
"lldb.install.help": "要解决此问题,请通过 Apple App Store 安装 XCode,或通过在终端窗口运行“{0}”来安装 XCode 命令行工具。",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
"generate.copilot.description": "生成 Copilot 摘要",
8+
"copilot.disclaimer": "AI 生成的内容可能不正确。"
9+
}

Extension/i18n/chs/src/LanguageServer/codeAnalysis.i18n.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"clear.all.code.analysis.problems": "清除所有代码分析问题",
99
"fix.all.type.problems": "修复所有 {0} 问题",
1010
"disable.all.type.problems": "禁用所有 {0} 问题",
11-
"clear.all.type.problems": "清除所有{0}问题",
11+
"clear.all.type.problems": "清除所有 {0} 问题",
1212
"clear.this.problem": "清除此 {0} 问题",
1313
"fix.this.problem": "修复此 {0} 问题",
1414
"show.documentation.for": "显示 {0} 文档"
15-
}
15+
}

Extension/i18n/chs/src/LanguageServer/configurations.i18n.json

+1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
"path.is.not.a.directory": "路径不是目录: {0}",
1818
"duplicate.name": "{0} 重复。配置名称应是唯一的。",
1919
"multiple.paths.not.allowed": "不允许使用多个路径。",
20+
"multiple.paths.should.be.separate.entries": "多个路径应是数组中的单独条目。",
2021
"paths.are.not.directories": "路径不是目录: {0}"
2122
}

Extension/i18n/chs/src/LanguageServer/extension.i18n.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,9 @@
1919
"code.action.aborted": "无法应用代码分析修复程序,因为文档已更改。",
2020
"prerelease.message": "C/C++ 扩展的预发行版本可用。是否要切换到它?",
2121
"yes.button": "",
22-
"no.button": ""
22+
"no.button": "",
23+
"copilot.hover.unavailable": "Copilot 摘要不可用。",
24+
"copilot.hover.excluded": "包含此符号的定义或声明的文件已排除在 Copilot 的使用范围之外。",
25+
"copilot.hover.unavailable.symbol": "Copilot 摘要不可用于此符号。",
26+
"copilot.hover.error": "生成 Copilot 摘要时出错。"
2327
}

Extension/i18n/chs/src/SSH/sshCommandRunner.i18n.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Do not edit this file. It is machine generated.
66
{
77
"ssh.canceled": "已取消 SSH 命令",
8-
"ssh.passphrase.input.box": "输入 ssh 密钥的密码{0}",
8+
"ssh.passphrase.input.box": "输入 ssh 密钥的密码 {0}",
99
"ssh.enter.password.for.user": "输入用户 \"{0}\" 的密码",
1010
"ssh.message.enter.password": "输入密码",
1111
"ssh.continue.confirmation.placeholder": "您确定要继续吗?",
@@ -17,4 +17,4 @@
1717
"ssh.continuing.command.canceled": "已取消任务 \"{0}\",但基础命令可能不会终止。请手动进行检查。",
1818
"ssh.process.failed": "\"{0}\" 进程失败: {1}",
1919
"ssh.wrote.data.to.terminal": "\"{0}\" 已将数据写入终端: \"{1}\""
20-
}
20+
}

Extension/i18n/chs/src/nativeStrings.i18n.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@
159159
"fallback_to_64_bit_mode2": "未能查询编译器。正在回退到 64 位 intelliSenseMode。",
160160
"fallback_to_no_bitness": "未能查询编译器。正在回退到无位数。",
161161
"intellisense_client_creation_aborted": "已中止创建 IntelliSense 客户端: {0}",
162-
"include_errors_config_provider_intellisense_disabled ": "基于 configurationProvider 设置提供的信息检测到 #include 错误。此翻译单元({0})的 IntelliSense 功能将由标记分析器提供。",
163-
"include_errors_config_provider_squiggles_disabled ": "基于 configurationProvider 设置提供的信息检测到 #include 错误。已针对此翻译单元({0})禁用波形曲线。",
162+
"include_errors_config_provider_intellisense_disabled": "基于 configurationProvider 设置提供的信息检测到 #include 错误。此翻译单元({0})的 IntelliSense 功能将由标记分析器提供。",
163+
"include_errors_config_provider_squiggles_disabled": "基于 configurationProvider 设置提供的信息检测到 #include 错误。已针对此翻译单元({0})禁用波形曲线。",
164164
"preprocessor_keyword": "预处理器关键字",
165165
"c_keyword": "C 关键字",
166166
"cpp_keyword": "C++ 关键字",
@@ -316,5 +316,6 @@
316316
"refactor_extract_xborder_jump": "所选代码和外层代码之间的存在跳跃。",
317317
"refactor_extract_missing_return": "在所选代码中,一些控制路径退出而没有设置返回值。这只受标量、数字、和指针返回类型支持。",
318318
"expand_selection": "展开选择(以启用“提取到函数”)",
319-
"file_not_found_in_path2": "在 compile_commands.json 文件中找不到 \"{0}\"。此文件将改用文件夹“{1}”中的 c_cpp_properties.json 中包含的 \"includePath\""
319+
"file_not_found_in_path2": "在 compile_commands.json 文件中找不到 \"{0}\"。此文件将改用文件夹“{1}”中的 c_cpp_properties.json 中包含的 \"includePath\"",
320+
"copilot_hover_link": "生成 Copilot 摘要"
320321
}

Extension/i18n/chs/ui/settings.html.i18n.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
"dot.config": "点配置",
5656
"dot.config.description": "Kconfig 系统创建的 .config 文件的路径。Kconfig 系统生成包含所有定义的文件以生成项目。使用 Kconfig 系统的项目示例包括 Linux 内核和 NuttX RTOS。",
5757
"compile.commands": "编译命令",
58-
"compile.commands.description": "工作区的 {0} 文件的完整路径。将使用在此文件中所发现的包含路径和定义,而不是为 {1} 和 {2} 设置设定的值。如果编译命令数据库不包含与你在编辑器中打开的文件对应的翻译单元条目,则将显示一条警告消息,并且扩展将改用 {3} 和 {4} 设置。",
58+
"compile.commands.description": "工作区的 {0} 文件的路径列表。将使用在这些文件中发现的包含路径和定义,而不是为 {1} 和 {2} 设置设定的值。如果编译命令数据库不包含与你在编辑器中打开的文件对应的翻译单元条目,则将显示一条警告消息,并且扩展将转而使用 {3} 和 {4} 设置。",
59+
"one.compile.commands.path.per.line": "每行一个编译命令路径。",
5960
"merge.configurations": "合并配置",
6061
"merge.configurations.description": "如果为 {0} (或已选中),则将包含路径、定义和强制包含与来自配置提供程序包含路径、定义和强制包含合并。",
6162
"browse.path": "浏览: 路径",

0 commit comments

Comments
 (0)