Skip to content

Commit 0445fc4

Browse files
authored
Merge pull request #9603 from microsoft/main
Merge for 1.11.3
2 parents 16b4710 + 34c3835 commit 0445fc4

File tree

154 files changed

+1873
-304
lines changed

Some content is hidden

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

154 files changed

+1873
-304
lines changed

.github/ISSUE_TEMPLATE/language-service.md

Lines changed: 0 additions & 65 deletions
This file was deleted.
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: Bug Report - Language Service
2+
description: Create a bug report for IntelliSense, autocomplete, code editing, code navigation, etc.
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
### Is there an existing issue for this?
8+
Please search our [existing issues](https://github.com/microsoft/vscode-cpptools/issues) to see if an issue already exists for the bug you encountered.
9+
10+
Please also review our [documentation](https://code.visualstudio.com/docs/languages/cpp) and [FAQs](https://code.visualstudio.com/docs/cpp/faq-cpp).
11+
- type: textarea
12+
attributes:
13+
label: Environment
14+
description: |
15+
Please provide the information for the following:
16+
- OS and Version
17+
- VS Code Version
18+
- C/C++ Extension Version
19+
- Other extensions you installed (and if the issue persists after disabling them)
20+
- If using SSH remote, specify OS of remote machine
21+
- A clear and concise description of what the bug is, including information about the workspace (i.e. is the workspace a single project or multiple projects, size of the project, etc).
22+
value: |
23+
- OS and Version:
24+
- VS Code Version:
25+
- C/C++ Extension Version:
26+
- Other extensions you installed (and if the issue persists after disabling them):
27+
- If using SSH remote, specify OS of remote machine:
28+
- A clear and concise description of what the bug is, including information about the workspace (i.e. is the workspace a single project or multiple projects, size of the project, etc).
29+
validations:
30+
required: true
31+
- type: textarea
32+
attributes:
33+
label: Bug Summary and Steps to Reproduce
34+
description: |
35+
Please describe the language service issue or language service feature that is not working as expected.
36+
37+
Include clear steps on how to reproduce the issue.
38+
value: |
39+
Bug Summary:
40+
41+
42+
Steps to reproduce:
43+
1. Go to '...'
44+
2. Click on '....'
45+
3. Scroll down to '....'
46+
4. See error
47+
validations:
48+
required: true
49+
- type: textarea
50+
attributes:
51+
label: Expected behavior
52+
description: A clear and concise description of what you expected to happen.
53+
validations:
54+
required: false
55+
- type: textarea
56+
attributes:
57+
label: Code sample and Logs
58+
description: |
59+
Please provide code sample, your c_cpp_properties.json and logs:
60+
- Code sample
61+
- Configurations in `c_cpp_properties.json`
62+
- Logs from running `C/C++: Log Diagnostics` from the VS Code command palette
63+
- Logs from [the language server logging](https://code.visualstudio.com/docs/cpp/enable-logging-cpp#_enable-logging-for-the-language-server)
64+
render: shell
65+
validations:
66+
required: true
67+
- type: textarea
68+
attributes:
69+
label: Screenshots
70+
description: If applicable, add screenshots to help explain your problem.
71+
validations:
72+
required: false
73+
- type: textarea
74+
attributes:
75+
label: Additional context
76+
description: |
77+
Providing call stacks:
78+
For bugs like crashes, deadlocks, infinite loops, etc. that we are not able to repro and for which the call stack may be useful, please attach a debugger and/or create a dmp and provide the call stacks. Windows binaries have symbols available in VS Code by setting your "symbolSearchPath" to "https://msdl.microsoft.com/download/symbols".
79+
80+
Instructions for attaching debugger to language service process:
81+
https://github.com/microsoft/vscode-cpptools/wiki/Attaching-debugger-to-cpptools-or-cpptools%E2%80%90srv.
82+
83+
Performance analysis:
84+
For a performance issue see instructions at https://github.com/microsoft/vscode-cpptools/wiki/Troubleshooting-Performance-Issues.
85+
validations:
86+
required: false

Extension/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
# C/C++ for Visual Studio Code Change Log
2+
## Version 1.11.3 (pre-release): July 19, 2022
3+
### New Feature
4+
* Added extended remote support for debugging. [#8497](https://github.com/microsoft/vscode-cpptools/issues/8497), [#9195](https://github.com/microsoft/vscode-cpptools/issues/9195), [#9491](https://github.com/microsoft/vscode-cpptools/discussions/9491), [#9505](https://github.com/microsoft/vscode-cpptools/issues/9505)
5+
6+
### Bug Fixes
7+
* Fix doc comments for macros and typedefs. [#8320](https://github.com/microsoft/vscode-cpptools/issues/8320)
8+
* Fix issue with CUDA configuration when using a custom config provider and no config is available for the file. [#8483](https://github.com/microsoft/vscode-cpptools/issues/8483)
9+
* Fix code analysis not detecting warnings with relative paths. [#9555](https://github.com/microsoft/vscode-cpptools/issues/9555)
10+
* Fix `--header-filter` being used with clang-tidy when it shouldn't when a .clang-tidy file exists. [#9566](https://github.com/microsoft/vscode-cpptools/issues/9566)
11+
* Fix code analysis giving an error with `__has_include` with gcc 9. [#9575](https://github.com/microsoft/vscode-cpptools/issues/9575)
12+
* Fix `-target` not being processed in `compilerArgs`. [#9586](https://github.com/microsoft/vscode-cpptools/issues/9586)
13+
14+
## Version 1.11.2 (pre-release): July 8, 2022
15+
### Enhancements
16+
* Add deploySteps and variables to cppdbg. [PR #9418](https://github.com/microsoft/vscode-cpptools/pull/9418)
217

318
## Version 1.11.2 (pre-release): July 8, 2022
419
### Enhancements
@@ -15,6 +30,7 @@
1530
### Bug Fixes
1631
* Fix "unknown register name" IntelliSense error. [#4382](https://github.com/microsoft/vscode-cpptools/issues/4382)
1732
* Fix performance issue with tag parsing a file with a lot of defines. [#6454](https://github.com/microsoft/vscode-cpptools/issues/6454)
33+
* Fix IntelliSense with gcc vector extension types. [#6890](https://github.com/microsoft/vscode-cpptools/issues/6890)
1834
* Fix missing logging when `C_Cpp.intelliSenseEngine` is set to `"Disabled"`. [#9277](https://github.com/microsoft/vscode-cpptools/issues/9277)
1935
* Fix the code analysis "disable" option not automatically clearing the disabled diagnostics. [#9364](https://github.com/microsoft/vscode-cpptools/issues/9364)
2036
* Fix `-isystem` not being used for system headers with code analysis. [#9366](https://github.com/microsoft/vscode-cpptools/issues/9366)

Extension/i18n/chs/package.i18n.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@
171171
"c_cpp.configuration.inactiveRegionOpacity.markdownDescription": "控制非活动预处理器块的不透明度。在 `0.1` 和 `1.0` 之间进行缩放。仅当启用非活动区域暗化时,此设置才适用。",
172172
"c_cpp.configuration.inactiveRegionForegroundColor.description": "控制非活动预处理程序块的字体颜色。输入的格式为十六进制颜色代码或有效的主题颜色。如果未设置,则默认为编辑器的语法颜色方案。此设置仅在启用非活动区域变暗时适用。",
173173
"c_cpp.configuration.inactiveRegionBackgroundColor.description": "控制非活动预处理程序块的背景颜色。输入的格式为十六进制颜色代码或有效的主题颜色。如果未设置,则默认为透明。此设置仅在启用了非活动区域变暗时适用。",
174+
"c_cpp.configuration.inlayHints.autoDeclarationTypes.enabled.markdownDescription": "在声明中使用 `auto` 时显示推导类型的内嵌提示:\n```cpp \n\n 自动索引 /* : int */ = 0;\n```",
175+
"c_cpp.configuration.inlayHints.autoDeclarationTypes.showOnLeft.markdownDescription": "在标识符左侧声明中使用 `auto` 时显示推导类型的内嵌提示:\n```cpp \n\n auto /* int */ index = 0;\n```",
176+
"c_cpp.configuration.inlayHints.parameterNames.enabled.markdownDescription": "显示参数名称的内嵌提示:\n```cpp \n\n int a = getArea(/* width: */ x, /* height: */ y);\n```",
177+
"c_cpp.configuration.inlayHints.parameterNames.hideLeadingUnderscores.markdownDescription": "在参数名称提示中隐藏开头的`_`。",
178+
"c_cpp.configuration.inlayHints.parameterNames.suppressWhenArgumentContainsName.markdownDescription": "当参数文本或内联注释包含参数名称时,抑制参数名称提示:\n```cpp \n\n int a = getArea(width, /* height: */ y);\n```",
179+
"c_cpp.configuration.inlayHints.referenceOperator.enabled.markdownDescription": "显示非常量引用传递的参数的内嵌提示引用运算符 `&`:\n```cpp \n\n 交换(/* &first: */ str1, /* &last: */ str2);\n```",
180+
"c_cpp.configuration.inlayHints.referenceOperator.showSpace.markdownDescription": "控制在 `&` 后是否显示非常量引用传递的参数的空格:\n```cpp \n\n 交换(/* & first: */ str1, /* & last: */ str2);\n```",
174181
"c_cpp.configuration.loggingLevel.markdownDescription": "输出面板中日志记录的详细程度。从最不详细到最详细的级别顺序为: `None` < `Error` < `Warning` < `Information` < `Debug`。",
175182
"c_cpp.configuration.autoAddFileAssociations.markdownDescription": "控制当文件为 C/C++ 文件中导航操作的目标时,其是否自动添加到 `#files.associations#`。",
176183
"c_cpp.configuration.workspaceParsingPriority.markdownDescription": "控制分析非活动工作区文件是否使用睡眠以避免使用 100% CPU。值 `highest`/`high`/`medium`/`low` 对应于约 100/75/50/25% 的 CPU 使用率。",
@@ -299,6 +306,35 @@
299306
"c_cpp.debuggers.hardwareBreakpoints.description": "对远程目标的硬件断点行为的显式控制。",
300307
"c_cpp.debuggers.hardwareBreakpoints.require.description": "如果为 true,请始终使用硬件断点。默认值为 false。",
301308
"c_cpp.debuggers.hardwareBreakpoints.limit.description": "要使用的可用硬件断点数量的可选限制。仅在“需要”为 true 且“限制”大于 0 时强制使用。默认值为 0。",
309+
"c_cpp.debuggers.variables.description": "此启动配置中递归替换的变量。每个变量都可以引用其他变量。",
310+
"c_cpp.debuggers.variables.properties.description": "此启动配置中递归替换的变量。该值可以引用其他变量。",
311+
"c_cpp.debuggers.host.description": "主机信息。",
312+
"c_cpp.debuggers.host.user.description": "登录到主机的用户。",
313+
"c_cpp.debuggers.host.hostName.description": "主机名。",
314+
"c_cpp.debuggers.host.port.description": "主机上的 SSH 端口。默认值为 22。",
315+
"c_cpp.debuggers.host.jumpHost.description": "首先连接到跳转主机以连接到目标主机。",
316+
"c_cpp.debuggers.host.localForward.description": "将本地(客户端)主机上给定 TCP 端口或 Unix 套接字的连接转发到远程端上的给定主机和端口或 Unix 套接字",
317+
"c_cpp.debuggers.host.localForward.bindAddress.description": "本地地址",
318+
"c_cpp.debuggers.host.localForward.port.description": "本地端口",
319+
"c_cpp.debuggers.host.localForward.host.description": "主机名",
320+
"c_cpp.debuggers.host.localForward.hostPort.description": "主机端口",
321+
"c_cpp.debuggers.host.localForward.localSocket.description": "本地套接字",
322+
"c_cpp.debuggers.host.localForward.remoteSocket.description": "远程套接字",
323+
"c_cpp.debuggers.deploySteps.description": "部署应用程序所需的步骤。顺序很重要。",
324+
"c_cpp.debuggers.deploySteps.scp.description": "使用 SCP 复制文件。",
325+
"c_cpp.debuggers.deploySteps.scp.files.description": "要通过 SCP 复制的文件。支持路径模式。",
326+
"c_cpp.debuggers.deploySteps.scp.targetDir.description": "目标目录。",
327+
"c_cpp.debuggers.deploySteps.scp.scpPath.description": "SCP 的可选完整路径。假定 SCP 位于 PATH 上(如果未指定)",
328+
"c_cpp.debuggers.deploySteps.debug": "如果为 true,则在不调试的情况下启动时跳过。如果为 false,则在开始调试时跳过。如果未定义,则从不跳过。",
329+
"c_cpp.debuggers.deploySteps.ssh.description": "SSH 命令步骤。",
330+
"c_cpp.debuggers.deploySteps.ssh.command.description": "要通过 SSH 执行的命令。SSH 命令中 \"-c\" 后面的命令。",
331+
"c_cpp.debuggers.deploySteps.ssh.sshPath.description": "SSH 的可选完整路径。假定 SSH 位于 PATH 上(如果未指定)",
332+
"c_cpp.debuggers.deploySteps.continueOn.description": "输出中的可选完成模式。在输出中看到此模式时,无论此步骤是否返回,都继续执行部署过程。",
333+
"c_cpp.debuggers.deploySteps.shell.description": "shell 命令步骤。",
334+
"c_cpp.debuggers.deploySteps.shell.command.description": "要执行的 shell 命令。",
335+
"c_cpp.debuggers.vsCodeCommand.description": "要调用的 VS Code 命令。可以是 VS Code 或活动扩展中的命令。",
336+
"c_cpp.debuggers.vsCodeCommand.command.description": "要调用的 VS Code 命令。",
337+
"c_cpp.debuggers.vsCodeCommand.args.description": "VS Code 命令的参数。",
302338
"c_cpp.taskDefinitions.name.description": "任务名称。",
303339
"c_cpp.taskDefinitions.command.description": "执行编译的编译器或脚本的路径。",
304340
"c_cpp.taskDefinitions.args.description": "其他要传递给编译器或编译脚本的参数。",

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"lldb.framework.install.xcode": "详细信息",
1212
"lldb.framework.not.found": "找不到用于 lldb-mi 的 \"LLDB.framework\"。请安装 XCode 或 XCode 命令行工具。",
1313
"debugger.launchConfig": "启动配置:",
14+
"vs.code.1.69+.required": "\"deploySteps\" 需要 VS Code 1.69+。",
1415
"pre.Launch.Task": "preLaunchTask: {0}",
1516
"build.and.debug.active.file": "生成和调试活动文件",
1617
"cl.exe.not.available": "仅当从 VS 开发人员命令提示符处运行 VS Code 时,{0} 生成和调试才可用。",
@@ -29,6 +30,12 @@
2930
"cannot.build.non.cpp": "无法生成和调试,因为活动文件不是 C 或 C++ 源文件。",
3031
"no.compiler.found": "未找到编译程序",
3132
"select.debug.configuration": "选择调试配置",
33+
"command.args.must.be.array": "命令部署步骤中的 \"args\" 必须为数组。",
34+
"missing.properties.scp": "scp 步骤中需要 \"host\"\"files\"\"targetDir\"",
35+
"incorrect.files.type.scp": "\"files\" 必须为 scp 步骤中的字符串或字符串数组。",
36+
"missing.properties.ssh": "SSH 步骤需要 \"host\"\"command\"",
37+
"missing.properties.shell": "shell 步骤需要 \"command\"",
38+
"deploy.step.type.not.supported": "不支持部署步骤类型 {0}。",
3239
"unexpected.os": "意外的 OS 类型",
3340
"path.to.pipe.program": "管道程序的完整路径,如 {0}",
3441
"enable.pretty.printing": "为 {0} 启用整齐打印",

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@
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-
"c.cpp.debug.protocol": "C/C++ 调试协议",
10-
"c.cpp.warnings": "C/C++ 配置警告",
11-
"fix_all_type_problems": "修复所有 {0} 问题",
12-
"disable_all_type_problems": "禁用所有 {0} 问题",
13-
"clear_all_type_problems": "清除所有{0}问题",
14-
"clear_this_problem": "清除此 {0} 问题",
15-
"fix_this_problem": "修复此 {0} 问题",
16-
"show_documentation_for": "显示 {0} 文档",
177
"unable.to.start": "无法启动 C/C++ 语言服务器。IntelliSense 功能将被禁用。错误: {0}",
188
"check.permissions": "EPERM: 检查“{0}”的权限",
199
"server.crashed2": "在过去 3 分钟内,语言服务器崩溃了 5 次。它不会重新启动。",
@@ -23,7 +13,6 @@
2313
"allow.button": "允许",
2414
"dont.allow.button": "不允许",
2515
"ask.me.later.button": "稍后询问我",
26-
"c.cpp.diagnostics": "C/C++ 诊断",
2716
"dismiss.button": "消除",
2817
"diable.warnings.button": "禁用警告",
2918
"unable.to.provide.configuration": "{0} 无法为“{1}”提供 IntelliSense 配置信息。将改为使用“{2}”配置中的设置。",
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
"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} 文档"
15+
}
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+
"c.cpp.symbolscope.separator": "{0},{1}"
8+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
"local.forward.local.conflict": "在 localForwards 中,不能同时使用 \"bindAddress\"\"port\" 指定 \"localSocket\"",
8+
"local.forward.local.missing": "localForwards 中需要 \"port\"\"localSocket\"",
9+
"local.forward.remote.conflict": "在 localForwards 中,不能同时使用 \"host\"\"hostPort\" 指定 \"remoteSocket\"",
10+
"local.forward.remote.missing": "localForwards 中需要 \"host\"\"hostPort\"\"remoteSocket\""
11+
}

0 commit comments

Comments
 (0)