From bc9241ddf5902ba2f8d2d39350660db53550ed01 Mon Sep 17 00:00:00 2001 From: Javier Tia Date: Wed, 26 Jul 2023 14:54:23 -0600 Subject: [PATCH] Document yaml option to fix LSP completion 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 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ecaaaa9..c73e190 100644 --- a/README.md +++ b/README.md @@ -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(), },