Skip to content

Commit f93c079

Browse files
committed
1 parent 7bd4ccb commit f93c079

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/vs/platform/configuration/common/configurationModels.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export class ConfigurationModelParser {
231231
}
232232

233233
public parseContent(content: string | null | undefined): void {
234-
if (content) {
234+
if (!types.isUndefinedOrNull(content)) {
235235
const raw = this.doParseContent(content);
236236
this.parseRaw(raw);
237237
}

src/vs/workbench/services/configuration/browser/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ class FileServiceBasedConfiguration extends Disposable {
127127
this._folderSettingsModelParser.parseContent('');
128128

129129
// parse
130-
if (settingsContents[0]) {
130+
if (settingsContents[0] !== undefined) {
131131
this._folderSettingsModelParser.parseContent(settingsContents[0]);
132132
}
133133
for (let index = 0; index < standAloneConfigurationContents.length; index++) {
134134
const contents = standAloneConfigurationContents[index];
135-
if (contents) {
135+
if (contents !== undefined) {
136136
const standAloneConfigurationModelParser = new StandaloneConfigurationModelParser(this.standAloneConfigurationResources[index][1].toString(), this.standAloneConfigurationResources[index][0]);
137137
standAloneConfigurationModelParser.parseContent(contents);
138138
this._standAloneConfigurations.push(standAloneConfigurationModelParser.configurationModel);

0 commit comments

Comments
 (0)