We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4864b5 commit 700e364Copy full SHA for 700e364
1 file changed
src/EIDEProjectModules.ts
@@ -5,7 +5,6 @@ import * as fs from 'fs';
5
import * as vscode from 'vscode';
6
import * as NodePath from 'path';
7
import { jsonc } from 'jsonc';
8
-import { isNullOrUndefined } from "util";
9
import * as child_process from 'child_process';
10
11
import { File } from "../lib/node-utility/File";
@@ -379,7 +378,7 @@ export abstract class ConfigModel<DataType> {
379
378
380
// set default value
381
for (const key in _default) {
382
- if (!isNullOrUndefined(_default[key])) {
+ if (_default[key] !== undefined && _default[key] !== null) {
383
if (typeof (<any>newConfig)[key] !== typeof _default[key]) {
384
(<any>newConfig)[key] = _default[key];
385
}
0 commit comments