Skip to content

Commit 872ebf6

Browse files
authored
fix: fixed the error when clicking "No configuration" (#4611)
1 parent 9443325 commit 872ebf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/debug/src/browser/view/configuration/debug-configuration.view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ export const DebugControllerView = (props: DebugControllerViewProps) => {
313313
} else {
314314
value = event;
315315
}
316-
if (value.startsWith(DEFAULT_ADD_CONFIGURATION_KEY)) {
316+
if (value.startsWith(DEFAULT_ADD_CONFIGURATION_KEY) || value === DEFAULT_NO_CONFIGURATION_KEY) {
317317
const index = value.slice(DEFAULT_ADD_CONFIGURATION_KEY.length);
318318
if (index) {
319319
addConfiguration(workspaceRoots[index]);

0 commit comments

Comments
 (0)