fix(yaml): yaml: Fix TypeError undefined length (#1229)

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's
doesn't exist.

Signed-off-by: Javier Tia <javier.tia@gmail.com>
This commit is contained in:
Javier Tia authored and GitHub committed 2023-07-26 21:43:49 +02:00
1 parent aa1cccf230
commit d7ca822d41
1 file changed
+2
+2
View File
@@ -38,6 +38,8 @@ return {
-- Must disable built-in schemaStore support to use
-- schemas from SchemaStore.nvim plugin
enable = false,
-- Avoid TypeError: Cannot read properties of undefined (reading 'length')
url = "",
},
},
},