提交 f93c0792 编写于 作者: S Sandeep Somavarapu

fix #96655

上级 7bd4ccb7
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册