Add support for linting warnings from godot-gdscript-toolkit
I'm submitting a...
- [ ] Bug report.
- [x] Feature request.
Feature request
It would be great to see the linting warnings for godot-gdscript-toolkit gdlint directly in the editor. I have seen it work in neovim and vscode. This uses the same project as the request in #18.
Doesn't it show to you?
If I hover over the line, it shows the details.
Although I have godot-gdscript-toolkit gdlint installed, it works without it. That's an LSP functionality if I'm not mistaken.
@gerep I believe what you're seeing there is the LSP warning that the delta variable is unused, which is provided by the LSP but the linter provides other warnings that the LSP can't and it would be useful to have those in the editor as well if possible.
Also, it would be great to have gdformat from gdtoolkit as well
@reisaraujo-miguel You can set up gdformat as an external tool like below in the zed settings
"languages": {
"GDScript": {
"hard_tabs": true,
"formatter": {
"external": {
"command": "gdformat",
"arguments": ["-"]
}
}
}
},
As far as I know, it's not possible for us to implement something like this at the moment with Zed extensions. When this is possible I'd be keen on adding support for TranquilMarmot's rewrite of GDLint in Rust, as it runs instantly: it's part of our new GDScript Formatter