Open fearoffish opened 10 months ago
Does anyone have a workaround for this please?
Update
I found the following hacky workaround to disable the language server. Add the following to your ZED settings.json
"language_overrides": {
"YAML": {
"enable_language_server": false
}
Same issue and I found that it is only happening for YAML files located in a tasks
folder
Might be related to
This is an upstream yaml-language-server issue. If you know the schema of your file, you can provide a modeline in a comment to link to the json schema on schemastore, local file or other url:
# yaml-language-server: $schema=https://json.schemastore.org/github-action.json
Additionally, there is an open issue to add support for a modeline which explicitly disabled schema validation:
Check for existing issues
Describe the bug / provide steps to reproduce it
When I open a generic YAML file it's showing syntax errors for
ansible-schema
. Example:So it's incorrectly registering it as an ansible schema file, but it's just a generic one.
Environment
Zed: v0.116.1 (stable) OS: macOS 13.6.1 Memory: 8 GiB Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.If you only need the most recent lines, you can run the
zed: open log
command palette action to see the last 1000.