Skip to content

Commit b655939

Browse files
committed
chore: in diagnostic tool, compare names case insensitive
See https://github.com/microsoft/vscode-js-debug/issues/1154\#issuecomment-1003003065
1 parent 2384c4c commit b655939

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/diagnosticTool/breakpointHelper.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ const Breakpoint: FunctionComponent<{ bp: IDiagnosticBreakpoint }> = ({ bp }) =>
168168
const FailedToSetLocation: FunctionComponent<{ bp: IDiagnosticBreakpoint }> = ({ bp }) => {
169169
const dump = useDump();
170170
const desiredBasename = basename({ url: bp.source.path as string });
171-
const matchingSources = dump.sources.filter(src => basename(src) === desiredBasename);
171+
const matchingSources = dump.sources.filter(
172+
src => basename(src).toLowerCase() === desiredBasename.toLowerCase(),
173+
);
172174

173175
if (!matchingSources.length) {
174176
return (

0 commit comments

Comments
 (0)