cmake-language-support
cmake-language-support copied to clipboard
[bug] Indentation changes when swapping lines
I frequently swap lines using <Alt>+<Up> and <Alt>+<Down>. This extension seems to change the indentation of lines whenever I do this to a CMake file.
Before swap
cxx_executable(
TARGET hello_window
SOURCES hello_window.cpp
DEPENDS_ON
glad::glad
glfw
)
After swap (<Alt>+<Down> on glad::glad)
cxx_executable(
TARGET hello_window
SOURCES hello_window.cpp
DEPENDS_ON
glfw
glad::glad
)
After swap (<Alt>+<Up> on glfw)
cxx_executable(
TARGET hello_window
SOURCES hello_window.cpp
DEPENDS_ON
glfw
glad::glad
)
Expected
cxx_executable(
TARGET hello_window
SOURCES hello_window.cpp
DEPENDS_ON
glfw
glad::glad
)
CMake Language Support info
Published 2021-11-13, 01:40:06
Last released 2023-01-04, 01:47:40
Last updated 2024-06-16, 18:49:23
Identifier josetr.cmake-language-support-vscode
VS Code info
Version: 1.92.2
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: Linux x64 6.10.6-arch1-1
$ code --list-extensions
chrisjsewell.myst-tml-syntax
donjayamanne.python-environment-manager
donjayamanne.python-extension-pack
dustypomerleau.rust-syntax
eamodio.gitlens
eeyore.yapf
equinusocio.vsc-material-theme
equinusocio.vsc-material-theme-icons
executablebookproject.myst-highlight
formulahendry.code-runner
j-zeppenfeld.tab-indent-space-align
josetr.cmake-language-support-vscode
kevinrose.vsc-python-indent
llvm-vs-code-extensions.vscode-clangd
ms-dotnettools.vscode-dotnet-runtime
ms-python.black-formatter
ms-python.debugpy
ms-python.isort
ms-python.python
ms-python.vscode-pylance
ms-vscode.cmake-tools
ms-vscode.vscode-typescript-next
njpwerner.autodocstring
rust-lang.rust-analyzer
swellaby.rust-pack
swyddfa.esbonio
tamasfe.even-better-toml
vadimcn.vscode-lldb
vscode-icons-team.vscode-icons
webfreak.debug
wholroyd.jinja
I independently disabled josetr.cmake-language-support-vscode and ms-vscode.cmake-tools, to identify that it's josetr.cmake-language-support-vscode that's causing this issue. This is also replicable using twxs.cmake instead of josetr.cmake-language-support-vscode.
CMake version
$ cmake --version
cmake version 3.30.2