CMake integration in Visual Studio Code
Перейти к файлу
Garrett Campbell 0e48ef9867
Allow overriding of CMakePresets cache variables and arguments (#3537)
* Update the already available settings to use in presets.

Turns out, we already have configure, build, buildTool, and test
args/envs that can override. I modified the code to use these in
presets. Also, I added a small sentence to the settings descriptions to
notify users that when using CMake Presets, they are designed for
overrides, not general configuration.

* pending further discussion, use general environment for all

* add temporary override string for presets to environment setting description

* don't remove configureSettings

* add text to specify that configureSettings isn't for presets scenario

* Add tentative treeview UI and output message for configure

Still need to do build/test/etc, and likely improve the strings
themselves.

* add output lines, improvement on the string to come, testing for location

* don't output message when we're using cache

* add handlers that update the nodes when a test or build setting is modified

* slight refactor and add * to status bar

* add button that only appears when overrides present that allows opening those settings

* share some code

* fix localize calls

* update tsconfig.json

* update eslint

* slightly reword the settings

* fix buildTool args

* avoid duplication

* ensure we only return -3 when testPreset isn't defined

* fix imports

* changelog and docs

* refactor to avoid circular dependency

* missed one

* fix imports
2024-01-19 20:52:13 +00:00
.devcontainer Upgrade Nodejs to 14 (#2796) 2022-10-17 09:46:23 -07:00
.github Update triage-labels.yml (#3483) 2023-12-04 09:56:19 -05:00
.vscode CMake Multi Root and Multi Project support (#2835) 2022-12-27 08:46:15 -08:00
docs Allow overriding of CMakePresets cache variables and arguments (#3537) 2024-01-19 20:52:13 +00:00
i18n Localization - Translated Strings (#3521) 2024-01-08 14:44:27 -05:00
jobs/loc Update OneLocBuild machine pool (#2395) 2022-02-25 13:10:10 -08:00
res Dev/snehara/transfer from sb to psv (#3407) 2023-10-31 22:41:59 +00:00
schemas Add trust to kit scanning paths (#3067) 2023-03-22 11:04:47 -07:00
src Allow overriding of CMakePresets cache variables and arguments (#3537) 2024-01-19 20:52:13 +00:00
test Improve when configure with debugger popup appears and allow disabling. (#3496) 2024-01-02 07:58:24 +00:00
.editorconfig Reindent the files (#2226) 2021-11-03 09:52:24 -07:00
.eslintignore fix extension tests (#2000) 2021-07-21 15:50:04 -07:00
.eslintrc.js Allow overriding of CMakePresets cache variables and arguments (#3537) 2024-01-19 20:52:13 +00:00
.gitattributes Bad git! No! (Don't change line endings in executables) 2017-12-18 20:09:12 -07:00
.gitignore Add IntelliSense support for `debugConfig.console` (#2479) 2022-04-06 18:03:46 +00:00
.vscodeignore package cleanup 2021-12-30 11:45:18 -08:00
CHANGELOG.md Allow overriding of CMakePresets cache variables and arguments (#3537) 2024-01-19 20:52:13 +00:00
CONTRIBUTING.md Update CONTRIBUTING.md 2022-04-22 20:08:44 -07:00
LICENSE.txt Pull in a LICENSE from develop 2018-02-27 23:11:37 -07:00
NOTICE.txt Update 3rd party notices (#1581) 2020-12-03 14:22:48 -08:00
README.md Documents for CMake Tasks (Check In after PR #2636) (#2648) 2022-07-22 13:07:59 -07:00
SECURITY.md Microsoft mandatory file (#2557) 2022-05-18 16:56:57 -07:00
THIRD.md Use bundled vswhere.exe 2017-12-18 17:29:44 -07:00
gulpfile.js fix "zh-TW" and "zh-CN" translation not showing (#2758) 2022-10-03 17:04:47 +00:00
package.json Allow overriding of CMakePresets cache variables and arguments (#3537) 2024-01-19 20:52:13 +00:00
package.nls.json Allow overriding of CMakePresets cache variables and arguments (#3537) 2024-01-19 20:52:13 +00:00
test.tsconfig.json Implement support for v4 presets files (#2544) 2022-06-20 15:05:50 -07:00
translations_auto_pr.js point 'develop' references to 'main' instead (#2217) 2021-10-29 15:04:10 -07:00
tsconfig.json Allow overriding of CMakePresets cache variables and arguments (#3537) 2024-01-19 20:52:13 +00:00
webpack.config.js source-map dependency isn't needed, runtime loc wasn't working (#3269) 2023-08-01 12:25:27 -04:00
yarn.lock Update the api.ts for the getActiveFolderPath method. (#3528) 2024-01-19 17:05:24 +00:00

README.md

CMake Tools

CMake Tools provides the native developer a full-featured, convenient, and powerful workflow for CMake-based projects in Visual Studio Code.

Issues? Questions? Feature requests?

PLEASE, if you experience any problems, have any questions, or have an idea for a new feature, create an issue on the GitHub page!

This extension itself does not provide language support for the CMake scripting language. For that we bundle this extension which provides the support. A closed-source extension that provides even better support can also be installed: CMake Language Support

Microsoft Open Source Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Data/Telemetry

This extension collects usage data and sends it to Microsoft to help improve our products and services. Collection of telemetry is controlled via the same setting provided by Visual Studio Code: "telemetry.enableTelemetry". Read our privacy statement to learn more.

Credits

This project was started by @vector-of-bool and is now currently maintained by Microsoft.