voldikss / coc-cmake Goto Github PK
View Code? Open in Web Editor NEWSee https://github.com/voldikss/coc-extensions
See https://github.com/voldikss/coc-extensions
Hello,
this plugin seems to work better. Maybe integrate this and choose between vs.code.cmake and this can be nice (as coc-python)
on latest commit
running yarn install --frozen-lockfile
:
[1/5] Validating package.json...
warning [email protected]: The engine "coc" appears to be invalid.
[2/5] Resolving packages...
warning [email protected]: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.
error Your lockfile needs to be updated, but yarn was run with `--frozen-lockfile`.
i tried with just yarn install
but got a error when compiling webpack : https://pastebin.com/8uc5WXaP
thanks
Not sure, but I think this could be very easily achieved with:
@@ -40,7 +40,7 @@ export default class CMakeFormattingEditProvider
async function format(document: TextDocument, range?: Range): Promise<string> {
const formatter = getConfig<string>('formatter')
- const args = []
+ const args = getConfig<Array<string>>('formatter_args')
if (!range) {
args.push(Uri.parse(document.uri).fsPath)
} else {
This however has not been implemented, I am sure there is a reason for that?..
Otherwise I could totally do a pr, please lmk;
Thanks!
I just installed the extension (version: 0.0.2
) using
:CocInstall coc-cmake
and put the configurations in the coc-settings.json
. I have also checked whether the extension is activated.
Is there any step I'm missing / doing wrong?
Ref:
{
"c/c++ - launch": {
"adapter": "CodeLLDB",
"configuration": {
"request": "launch",
"program": "${workspaceRoot}/${fileBasenameNoExtension}",
"stopAtEntry": false
},
"breakpoints": {
"exception": {
"cpp_throw": "Y",
"cpp_catch": "N"
}
}
}
maybe we could integrate some functionnality from this tool.
It seems to have a linter and a formatter
It would be pretty amazing if something could parse CMake syntax and communicate highlight regions for the plugin. Right now highlighting is done based on syntax file, which is 1) often out-of-date, 2) good enough for standard CMake code, but only introduces confusion when used in custom CMake code, e.g.:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.