File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/languageserver/handlers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export class SettingsHandler {
8181
8282 if ( settings . yaml . schemaStore ) {
8383 this . yamlSettings . schemaStoreEnabled = settings . yaml . schemaStore . enable ;
84- if ( settings . yaml . schemaStore . url . length !== 0 ) {
84+ if ( settings . yaml . schemaStore . url ? .length !== 0 ) {
8585 this . yamlSettings . schemaStoreUrl = settings . yaml . schemaStore . url ;
8686 }
8787 }
@@ -180,7 +180,7 @@ export class SettingsHandler {
180180 private async setSchemaStoreSettingsIfNotSet ( ) : Promise < void > {
181181 const schemaStoreIsSet = this . yamlSettings . schemaStoreSettings . length !== 0 ;
182182 let schemaStoreUrl = '' ;
183- if ( this . yamlSettings . schemaStoreUrl . length !== 0 ) {
183+ if ( this . yamlSettings . schemaStoreUrl ? .length !== 0 ) {
184184 schemaStoreUrl = this . yamlSettings . schemaStoreUrl ;
185185 } else {
186186 schemaStoreUrl = JSON_SCHEMASTORE_URL ;
You can’t perform that action at this time.
0 commit comments