Skip to content

Commit 3f7f309

Browse files
authored
Merge pull request #11633 from microsoft/main
Merge for 1.18.2
2 parents 4149493 + 468149a commit 3f7f309

File tree

196 files changed

+1995
-1034
lines changed

Some content is hidden

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

196 files changed

+1995
-1034
lines changed

Extension/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# C/C++ for Visual Studio Code Changelog
22

3+
## Version 1.18.2: November 7, 2023
4+
### Bug Fixes
5+
* Fix an IntelliSense crash when hovering over an invalid array index expression. [#11510](https://github.com/microsoft/vscode-cpptools/issues/11510)
6+
* Fix 'Add #include' code actions not appearing for "is not a template" errors. [#11543](https://github.com/microsoft/vscode-cpptools/issues/11543)
7+
* Fix 'Extract to function' bugs with formatting and selection. [#11614](https://github.com/microsoft/vscode-cpptools/issues/11614), [#11619](https://github.com/microsoft/vscode-cpptools/issues/11619)
8+
* Fix 'Add #include' code actions being available for system headers that are already included. [#11618](https://github.com/microsoft/vscode-cpptools/issues/11618)
9+
310
## Version 1.18.1: November 2, 2023
411
### New Feature
512
* Add `#include` code action suggestions for some IntelliSense errors related to symbols not being found. [#10791](https://github.com/microsoft/vscode-cpptools/issues/10791)

Extension/i18n/chs/package.i18n.json

+16-7
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"c_cpp.command.configurationProviderSelect.title": "更改配置提供程序...",
1717
"c_cpp.command.configurationEditJSON.title": "编辑配置(JSON)",
1818
"c_cpp.command.configurationEditUI.title": "编辑配置(UI)",
19-
"c_cpp.command.selectDefaultCompiler.title": "选择默认编译器...",
2019
"c_cpp.command.selectIntelliSenseConfiguration.title": "选择 IntelliSense 配置...",
20+
"c_cpp.command.installCompiler.title": "安装 C++ 编译器",
2121
"c_cpp.command.rescanCompilers.title": "重新扫描编译器",
2222
"c_cpp.command.switchHeaderSource.title": "切换标头/源",
2323
"c_cpp.command.enableErrorSquiggles.title": "启用错误波形曲线",
@@ -416,8 +416,9 @@
416416
"c_cpp.walkthrough.description": "深入了解 VS Code 丰富的 C++ 开发体验。",
417417
"c_cpp.walkthrough.set.up.title": "设置 C++ 环境",
418418
"c_cpp.walkthrough.activating.description": "激活 C++ 扩展以确定是否已设置 C++ 环境。\n正在激活扩展...",
419-
"c_cpp.walkthrough.no.compilers.description": "无法在计算机上找到 C++ 编译器,这是使用 C++ 扩展所必需的。请按照右侧的说明安装一个编译器,然后单击下面的“查找我的新编译器”。\n[查找我的新编译器](command:C_Cpp.RescanCompilers?%7B%22sender%22%3A%22walkthrough%22%7D)",
420-
"c_cpp.walkthrough.compilers.found.description": "C++ 扩展需要与 C++ 编译器一起使用。通过单击下面的按钮从计算机上已有的编译器中选择一个。\n[选择我的默认编译器](command:C_Cpp.SelectDefaultCompiler?%7B%22sender%22%3A%22walkthrough%22%7D)",
419+
"c_cpp.walkthrough.no.compilers.windows.description": "无法在计算机上找到 C++ 编译器,这是使用 C++ 扩展所必需的。请按照右侧的说明安装一个编译器,然后单击下面的“查找我的新编译器”。\n[查找我的新编译器](command:C_Cpp.RescanCompilers?%22walkthrough%22)",
420+
"c_cpp.walkthrough.no.compilers.description": "在你的计算机上找不到 C++ 编译器,而使用 C++ 扩展需要该编译器。请选择“安装 C++ 编译器”,为你安装编译器,或者按照右侧的说明安装编译器,然后单击下面的“查找我的新编译器”。\n[安装 C++ 编译器](command:C_Cpp.InstallCompiler?%22walkthrough%22)\n[查找我的新编译器](command:C_Cpp.RescanCompilers?%22walkthrough%22)",
421+
"c_cpp.walkthrough.compilers.found.description": "C++ 扩展需要与 C++ 编译器一起使用。通过点击下面的按钮从机器上已有的编译器中选择一个。\n[选择我的默认编译器](command:C_Cpp.SelectIntelliSenseConfiguration?%22walkthrough%22)",
421422
"c_cpp.walkthrough.compilers.found.altText": "显示在用户计算机上找到的选定默认编译器快捷检查和编译器列表的图像,其中一个已选定。",
422423
"c_cpp.walkthrough.create.cpp.file.title": "创建 C++ 文件",
423424
"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)",
@@ -430,8 +431,16 @@
430431
"c_cpp.walkthrough.run.debug.windows.description": "打开你的 C++ 文件,然后在编辑器右上角点击播放按钮,或者当你在该文件上时按下 F5。选择“cl.exe - 构建和调试活动文件”以使用调试器运行。",
431432
"c_cpp.walkthrough.run.debug.windows.altText": "显示 C++ 文件中的断点、f5 按钮和右上角的运行符号的图像",
432433
"c_cpp.walkthrough.customize.debugging.title": "自定义调试",
433-
"c_cpp.walkthrough.customize.debugging.mac.description": "可以通过在播放按钮右侧选择“添加调试配置”来自定义调试配置(例如,在运行时传递参数给程序)。自定义调试配置将保存在项目的 launch.json 文件中。\n[了解更多](https://code.visualstudio.com/docs/cpp/config-linux#_debug-helloworldcpp)",
434-
"c_cpp.walkthrough.customize.debugging.linux.description": "可以通过在播放按钮右侧选择“添加调试配置”来自定义调试配置(例如,在运行时传递参数给程序)。自定义调试配置将保存在项目的 launch.json 文件中。\n[了解更多](https://code.visualstudio.com/docs/cpp/config-msvc#_debug-helloworldcpp)",
435-
"c_cpp.walkthrough.customize.debugging.windows.description": "可以通过在播放按钮右侧选择“添加调试配置”来自定义调试配置(例如,在运行时传递参数给程序)。自定义的调试配置将保存在项目的 launch.json 文件中。\n[了解更多](https://code.visualstudio.com/docs/cpp/config-clang-mac#_debug-helloworldcpp)",
436-
"c_cpp.walkthrough.customize.debugging.altText": "显示下拉列表中“添加调试配置”的图像"
434+
"c_cpp.walkthrough.customize.debugging.mac.description": "若要自定义调试配置,请在活动栏中选择“资源管理器”,然后打开包含 C++ 文件的文件夹。打开 C++ 文件,然后选择播放按钮右侧的“添加调试配置”。新的调试配置将保存到项目的 launch.json 文件中。\n[了解详细信息](https://code.visualstudio.com/docs/cpp/config-linux#_debug-helloworldcpp)",
435+
"c_cpp.walkthrough.customize.debugging.linux.description": "若要自定义调试配置,请在活动栏中选择“资源管理器”,然后打开包含 C++ 文件的文件夹。打开 C++ 文件,然后选择播放按钮右侧的“添加调试配置”。新的调试配置将保存到项目的 launch.json 文件中。\n[了解详细信息](https://code.visualstudio.com/docs/cpp/config-msvc#_debug-helloworldcpp)",
436+
"c_cpp.walkthrough.customize.debugging.windows.description": "若要自定义调试配置,请在活动栏中选择“资源管理器”,然后打开包含 C++ 文件的文件夹。打开 C++ 文件,然后选择播放按钮右侧的“添加调试配置”。新的调试配置将保存到项目的 launch.json 文件中。\n[了解详细信息](https://code.visualstudio.com/docs/cpp/config-clang-mac#_debug-helloworldcpp)",
437+
"c_cpp.walkthrough.customize.debugging.altText": "显示下拉列表中“添加调试配置”的图像",
438+
"c_cpp.codeActions.refactor.inline.macro.title": "内联宏",
439+
"c_cpp.codeActions.refactor.inline.macro.description": "将宏调用替换为展开的代码。",
440+
"c_cpp.codeActions.refactor.extract.function.title": "提取到函数",
441+
"c_cpp.codeActions.refactor.extract.function.description": "将所选代码提取到自由函数或成员函数。",
442+
"c_cpp.configuration.refactoring.includeHeader.markdownDescription": "控制在执行重构操作(例如创建声明/定义)时是否将已重构的函数/符号的头文件包含在其相应的源文件。",
443+
"c_cpp.configuration.refactoring.includeHeader.always.description": "如果头文件未显式包含在源文件中,则始终包含该头文件。",
444+
"c_cpp.configuration.refactoring.includeHeader.ifNeeded.description": "仅当头文件未显式包含在源文件中或通过隐式包含来包含在内时,才包含该头文件。",
445+
"c_cpp.configuration.refactoring.includeHeader.never.description": "从不包含头文件。"
437446
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
*--------------------------------------------------------------------------------------------*/
55
// Do not edit this file. It is machine generated.
66
{
7-
"ignoring.lines.in.envfile": "忽略 {0} {1} 中不可分析的行:"
7+
"ignoring.lines.in.envfile": "忽略 {0} {1} 中不可分析的行: "
88
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
"select.ssh.config.file": "选择 SSH 配置文件",
1515
"yes": "",
1616
"no": "",
17-
"ssh.target.delete.confirmation": "是否确实要永久删除“{0}”?"
17+
"ssh.target.delete.confirmation": "是否确定要永久删除“{0}”?"
1818
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
"expands.to": "扩展到:",
8+
"inline.macro": "内联宏",
9+
"inline.macro.not.available": "内联宏在此位置不可用。"
10+
}

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

+7-22
Original file line numberDiff line numberDiff line change
@@ -11,44 +11,29 @@
1111
"use.compiler": "使用 {0}",
1212
"configuration.providers": "配置提供程序",
1313
"compilers": "编译器",
14-
"setCompiler.message": "未配置编译器。除非设置自己的配置,否则 IntelliSense 可能无法正常工作。",
15-
"selectIntelliSenseConfiguration.string": "选择 IntelliSense 配置...",
1614
"use.provider": "使用 {0}",
1715
"use.compileCommands": "使用 {0}",
1816
"selectAnotherCompiler.string": "在我的计算机上选择另一个编译器...",
1917
"installCompiler.string": "帮助我安装编译器",
18+
"installCompiler.string.nix": "安装编译器",
2019
"noConfig.string": "请勿适用编译器进行配置(不推荐)",
21-
"selectCompiler.string": "选择编译器",
22-
"confirmCompiler.string": "",
23-
"selectCompiler.message": "已找到编译器 {0}。是否要使用此编译器配置 IntelliSense?",
2420
"check.permissions": "EPERM: 检查“{0}”的权限",
2521
"unable.to.start": "无法启动 C/C++ 语言服务器。IntelliSense 功能将被禁用。错误: {0}",
2622
"server.crashed.restart": "语言服务器崩溃。正在重新启动...",
2723
"server.crashed2": "在过去 3 分钟内,语言服务器崩溃了 5 次。它不会重新启动。",
2824
"loggingLevel.changed": "{0} 已更改为: {1}",
2925
"dismiss.button": "消除",
30-
"diable.warnings.button": "禁用警告",
26+
"disable.warnings.button": "禁用警告",
3127
"unable.to.provide.configuration": "{0} 无法为“{1}”提供 IntelliSense 配置信息。将改为使用“{2}”配置中的设置。",
3228
"config.not.found": "找不到请求的配置名称: {0}",
3329
"unsupported.client": "不支持的客户端",
3430
"timed.out": "将在 {0} 毫秒后超时。",
3531
"update.intellisense.time": "更新 IntelliSense 时间(秒): {0}",
36-
"configure.json.button": "配置(JSON)",
37-
"configure.ui.button": "配置(UI)",
38-
"dont.show.again": "不再显示",
39-
"update.your.intellisense.settings": "更新 IntelliSense 设置或使用 Vcpkg 来安装用于帮助查找缺少的标头的库。",
40-
"configure.your.intellisense.settings": "配置 IntelliSense 设置以帮助查找缺少的标头。",
41-
"provider.configure.folder": "{0} 想要为“{1}”文件夹配置 IntelliSense。",
42-
"provider.configure.this.folder": "{0} 想要为此文件夹配置 IntelliSense。",
43-
"allow.button": "允许",
44-
"dont.allow.button": "不允许",
45-
"ask.me.later.button": "稍后询问我",
46-
"a.compile.commands.file": "compile_commands.json 文件",
47-
"auto-configure.intellisense.folder": "是否要使用 {0} 为“{1}”文件夹自动配置 IntelliSense?",
48-
"auto-configure.intellisense.this.folder": "是否要使用 {0} 为此文件夹自动配置 IntelliSense?",
49-
"yes.button": "",
50-
"no.button": "",
5132
"configurations.received": "已收到自定义配置:",
5233
"browse.configuration.received": "已收到自定义浏览配置: {0}",
53-
"fallback.clipboard": "已复制声明/定义。"
34+
"fallback.clipboard": "已复制声明/定义。",
35+
"handle.extract.name": "为提取的函数命名",
36+
"handle.extract.new.function": "NewFunction",
37+
"handle.extract.error": "未能提取到函数: {0}",
38+
"invalid.edit": "未能提取到函数。生成了无效的编辑:“{0}”"
5439
}

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
*--------------------------------------------------------------------------------------------*/
55
// Do not edit this file. It is machine generated.
66
{
7-
"fix_all_code_analysis_problems": "修复所有代码分析问题",
8-
"clear_all_code_analysis_problems": "清除所有代码分析问题",
9-
"fix_all_type_problems": "修复所有 {0} 问题",
10-
"disable_all_type_problems": "禁用所有 {0} 问题",
11-
"clear_all_type_problems": "清除所有{0}问题",
12-
"clear_this_problem": "清除此 {0} 问题",
13-
"fix_this_problem": "修复此 {0} 问题",
14-
"show_documentation_for": "显示 {0} 文档"
7+
"fix.all.code.analysis.problems": "修复所有代码分析问题",
8+
"clear.all.code.analysis.problems": "清除所有代码分析问题",
9+
"fix.all.type.problems": "修复所有 {0} 问题",
10+
"disable.all.type.problems": "禁用所有 {0} 问题",
11+
"clear.all.type.problems": "清除所有{0}问题",
12+
"clear.this.problem": "清除此 {0} 问题",
13+
"fix.this.problem": "修复此 {0} 问题",
14+
"show.documentation.for": "显示 {0} 文档"
1515
}

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
*--------------------------------------------------------------------------------------------*/
55
// Do not edit this file. It is machine generated.
66
{
7-
"build_active_file": "生成活动文件",
8-
"compiler_details": "编译器:",
9-
"task_generated_by_debugger": "调试器生成的任务。",
7+
"build.active.file": "生成活动文件",
8+
"compiler.details": "编译器:",
9+
"task.generated.by.debugger": "调试器生成的任务。",
1010
"cannot.build.non.cpp": "无法生成和调试,因为活动文件不是 C 或 C++ 源文件。",
11-
"starting_build": "正在启动生成...",
11+
"starting.build": "正在启动生成...",
1212
"build.run.terminated": "生成运行已终止。",
1313
"build.finished.with.error": "生成已完成,但出现错误。",
1414
"build.finished.with.warnings": "生成已完成,但收到警告。",

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

+9-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,16 @@
88
"copy.vcpkg.command": "将用于安装“{0}”的 vcpkg 命令复制到剪贴板",
99
"on.disabled.command": "当 `C_Cpp.intelliSenseEngine` 设置为 `disabled` 时,无法执行与 IntelliSense 相关的命令。",
1010
"client.not.found": "未找到客户端",
11+
"ok": "确定",
12+
"install.compiler.mac.title": "现在将安装 clang 编译器",
13+
"install.compiler.mac.detail": "系统可能会提示你在 VS Code 终端窗口中键入密码以授权安装。",
14+
"install.compiler.linux.title": "现在将安装 gcc 编译器",
15+
"install.compiler.linux.detail": "系统可能会提示你在 VS Code 终端窗口中键入密码以授权安装。",
1116
"configuration.select.first": "首先打开一个文件夹以选择配置。",
1217
"configuration.provider.select.first": "首先打开一个文件夹以选择配置提供程序。",
1318
"edit.configurations.open.first": "首先打开一个文件夹以编辑配置",
14-
"code.action.aborted": "无法应用代码分析修复程序,因为文档已更改。"
19+
"code.action.aborted": "无法应用代码分析修复程序,因为文档已更改。",
20+
"prerelease.message": "C/C++ 扩展的预发行版本可用。是否要切换到它?",
21+
"yes.button": "",
22+
"no.button": ""
1523
}

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

+22-27
Original file line numberDiff line numberDiff line change
@@ -4,58 +4,53 @@
44
*--------------------------------------------------------------------------------------------*/
55
// Do not edit this file. It is machine generated.
66
{
7+
"updating.intellisense.text": "IntelliSense: 正在更新",
8+
"idle.intellisense.text": "IntelliSense: 就绪",
9+
"initializing.tagparser.text": "正在初始化工作区",
10+
"indexing.tagparser.text": "正在索引工作区",
711
"running.tagparser.text": "分析工作区",
812
"paused.tagparser.text": "分析工作区: 已暂停",
913
"complete.tagparser.text": "分析完毕",
10-
"initializing.tagparser.text": "正在初始化工作区",
11-
"indexing.tagparser.text": "正在索引工作区",
1214
"rescan.tagparse.text": "重新扫描工作区",
1315
"c.cpp.parsing.open.files.tooltip": "正在分析打开的文件",
14-
"click.to.preview": "单击以预览结果",
15-
"updating.intellisense.text": "IntelliSense: 正在更新",
16-
"idle.intellisense.text": "IntelliSense: 就绪",
17-
"absent.intellisense.text": "IntelliSense: 未配置",
1816
"running.analysis.text": "Code Analysis: 正在运行",
1917
"paused.analysis.text": "Code Analysis: 已暂停",
2018
"mode.analysis.prefix": "Code Analysis 模式:",
19+
"click.to.preview": "单击以预览结果",
2120
"c.cpp.configureIntelliSenseStatus.text": "配置 IntelliSense",
22-
"c.cpp.configureIntelliSenseStatus.cppText": "C/C++ 配置 IntelliSense",
23-
"c.cpp.configuration.tooltip": "C/C++ 配置",
24-
"c.cpp.references.statusbar": "C/C++ 引用状态",
2521
"cpptools.status.intellisense": "C/C++ IntelliSense 状态",
22+
"rescan.intellisense.text": "重新扫描",
23+
"rescan.intellisense.tooltip": "重新扫描 IntelliSense",
2624
"cpptools.status.tagparser": "C/C++ 标记分析器状态",
2725
"cpptools.detail.tagparser": "正在初始化...",
26+
"tagparser.resume.text": "继续",
27+
"tagparser.pause.text": "暂停",
2828
"cpptools.status.codeanalysis": "C/C++ Code Analysis 状态",
2929
"c.cpp.codeanalysis.statusbar.runNow": "立即运行",
30-
"tagparser.pause.text": "暂停",
31-
"tagparser.resume.text": "继续",
32-
"intellisense.select.text": "选择编译器",
33-
"rescan.intellisense.text": "重新扫描",
34-
"rescan.intellisense.tooltip": "重新扫描 IntelliSense",
3530
"mode.codeanalysis.status.automatic": "自动",
3631
"mode.codeanalysis.status.manual": "手动",
3732
"c.cpp.codeanalysis.statusbar.showCodeAnalysisOptions": "选项",
3833
"startup.codeanalysis.status": "正在启动...",
3934
"c.cpp.codeanalysis.statusbar.showRunNowOptions": "立即运行",
4035
"running.analysis.processed.tooltip": "正在运行: {0}/{1} ({2}%)",
41-
"select.a.configuration": "选择配置...",
42-
"edit.configuration.ui": "编辑配置(UI)",
43-
"edit.configuration.json": "编辑配置(JSON)",
44-
"select.configuration.provider": "选择配置提供程序...",
45-
"active": "活动",
46-
"none": "",
47-
"disable.configuration.provider": "禁用活动配置提供程序(如果适用)。",
48-
"select.compile.commands": "选择 compile_commands.json...",
49-
"select.workspace": "选择工作区文件夹…",
50-
"select.command": "选择命令...",
5136
"select.code.analysis.command": "选择代码分析命令...",
52-
"resume.parsing": "恢复工作区分析",
53-
"pause.parsing": "暂停工作区分析",
5437
"cancel.analysis": "取消",
5538
"resume.analysis": "继续",
5639
"pause.analysis": "暂停",
5740
"another.analysis": "启动另一个...",
41+
"select.command": "选择命令...",
5842
"active.analysis": "在活动文件上运行 Code Analysis",
5943
"all.analysis": "在所有文件上运行 Code Analysis",
60-
"open.analysis": "在打开的文件上运行 Code Analysis"
44+
"open.analysis": "在打开的文件上运行 Code Analysis",
45+
"c.cpp.references.statusbar": "C/C++ 引用状态",
46+
"c.cpp.configuration.tooltip": "C/C++ 配置",
47+
"c.cpp.configureIntelliSenseStatus.cppText": "C/C++ 配置 IntelliSense",
48+
"select.a.configuration": "选择配置...",
49+
"edit.configuration.ui": "编辑配置(UI)",
50+
"edit.configuration.json": "编辑配置(JSON)",
51+
"select.configuration.provider": "选择配置提供程序...",
52+
"active": "活动",
53+
"none": "",
54+
"disable.configuration.provider": "禁用活动配置提供程序(如果适用)。",
55+
"select.workspace": "选择工作区文件夹…"
6156
}

0 commit comments

Comments
 (0)