vscode-cmake-tools
vscode-cmake-tools copied to clipboard
ctrl+s not working in CMake Cache Editor (UI)
Brief Issue Summary
The shortcut Ctrl+S (or whatever binding is set) does not work in the UI CMake Cache Editor.
Reproduce:
- Open a CMake project
- Press F1
- CMake: Configure
- CMake: Edit Cmake Cache UI
- Change anything
- Press
Ctrl+Sor Menu -> File -> Save
Nothing happens. I was expecting the document to be saved.
Only the Save button at the top of the document works.
CMake Tools Diagnostics
{
"os": "win32",
"vscodeVersion": "1.92.2",
"cmtVersion": "1.18.44",
"configurations": [
{
"folder": "c:\\TechnoTeam\\develop\\src\\TT_CodeBase",
"cmakeVersion": "3.29.3",
"configured": true,
"generator": "Ninja Multi-Config",
"usesPresets": true,
"compilers": {
"C": "C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe",
"CXX": "C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe"
}
}
],
"cpptoolsIntegration": {
"isReady": true,
"hasCodeModel": true,
"activeBuildType": "Debug",
"buildTypesSeen": [
"Debug",
"Release"
],
"requests": [],
"responses": [],
"partialMatches": [],
"targetCount": 94,
"executablesCount": 5,
"librariesCount": 21,
"targets": []
},
"settings": [
{
"communicationMode": "automatic",
"useCMakePresets": "auto",
"configureOnOpen": false
}
]
}
Debug Log
No response
Additional Information
Version: 1.92.2 (user setup) Commit: fee1edb8d6d72a0ddff41e5f71a671c23ed924b9 Date: 2024-08-14T17:29:30.058Z Electron: 30.1.2 ElectronBuildId: 9870757 Chromium: 124.0.6367.243 Node.js: 20.14.0 V8: 12.4.254.20-electron.0 OS: Windows_NT x64 10.0.22631
@gcampbell-msft @bebuch This issue can reproduced on latest version v0.19.44, you can get the details below. Thank you!
ENV
- VSCode version:
- CMake tools version:
- C/C++ version:
Repro steps:
- Open a folder
- Click F1 to run command "CMake: Configure"
- Click F1 to run command "CMake: Edit Cmake Cache UI"
- Change "CMAKE_BUILD_TYPE" to Release/Debug
- Click Ctrl+S or click File> Save
Expected result:
On the output window it shows that the configuration was successful and in the bottom right corner of the page appears the “CMake options have been saved.”
Actual result:
No response from within VScode.
This has been waiting for prioritisation for three months now. Can someone please have a look?
The bug is extremely annoying and is probably easy to fix.
@bebuch Thanks for your update and your ping on this issue.
I took a quick look and unfortunately the fix is not as simple as it might seem. vscode doesn't offer a blanket event that we could react to for a generic ctrl-s or menu save. Instead, we would have to refactor the code to implement a vscode.CustomTextEditorProvider.
Please upvote the issue as we often use the number of upvotes as a metric to help us prioritize. Thanks!
There are currently three other upvotes. How much are required?
@bebuch Thanks for the update, we're still investigating the issue and we'll let you know as soon as there's any developments
Any plan's to fix this? As the person responsible for our workflows, I keep getting this bug report from our developers. Without exception, everyone who switches from other IDEs runs into this and then wants to go straight back to Qt Creator, CLion, Visual Studio...
The bug makes it difficult for us to convince people that using VS Code consistently is the best solution for everyone. Especially because I can't explain why something supposedly “as simple” as Ctrl+S doesn't work.
I agree - it would be nice to have this fixed.
Thanks for the feedback. If there is progress on this issue, we will update here. Thanks for help us build a better CMake Tools!