36 KiB
What's New?
1.10.0
Bug fixes:
- Fix
Show Build Command
for folders that do not use CMake Presets. #2211
1.9.1
Bug fixes:
- Fix presets using conditions with macros and inheritance. #2185
- Parallelism no longer working in 1.9.0 for CMake < 3.14.0. #2181
CMake: Compile Active File
command stopped working in v1.9.0. #2180- Exception after successful build when cpptools IntelliSense is disabled. #2188
- Fix issue with presets (v3) and "toolchainFile". #2179
- Don't add
-j
argument whencmake.parallelJobs
is set to1
. #1958 @mark-ulrich - Warn the user about CMAKE_BUILD_TYPE inconsistencies. #2096
1.9.0
Improvements:
- Add support for CMakePresets version 3. #1904
- Add diagnostic support for parsing IAR compiler output. PR #2131 @willson556
- Add "Log Diagnostics" command. PR #2141
- Add build and configure commands to show cmake commands without running them. PR #1767
- Implement support for merging multiple compile_commands in super-builds sub-folders of the build directory. PR #2029 @Felix-El
- Add
cmake.allowCommentsInPresetsFile
setting to allow JS style comments in CMakePresets files. #2169
Bug fixes:
- MSVC_VERSION is incorrect when cmake configures with clang-cl. #1053 @tklajnscek
- Build error because
binaryDir
removed after configure. #2128 - Configuration from build presets ignored by Intellisense and launch (when using multi config generators). #2099
- Extra {0} output message when having preset with circular inherits. #2118
- CMake-Tools does not reconfigure after a change of CMakeLists.txt in a subdirectory of root. #1911 @AbdullahAmrSobh
- Fixes msvc2015 detection when only vs2019 are installed. #1955 @lygstate
- Allow for clang compilers to be set in presets without full path. #1922
- Compiler flags containing spaces not passed correctly to IntelliSense. #1414
- Don't scan the whole workspace for CMakeLists.txt, just a few folders. #2127
- Regression with Visual Studio generator and non-default toolset. #2147
- Debug shows "No compiler found in cache file." dialog. #2121
- Unable to work with pre-configured projects (cache is deleted). #2140
- Unknown C/C++ standard control flags: -std=gnu++2b and -std=c2x. #2150
- Select the most recently used build/test preset when configure preset changes. #1927
- Re-enable build target selection when using presets. #1872
1.8.1
Bug fixes:
- Command substitutions in launch.json are broken. #2091
cmake.configureOnOpen
setting is ignored. #2088- User-defined preset not shown when inheriting from
CMakePresets.json
. #2082 - Fix presets using server API. #2026
1.8.0
Improvements:
- Last selected target isn't read on start up. #1148
- Use cached cmake-file-api response to configure IntelliSense on startup. #1149
- Show a quickPick of all the CMakeLists.txt inside the project (if none exists where "cmake.sourceDirectory" points at). #533
- Add command to get the active folder of a workspace. #1715 @guestieng
- Task provider refactoring to best utilize latest updates from VSCode. PR #1880
- Add docker container definition. PR #1758
- Enhance the vsix build with package scripts in package.json. PR #1752 @lygstate
Bug fixes:
- Fix various presets field settings to be passed correctly on to CMake. #2009
- Check for target architecture when reading toolchain FileAPI. #1879
- Fix environment variable in debugging docs. PR #1874 @zariiii9003
- Fix typo in variant docs. PR #1970 @melak47
- Update schema for preset cache variable CMAKE_BUILD_TYPE. #1934
- Fix regression in ctestDefaultArgs (ctest hardcoded directives: -T, test, --output-on-failure). #1956
- Don't throw when unknown diagnostics apepar. #1796
- Add parse target triple to fix "bad clang binary" error. #1916 @lygstate
- Include CMAKE_BUILD_TYPE in the generated text of configure preset. #1847
- Show also the "hidden" presets in the "Inherit from configure presets" quick pick. #1923
- Clang-cl diagnostics don't appear in Problems view. #517 @ki-bo
- Fix duplication in name of MSVC versus LLVM Clang kit. PR #1951 @lygstate
- Fixes output encoding in the vcvars setup process. PR #1985 @lygstate
- Remove vendor support since the string expansion is wrong for it. #1966
- Add configure preset environment to debug/launch. #1884
- Fix msvc2015 detection when only vs2019 is installed. #1905 @lygstate
- Prevent file index overwritting in multi-config generators. #1800 @andredsm
- Various cache variables edit/save fixes. PR #1826 @aemseemann
- Use JSON as the language mode of preset files. #2035
- Fix broken links to contributing file. PR #2016 @andredsm
- Kit scan generates incorrect kits for VS 2022 #2054
- Fix presets for msvc compilers with x86 outputs PR #2072
1.7.3
Bug fixes:
- Make sure CMake Tools configuration provider gets registered with presets on. #1832
- Add the license field to package.json. #1823
- Add title to "Select target" quickpick. #1860
1.7.2
Bug fixes:
- Fix paths of target sources outside the workspace. #1504 @sleiner
- Use stricter type checks in presets expansion. #1815
- Solve conflict between -DCMAKE_GENERAOR:STRING=Ninja versus -G "Visual Studio 16 2019" -A x64. PR #1753 @lygstate
- Fix operator precedence when getting code page. #1615 @taoyouh
- Override the locale when querying compiler versions. #1821
- Fix typo in CMakePresets.json schema. PR #1809 @bluec0re
1.7.1
Improvements:
- CppTools-API v5 integration. #1624
Bug fixes:
- Correct macros evaluation in inherited presets. #1787
- Macro expansions should consider environment variables defined in the kit. #1250
- Fix 1.7.0 IntelliSense regression related to default standard and CppTools provider version. #1788
- Correct folder information for presets in multi-root projects. PR #1785
1.7.0
Improvements:
- Support for CMake Presets. #529
- Support for File API "toolchains" object.
- User defined additional kits. PR #1701 @mjvankampen
- Touchbar extra functionality. PR #1693 @poterba
Bug fixes:
- Can not compile active file if definition has quoted text. #969
- Compiler flags containing spaces not passed correctly to IntelliSense. #1414
- Gcc/clang version analysis improvements. #1575
- Disable the extension when no CMakeLists is present. #1578
- Remove the "CMake Tools initializing" popup message. #1518
- Allow CppTools to chose a C/Cpp standard default. #1477
- Added ${workspaceHash} variable. PR #1055 @Zingam
- Setup CMT_MINGW_PATH properly on win32. PR #1611 @lygstate
- Codespaces specific changes of configureOnOpen default and popup UI. #1676
- Fixes environment expanding and document testEnvironment. PR #1598 @lygstate
- Pass cmake.debugConfig.args to launch target. PR #1603 @jbdamiano
- Dependencies package versions upgrade. PR #1475 @lygstate
- Add vendor hostOs targetOs targetArch versionMajor versionMinor attributes for kit. PR #1337 @lygstate
- Always correctly build target executable path. PR #1674 @falbrechtskirchinger
- Use variables instead of hardcoded values for system path references. #883 @Zingam
- ctestPath should allow the same substitutions as cmakePath. #785 @FakeTruth
- Change the order of available kits such that folder kits come first. #1736
- Fix "Configuring project" infinite loop when using "Locate" on a project without CMakeLists.txt. #1704
- Fix problems with using gdb debugger on MAC. #1691
- Fix parsing of target architecture flags with values that include arm64. #1735
- Changed ctest --output-on-failure from hardcode to default argument. PR #1729 @PedroLima92
- Update cmake-settings.md document. PR #1754 @lygstate
1.6.0
Bug Fixes:
- Fix Clang kit detection when version is at end of line. #1342 @falbrechtskirchinger
- Fix cache variables regular expression dealing with '='. #1613
- Add cmake.exportCompileCommandFile. #1440
- Fix the regexp of Gcc/Clang version to account for localization and more possible text patterns. #1575
- Fix regexp for compiler flags that contain spaces. #1414
- Fix compile active file when definition has quoted text. #969
- Re-register the tasks provider when the current build targe changes. #1576
- Don't localize the VS Clang kit name. PR #1632
- Remove CMake Tools activation of non CMake projects when tasks.runask is executed. PR #1642
- Add the TWXS CMake extension in the CMake Tools extension pack. PR #1643
1.5.3
Bug Fixes:
- "Clean all projects" broken since 1.5.0. #1542
- CMake task provider should not attempt to register until the CMake driver is available. #1549
1.5.2
Bug Fixes:
- Fix deadlock caused by commands invoked in string expansion during activation. PR #1532
1.5.1
Bug Fixes:
- Fix regular expression for variables values used in settings and kits json. #1526 #1525
- Add a setting to control whether the Touch Bar is visible or not. PR #1529
1.5.0
Improvements:
- Support variables for Kit.toolchainFile. PR #991 #1056 @blakehurd/@bobbrow
- Implement cmake:hideBuildCommand context option. PR #1355 @tritao
- Add option to set CMAKE_BUILD_TYPE also on multi-config generators. PR #1393 @tonka3000
- Detect Clang for MSVC (GNU CLI) kits. #823 @omcnoe
- GUI support for CMake Tools cache. #513 @nieroger
- Tasks support. PR #1268 @vptrbv
- MacBook Pro touchbar support. #499 @vptrbv
Bug Fixes:
- Set right base_path for variant config files. PR #1462 @leolcao
- Inconsistent buildType substitution. #1366
- ${workspaceFolder} is not working for "environmentSetupScript" option. #1309 @Yaxley123
- Preserve focus when executing "CMake:Run Without Debugging". #1138 @estshorter
- Problems with CMake: Quick Start. #1004 @alan-wr
- Remove depends on optimist by upgrade handlebars. PR #1447 @lygstate
- Ignore the vcvars dev-bat call result. PR #1403 @lygstate
- Fix vs2010 which doesn't recognize host=x64. PR #1481 @lygstate
- Don't rebuild when doing command substitution. #1487
- Duplicate compiler flags should not be removed. PR #1497
- Hide "Unknown Language" for CUDA source files. PR #1502 @Synxis
- Ensure immediate effect of settings for communication mode and all generator related. PR #1500
- Fix shell script and vcvars devbat when TEMP folder has a space in the middle. #1492
1.4.2
Improvements:
- Added new variable substitution command:
${command:cmake.launchTargetFilename}
. #632 @ebai101 - Add output parser for Wind River Diab compiler. PR #1267 @ce3a
- Set application run directory to executable path. #1395 @Shatur95
Bug Fixes:
- Allow minor version of File API protocol to be greater than expected. #1341 @KyleFromKitware
- Fix high-hitting crash related to output stream encoding. PR #1367
- Fix high-hitting crash: "message must be set" introduced by VS Code 1.49.0. #1432
- Fix detection of clang 10 on Debian. #1330
- Detect gdb for msys2 MinGW properly. PR #1338 @lygstate
1.4.1
Bug Fixes:
- VS environment not set correctly. #1243
- VS kits don't set host/target arch properly for toolsets. #1256
- Disable launchTarget key binding while debugging. #1170
- System headers not found. #1257
- Add setting to enable/disable automatic reconfiguring of projects. #1259
- Partial/full CMT activation improperly persisted for multi-root projects. #1269
- Fix MacOS debugging to work out of the box. #1284
- Ensure the silent kits scanning is run once for multi-root. #1302
1.4.0
Improvements:
- Documentation updates. PR #1130 @zalava
- Add support for per-folder browse path. #1073
- Use a shell script to set environment variables for a kit. #809 @pisker
- Improvements of the status bar UI. PR #1200 @SchweizS
- Add context menu for CMakeLists. #741 @SchweizS
- Support partial CMake Tools activation for non cmake repos. #1167
- Support ARM IntelliSense modes. #1155
- Support GNU language standards. #1208
- Add indication of active workspace to project outline. #1183 @SchweizS
Bug Fixes:
- Skip over debugger guessing logic if cmake.debugConfig explicitly sets miDebuggerPath. #1060
- Normalize all paths sent to CppTools. #1099
- Add support for Objective-C and Objective-C++. #1108 @marksisson
- Update the configuration provider id. #1045 @ChristianS99
- Clear the terminal for Compile Active File. #1122
- Update vswhere to a version that supports utf-8. #1104
- Support source files outside the base path. #1140
- Allow quotes in cache entries. #1124 @tmaslach
- Fix default preferred generators detection logic. #1084
- Fix host and target platform information for VS kits. #964
- Fix error caused by duplicate project structure. #587 @SchweizS
- Disable launchTarget key binding while debugging. #1170
- Skip configuring when cache is present and according setting is on. #984
- Remove deprecated cmake.useCMakeServer setting. #1059
- Trigger automatic CMake configure on CMakeLists.txt save. #1187 @Yuri6037
- Silently scanning for kits:
- Various unhandled exceptions and crash fixes:
1.3.1
Improvements:
Bug Fixes:
- Toolset and platform are swapped when reading from CMake cache. #1065
- Unable to debug targets when path is specified as absolute by the cmake-file-api. #1067 @KoeMai
1.3.0
Improvements:
- Multi-root support. You can now open multiple folders in VS Code and CMake Tools will allow you to configure each of the projects in those folders.
- Add support for
${command:cmake.buildKit}
. #334 @xgdgsc - Add LLVM_ROOT and Visual Studio Clang locations to the search path for Kits. #914 @Zingam
- Support additional
intelliSenseModes
in the configuration provider. #960 - Detect bundled CMake in Visual Studio. #610 @Zingam
- Add "Scan for kits" option in kits QuickPick. #864 @Zingam
- Implement the CMake File API. PR #720 @KoeMai
Bug Fixes:
- Support temp folders not located on system drive. PR #974 @Carsten87
- Add MinGW path to the environment. PR #983
- Don't do a clean build for utility targets. #643 @rcxdude
- Visual Studio builds should support
cmake.parallelJobs
setting. PR #975 @tonka3000 - Fix build cancellation. #946 #781 #522 @KoeMai
- Normalize both absolute and relative paths. PR #963 @GeorchW
- Filter out duplicate targets from the target selector. #863
- Fix a crash when
chcp
is not found on the machine. #977 - Don't fail if CMakeLists.txt was appended to sourceDirectory. #1014
- Mark all tests as 'not run' in case of build failure when running CTest. PR #980 @Morozov-5F
- Add command to hide launch/debug commands and debug button. PR #1035
- Add support for
${workspaceFolderBasename}
. #869 - Fix exception thrown by debug/launch commands. #1036
1.2.3
Bug fixes:
- CTest status bar button text appears malformed. #911
- Cleanup fix for message "Platform undefined / toolset {}". #913
- Fix incorrect file associations when language is unset. #926
1.2.2
Bug fixes:
- Fix broken SchemaProvider. #874
- Fix the RegExp for finding a debugger. #884
- Update flow for missing CMakeLists.txt. #533
- getVSInstallForKit should be a no-op on systems other than windows. #886
- Include missing source directories in the custom browse path. #882
- Handle exceptions thrown by spawn. #895
- Various generators fixes:
1.2.1
Thank you to the following CMake Tools contributors: koemai, bjosa, emanspeaks, som1lse, dcourtois, tsing80, andy-held, notskm, thezogoth, yokuyuki, dbird137, fabianogk, randshot.
vector-of-bool has moved on to other things and Microsoft is now maintaining this extension. Thank you vector-of-bool for all of your hard work getting this extension to where it is today!
Breaking changes:
- The publisher id changes to ms-vscode.cmake-tools. This requires that you uninstall earlier versions of the extension.
- Scanning for kits is able to detect more accurately multiple VS installations. To achieve this, a Visual Studio kit is defined differently now in cmake-tools-kits.json: the "visualStudio" field represents an ID unique to the installation as opposed to "VisualStudio.${VS Version}" (which may be the same for multiple same year VS installations). The CMake Tools Extension is still able to work with the old definition VS kits, but for simplicity and to avoid duplicates in the json file it will prompt for permission to delete them each time a "Scan for kits" is performed.
Features:
- Support for localized messages.
- Cross compile support for CppTools integration.
- Adapt CppTools integration to API version 3. #637
- Expand kit environment variables. #460
- Add new commands: launchTargetDirectory, buildType, buildDirectory. #334, #654, #564, #559, #695
- Add support for VS2010.
Improvements:
- Restructuring of the CMake Driver.
- Improve stability of CMake Generator Selection. #512
- Refactor and extend CMS-server driver test.
- Rework the CMake Build from a terminal to a task.
- Add Launch target test.
- Increase wait time in test to open terminal.
Bug fixes:
- Cannot execute current target without a debugger. #601
- Path clobbering by bad kit file env. #701, #713
- Target install missing. #504
- CTest controller updated on reconfig. #212
- Recalculate total for every run of CTest.
- Debug target does not find GDB. #375
1.1.3
Many thanks to Yonggang Luo for several changes in this version.
Removal:
- The visual CMake cache editor GUI is gone. The API with which it was drawn is being removed from a future version of VS Code, and the feature had many issues. A future CMake GUI will be introduced with more features and greater stability.
Features and Tweaks:
- On Linux, will detect old CMake versions and offer to do an automatic upgrade. Windows support is pending. If you have a macOS devices and would like to contribute, please open a pull request!
- Smarter parsing of GCC and Clang compile errors to fold
note:
andrequired from:
blocks into their main diagnostic. This permits the folding and browsing of template and macro instantiation errors in a nicer fashion. MSVC error parsing pending. (NOTE: There is an upstream issue with the sort order of diagnostic information, sorequired from
tracebacks may appear out-of-order).
Fixes:
- On Windows, "Launch target in terminal" will use
cmd.exe
unconditionally. This works around issues with command quoting in PowerShell - "Debug target" will prefer
lldb-mi
tolldb
. Fixes issues wherecpptools
is unable to launch the debugger. - Document the
environmentVariables
field on kits. - Fix legacy CMake mode not setting the CMake generator.
- Permit limited variable expansion for
cmake.cmakePath
insettings.json
(refer to documentation for more details).
1.1.2
A bugfix release for these issues.
1.1.1
A bugfix release for these issues.
BREAKING CHANGE: Variant substitutions follow a new ${variant:var-key}
syntax to match the special namespacing of substitutions.
1.1.0
1.1.0 includes a few new major features:
cpptools
integration for IntelliSense- A Project Outline view as a custom explorer
- Building individual source files from the editor menus
- New UI for progress and cancellation
See the changelog in the official documentation for more information.