File tree 1 file changed +2
-2
lines changed
src/languageserver/handlers
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export class SettingsHandler {
81
81
82
82
if ( settings . yaml . schemaStore ) {
83
83
this . yamlSettings . schemaStoreEnabled = settings . yaml . schemaStore . enable ;
84
- if ( settings . yaml . schemaStore . url . length !== 0 ) {
84
+ if ( settings . yaml . schemaStore . url ? .length !== 0 ) {
85
85
this . yamlSettings . schemaStoreUrl = settings . yaml . schemaStore . url ;
86
86
}
87
87
}
@@ -180,7 +180,7 @@ export class SettingsHandler {
180
180
private async setSchemaStoreSettingsIfNotSet ( ) : Promise < void > {
181
181
const schemaStoreIsSet = this . yamlSettings . schemaStoreSettings . length !== 0 ;
182
182
let schemaStoreUrl = '' ;
183
- if ( this . yamlSettings . schemaStoreUrl . length !== 0 ) {
183
+ if ( this . yamlSettings . schemaStoreUrl ? .length !== 0 ) {
184
184
schemaStoreUrl = this . yamlSettings . schemaStoreUrl ;
185
185
} else {
186
186
schemaStoreUrl = JSON_SCHEMASTORE_URL ;
You can’t perform that action at this time.
0 commit comments