Skip to content

Commit

Permalink
Document yaml option to fix LSP completion
Browse files Browse the repository at this point in the history
In YAML files LSP completion is not happening because
yaml-language-server is failing with error:

    TypeError: Cannot read properties of undefined (reading 'length')

from out/server/src/languageserver/handlers/settingsHandlers.js:78:51,
which it's expecting to have yaml.schemaStore.url.length and it doesn't
exist.

Signed-off-by: Javier Tia <[email protected]>
  • Loading branch information
Javier Tia committed Jul 26, 2023
1 parent aa3988c commit bc9241d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ require('lspconfig').yamlls.setup {
-- You must disable built-in schemaStore support if you want to use
-- this plugin and its advanced options like `ignore`.
enable = false,
-- Avoid TypeError: Cannot read properties of undefined (reading 'length')
url = "",
},
schemas = require('schemastore').yaml.schemas(),
},
Expand Down

0 comments on commit bc9241d

Please sign in to comment.