Skip to content

Commit 5669cd2

Browse files
eronnengoogle-yfyang
authored andcommitted
[lldb-dap] fix config value comparison (llvm#142017)
Fix TypeSCript comparison (when defining an empty config string like `commandEscapePrefix=""` it would skip it)
1 parent 66ac1d4 commit 5669cd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/tools/lldb-dap/src-ts/debug-configuration-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class LLDBDapConfigurationProvider
8484
continue;
8585
}
8686
const value = config.get(key);
87-
if (!value || value === cfg.default) {
87+
if (value === undefined || value === cfg.default) {
8888
continue;
8989
}
9090
switch (cfg.type) {

0 commit comments

Comments
 (0)