Skip to content

Commit 1b51bb0

Browse files
Merge branch 'main' into feature/add-cpp-name-demangling
2 parents 7583c76 + cdfb2ce commit 1b51bb0

File tree

85 files changed

+383
-171
lines changed

Some content is hidden

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

85 files changed

+383
-171
lines changed

.github/workflows/ci-main-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-latest
1212

1313
steps:
1414
- uses: actions/checkout@v3

.github/workflows/close-old-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
stale-label: stale-old
2222
stale-exempt-label: stale-exempt
2323
steps:
24-
- uses: actions/stale@v4.1.1
24+
- uses: actions/stale@v5.1.0
2525
with:
2626
stale-issue-label: ${{ env.stale-label }}
2727
exempt-issue-labels: ${{ env.stale-exempt-label }}

.github/workflows/close-stale-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
stale-exempt-label: stale-exempt
1414
only-label: more info needed
1515
steps:
16-
- uses: actions/stale@v4.1.1
16+
- uses: actions/stale@v5.1.0
1717
with:
1818
stale-issue-label: ${{ env.stale-label }}
1919
exempt-issue-labels: ${{ env.stale-exempt-label }}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Features:
66

77
- Add an option to specify the launch target for debugging CTest tests. [#4273](https://github.com/microsoft/vscode-cmake-tools/pull/4273)
8+
- Add a setting to enable/disable our built-in language services. [#4290](https://github.com/microsoft/vscode-cmake-tools/issues/4290)
89

910
Improvements:
1011

@@ -16,6 +17,9 @@ Bug Fixes:
1617
- Fix bug that makes `Configure Task` lists only first folder in workspace. [#3232](https//github.com/microsoft/vscode-cmake-tools/issues/3232)
1718
- Fix displaying "Go to Test" in the Test Explorer when the DEF_SOURCE_LINE property is set, but there is no backtrace information present. [#4321](https://github.com/microsoft/vscode-cmake-tools/pull/4321) [@rjaegers](https://github.com/rjaegers)
1819
- Fix gnuld error parsing false positive on make errors, false negative due to trailing \r, and false parsing of new "multiple definitions" error [#2864](https://github.com/microsoft/vscode-cmake-tools/issues/2864) [@0xemgy](https://github.com/0xemgy)
20+
- Fixes for small bug string bugs. [#4319](https://github.com/microsoft/vscode-cmake-tools/issues/4319), [#4317](https://github.com/microsoft/vscode-cmake-tools/issues/4317), [#4312](https://github.com/microsoft/vscode-cmake-tools/issues/4312)
21+
- Fixes localization for "workspace is" string. [#4374](https://github.com/microsoft/vscode-cmake-tools/issues/4374)
22+
- Make tooltips for selecting Launch/Debug Target. [#4373](https://github.com/microsoft/vscode-cmake-tools/issues/4373)
1923

2024
## 1.20.53
2125

README.md

Lines changed: 77 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,80 @@
1-
# CMake Tools
1+
<h1 align=center> <img align=center width=48 src="res/logo-margin-bottom.png" alt="CMake Logo"/> CMake Tools </h1>
22

3-
[CMake Tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools) provides the native developer a full-featured, convenient, and powerful workflow for CMake-based projects in Visual Studio Code.
3+
<p align=center ><i>Enhancing CMake development in VS Code.</i></p>
44

5-
## Important doc links
5+
<div align=center>
6+
<img alt="VS Code" src="https://img.shields.io/badge/VSCode-7d57c2?style=for-the-badge&logo=visual%20studio%20code&logoColor=white"/>
7+
<img alt="CMake" src="https://img.shields.io/badge/CMake-7d57c2?style=for-the-badge&logo=cmake&logoColor=white"/>
8+
<img alt="C" src="https://img.shields.io/badge/C-7d57c2?style=for-the-badge&logo=c&logoColor=white"/>
9+
<img alt="C++" src="https://img.shields.io/badge/C%2B%2B-7d57c2?style=for-the-badge&logo=c%2B%2B&logoColor=white"/>
10+
</div>
611

7-
- [CMake Tools quick start](https://code.visualstudio.com/docs/cpp/CMake-linux)
8-
- [Configure and build a project with CMake Presets](docs/cmake-presets.md)
9-
- [Configure a project with kits and variants](docs/how-to.md#configure-a-project)
10-
- [Build a project with kits and variants](docs/how-to.md#build-a-project)
11-
- [Configure and build a project using tasks](docs/tasks.md)
12-
- [Debug a project](docs/how-to.md#debug-a-project)
13-
- [Configure CMake Tools settings](docs/cmake-settings.md)
14-
- [How to](docs/how-to.md)
15-
- [FAQ](docs/faq.md)
16-
- [Read the online documentation](docs/README.md)
17-
- [Contribute](CONTRIBUTING.md)
18-
- [Extensibility](EXTENSIBILITY.md)
12+
<div align=center>
13+
<img alt="VS Code Marketplace Downloads" src="https://img.shields.io/visual-studio-marketplace/d/ms-vscode.cmake-tools?style=for-the-badge&color=064f8c&cacheSeconds=3600&link=https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dms-vscode.cmake-tools">
14+
<img alt="VS Code Marketplace Version" src="https://img.shields.io/visual-studio-marketplace/v/ms-vscode.cmake-tools?style=for-the-badge&color=be2128&cacheSeconds=3600&link=https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%2Fms-vscode.cmake-tools%2Fchangelog">
15+
<img alt="Closed Issues" src="https://img.shields.io/github/issues-closed/microsoft/vscode-cmake-tools?style=for-the-badge&color=249847&cacheSeconds=3600&link=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-cmake-tools%2Fissues">
16+
</div>
1917

20-
## Issues? Questions? Feature requests?
18+
<br/>
19+
<img style="width: 100%" src="res/graphics/cmake-tools-banner.png" alt="CMake Tools Banner"/>
2120

22-
**PLEASE**, if you experience any problems, have any questions, or have an idea
23-
for a new feature, create an issue on [the GitHub page](https://github.com/microsoft/vscode-cmake-tools)!
21+
## Introduction
22+
[CMake Tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools) provides the native developer a full-featured, convenient, and powerful workflow for CMake-based projects in Visual Studio Code. It simplifies advanced configurations with support for CMake presets and enhances the development experience by supporting rich IntelliSense features, a built-in debugger for CMake scripts, and configurable CMake tasks. Its customizable interface allows for efficient tailored control of projects, while CTest integration ensures straightforward test execution and monitoring.
2423

25-
This extension currently provides basic language support for CMake built into the extension.
24+
<details open>
25+
<summary>
26+
Features
27+
</summary><br/>
28+
29+
<p align=center>
30+
<img width="49%" src="res/graphics/presets-support-feature.png" alt="Presets Support"/>
31+
&nbsp;
32+
<img width="49%" src="res/graphics/cmake-language-service-feature.png" alt="Built-In CMake Language Services"/>
33+
</p>
34+
<p align=center>
35+
<img width="49%" src="res/graphics/cmake-debugging-feature.png" alt="CMake Debugging"/>
36+
&nbsp;
37+
<img width="49%" src="res/graphics/status-and-sidebar-feature.png" alt="Project Status"/>
38+
</p>
39+
<p align=center>
40+
<img width="49%" src="res/graphics/cmake-commands-feature.png" alt="CMake Commands"/>
41+
&nbsp;
42+
<img width="49%" src="res/graphics/project-outline-feature.png" alt="Project Outline"/>
43+
</p>
44+
<p align=center>
45+
<img width="49%" src="res/graphics/tasks-feature.png" alt="Tasks"/>
46+
&nbsp;
47+
<img width="49%" src="res/graphics/test-integration-feature.png" alt="Test Integration"/>
48+
</p>
49+
50+
</details>
51+
52+
## Setup and Installation
53+
Ensure CMake is available on your system. A couple of options are:
54+
- [Download CMake](https://cmake.org/download/).
55+
- Utilize the CMake that is bundled with a Visual Studio installation.
56+
57+
Install the CMake Tools extension from the Extensions pane within VS Code or from the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools).
58+
59+
Ensure that either you've added your CMake executable to your PATH, or you've adjusted the `cmake.cmakePath` setting to point to your CMake executable.
60+
61+
## Resources
62+
- [Docs](docs/README.md) for comprehensive documentation.
63+
- [Quick Start](https://code.visualstudio.com/docs/cpp/CMake-linux) to get up and running fast.
64+
- [Github](https://github.com/microsoft/vscode-cmake-tools) for source code, issues, and contributing.
65+
66+
## Contributing
67+
We encourage an open and collaborative development environment and welcome all contributions. Whether you're fixing bugs, proposing new features, or improving our documentation - we invite you to join the CMake Tools community. Please review our [contribution guidelines](CONTRIBUTING.md) and adhere to our [code of conduct](https://opensource.microsoft.com/codeofconduct/).
68+
69+
You can file issues with us using one of our templates:
70+
71+
[Bug Report](https://github.com/microsoft/vscode-cmake-tools/issues/new?template=bugreport.yml): If you see an error message or encounter an issue while using the CMake Tools extension.
72+
73+
[Feature Request](https://github.com/microsoft/vscode-cmake-tools/issues/new?template=featurerequest.yml): If you have a suggestion or need a feature that would enhance development.
74+
75+
[Documentation Request](https://github.com/microsoft/vscode-cmake-tools/issues/new?template=docrequest.yml): Requesting changes or additions to the [CMake Tools documentation](docs/README.md).
76+
77+
##
2678

2779
### Microsoft Open Source Code of Conduct
2880

@@ -35,3 +87,9 @@ This extension collects usage data and sends it to Microsoft to help improve our
3587
### Credits
3688

3789
This project was started by [@vector-of-bool](https://github.com/vector-of-bool) and is now currently maintained by Microsoft.
90+
91+
### Contributors
92+
93+
<a href="https://github.com/microsoft/vscode-cmake-tools/graphs/contributors">
94+
<img src="https://contrib.rocks/image?repo=microsoft/vscode-cmake-tools" alt="Contributors"/>
95+
</a>

docs/debug-launch.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ A couple of examples:
207207
"name": "(ctest) Launch",
208208
"type": "cppdbg",
209209
"request": "launch",
210+
"presentation": { "hidden": true },
210211
// Resolved by CMake Tools:
211212
"cwd": "${cmake.testWorkingDirectory}",
212213
"program": "${cmake.testProgram}",
@@ -219,6 +220,7 @@ A couple of examples:
219220
"name": "(ctest) Launch",
220221
"type": "cppvsdbg",
221222
"request": "launch",
223+
"presentation": { "hidden": true },
222224
// Resolved by CMake Tools:
223225
"program": "${cmake.testProgram}",
224226
"args": [ "${cmake.testArgs}"],

i18n/chs/package.i18n.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
"cmake-tools.command.cmake.outline.runUtilityTarget.title": "运行实用工具",
7979
"cmake-tools.command.cmake.outline.debugTarget.title": "调试",
8080
"cmake-tools.command.cmake.outline.launchTarget.title": "在终端中运行",
81-
"cmake-tools.command.cmake.outline.setDefaultTarget.title": "设置为生成目标",
82-
"cmake-tools.command.cmake.outline.setLaunchTarget.title": "设置为启动/调试目标",
81+
"cmake-tools.command.cmake.outline.setDefaultTarget.title": "Set Build Target",
82+
"cmake-tools.command.cmake.outline.setLaunchTarget.title": "Set Launch/Debug Target",
8383
"cmake-tools.command.cmake.outline.revealInCMakeLists.title": "打开 CMakeLists.txt",
8484
"cmake-tools.command.cmake.folders.setActiveFolder.title": "设置活动文件夹",
8585
"cmake-tools.configuration.title": "CMake 工具配置",
@@ -109,6 +109,7 @@
109109
"cmake-tools.configuration.cmake.ctest.allowParallelJobs.description": "允许并行运行 ctest,但结果输出可能会因此而乱码,并且测试资源管理器可能无法准确地反映测试进度。",
110110
"cmake-tools.configuration.cmake.ctest.testExplorerIntegrationEnabled.description": "是否启用与测试资源管理器的集成。如果希望使用其他扩展进行测试集成,这有助于禁用。",
111111
"cmake-tools.configuration.cmake.ctest.testSuiteDelimiter.markdownDescription": "可选分隔符,用于在测试资源管理器中以分层方式分隔测试套件名称和组合测试。此字符串用于正则表达式,因此某些分隔符可能需要转义。示例: `-` (一个分隔符: `-`),`\\.|::` (两个分隔符: `.` 或 `::`。请注意,需要对 `.` 进行转义。)",
112+
"cmake-tools.configuration.cmake.ctest.debugLaunchTarget.description": "在使用 CTest 调试测试时,从 launch.json 中获取目标名称以启动。默认情况下,如果目标不存在,将显示一个包含所有有空目标的选取器。",
112113
"cmake-tools.configuration.cmake.parseBuildDiagnostics.description": "分析编译器输出以查找警告和错误。",
113114
"cmake-tools.configuration.cmake.enabledOutputParsers.description": "要使用的输出分析程序。支持的分析程序 `cmake`、`gcc`、`gnuld`(适用于 GNULD 样式的 inker 输出)、`msvc`(适用于 Microsoft Visual C++)、`ghs`(适用于 Green Hills 编译器,具有 --no_wrap_diagnostics --brief_diagnostics),以及 `diab`(适用于 Wind River Diab 编译器)。",
114115
"cmake-tools.configuration.cmake.debugConfig.description": "要在调试目标时使用的调试配置。",

i18n/chs/src/cmakeTaskProvider.i18n.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
"configure": "配置",
1313
"clean": "清理",
1414
"clean.rebuild": "清理重新生成",
15+
"project.not.found": "未找到项目。",
1516
"cmake.template.task": "CMake 模板 {0} 任务",
17+
"workspace.folder.not.found": "未找到工作区文件夹。",
1618
"select.build.task": "选择一项生成任务",
1719
"command.not.recognized": "{0} 不是已识别的命令。",
1820
"target.is.ignored": "正在忽略此任务中定义的目标。",

i18n/chs/src/drivers/cmakeServerClient.i18n.json

Lines changed: 1 addition & 1 deletion
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-
"started.new.cmake.server.instance": "已使用 PID {0} 启动新的 CMake Server 实例",
7+
"started.new.cmake.server.instance": "已使用 PID {0} 启动新的 CMake 服务器实例",
88
"connection.terminated.unexpectedly": "与 cmake-server 的连接意外终止",
99
"cmake-server.exited.with.status": "cmake-server 已退出,状态为 {0} ({1})",
1010
"unhandled.error.in": "{0} 中未处理的错误",

i18n/chs/src/expand.i18n.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"circular.variable.reference": "循环变量引用",
1515
"command.not.supported": "命令不支持字符串: {0}",
1616
"exception.executing.command.full": "对字符串执行命令 {0} 时出现异常: {1} {2}",
17-
"exception.executing.command": "异常执行命令",
17+
"exception.executing.command": "执行命令时出现异常",
1818
"expand.expandstringhelper": "已展开 {0}"
1919
}

0 commit comments

Comments
 (0)