fix #96655
This commit is contained in:
parent
7bd4ccb711
commit
f93c079202
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue