mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-22 11:19:32 +00:00
fix: breakpoints in extension subdirs on windows not working (#184195)
It did not normalize to forward slashes, so the empty sourcemap was created with a source called `foo\\bar.js`. Then the build process was adding a new source `foo/bar.js` since it didn't see it already in the sourcemap, but `foo\\bar.js` was later normalized. This normalized version came first in the mapping, but didn't have any mapped locations, so breakpoints never got set.
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -219,7 +219,7 @@ export function loadSourcemaps(): NodeJS.ReadWriteStream {
|
|||||||
version: '3',
|
version: '3',
|
||||||
names: [],
|
names: [],
|
||||||
mappings: '',
|
mappings: '',
|
||||||
sources: [f.relative],
|
sources: [f.relative.replace(/\\/g, '/')],
|
||||||
sourcesContent: [contents]
|
sourcesContent: [contents]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user