coc-meson
v1.22.1-rc1
Published
Meson language support for Visual Studio Code
Downloads
94
Readme
Meson for Visual Studio Code
Ported from vscode-meson.
Because some APIs of vscode are missing in coc.nvim, disable some features temporarily:
- tasks: miss
vscode.task
Install
" command line
CocInstall coc-meson
" or add the following code to your vimrc
let g:coc_global_extensions = ['coc-meson', 'other coc-plugins']
This extension provides support for Meson in Visual Studio Code. This language grammar was based on the grammar found in the atom extension from Patrick Griffis, but has since been added onto to support more features, including code from the VSCode grammar for Python.
Meson logo by Jussi Pakkanen, licensed for use by this project. Icons from the Material Design Icons project.
Features
- Syntax Highlighting
- Automatic Task Provider
- Code Snippets
- Linting[^0]
- Formatting[^1]
- Generate environment file to be used in launch.json:
"envFile": "${workspaceFolder}/${config:mesonbuild.buildFolder}/meson-vscode.env"
See Meson devenv - Configure Intellisense to use the
compile_commands.json
generated by Meson - Provide an Intellisense C/C++ configuration to use the
meson-info
introspection files:"C_Cpp.default.configurationProvider": "mesonbuild.mesonbuild"
* - requires an installation of muon.
New Extension ID
If you come from a previous installation, please make sure you are on the mesonbuild.mesonbuild extension. There are 3 variants/versions of this extension on the store, and only that one is released from this repository.
[^0]: Requires an installation of Swift-MesonLSP or muon.
[^1]: Requires an installation of muon.