This commit is contained in:
Sandeep Somavarapu 2020-05-05 16:44:22 +02:00
parent 7bd4ccb711
commit f93c079202
2 changed files with 3 additions and 3 deletions

View file

@ -231,7 +231,7 @@ export class ConfigurationModelParser {
}
public parseContent(content: string | null | undefined): void {
if (content) {
if (!types.isUndefinedOrNull(content)) {
const raw = this.doParseContent(content);
this.parseRaw(raw);
}

View file

@ -127,12 +127,12 @@ class FileServiceBasedConfiguration extends Disposable {
this._folderSettingsModelParser.parseContent('');
// parse
if (settingsContents[0]) {
if (settingsContents[0] !== undefined) {
this._folderSettingsModelParser.parseContent(settingsContents[0]);
}
for (let index = 0; index < standAloneConfigurationContents.length; index++) {
const contents = standAloneConfigurationContents[index];
if (contents) {
if (contents !== undefined) {
const standAloneConfigurationModelParser = new StandaloneConfigurationModelParser(this.standAloneConfigurationResources[index][1].toString(), this.standAloneConfigurationResources[index][0]);
standAloneConfigurationModelParser.parseContent(contents);
this._standAloneConfigurations.push(standAloneConfigurationModelParser.configurationModel);