From 0d75d97e7e53cbfa9ffb2cdda328f4db7c7d3f82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ch=C5=82odnicki?= Date: Sat, 19 Sep 2020 10:46:27 +0200 Subject: [PATCH] Use config schema in *.sublime-project (#79) --- sublime-package.json | 38 ++++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/sublime-package.json b/sublime-package.json index 5723943..d2684d8 100644 --- a/sublime-package.json +++ b/sublime-package.json @@ -6,11 +6,9 @@ "/LSP-vue.sublime-settings" ], "schema": { - "allOf": [ - { - "$ref": "sublime://settings/LSP-plugin-base" - }, - { + "$id": "sublime://settings/LSP-vue", + "definitions": { + "PluginConfig": { "properties": { "initializationOptions": { "properties": { @@ -345,9 +343,37 @@ } } } + }, + "allOf": [ + { + "$ref": "sublime://settings/LSP-plugin-base" + }, + { + "$ref": "sublime://settings/LSP-vue#/definitions/PluginConfig" + } ] } - } + }, + { + "file_patterns": [ + "/*.sublime-project" + ], + "schema": { + "properties": { + "settings": { + "properties": { + "LSP": { + "properties": { + "LSP-vue": { + "$ref": "sublime://settings/LSP-vue#/definitions/PluginConfig" + } + } + } + } + } + } + } + }, ] } }