File tree Expand file tree Collapse file tree
platform/configuration/common
workbench/services/configuration/browser Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments