mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Fix extension sourcemaps (#23700)
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -216,8 +216,12 @@ export function createTypeScriptBuilder(config: IConfiguration, projectFile: str
|
|||||||
|
|
||||||
[tsSMC, inputSMC].forEach((consumer) => {
|
[tsSMC, inputSMC].forEach((consumer) => {
|
||||||
(<SourceMapConsumer & { sources: string[] }>consumer).sources.forEach((sourceFile: any) => {
|
(<SourceMapConsumer & { sources: string[] }>consumer).sources.forEach((sourceFile: any) => {
|
||||||
(<any>smg)._sources.add(sourceFile);
|
|
||||||
const sourceContent = consumer.sourceContentFor(sourceFile);
|
const sourceContent = consumer.sourceContentFor(sourceFile);
|
||||||
|
// {{SQL CARBON EDIT}} For some reason our paths on Windows machines come out with mixed
|
||||||
|
// path separators, which ends up causing duplicate entries to end up in the sourcemap.
|
||||||
|
// To fix this we normalize the filepath before adding it to the set
|
||||||
|
sourceFile = normalize(sourceFile);
|
||||||
|
(<any>smg)._sources.add(sourceFile);
|
||||||
if (sourceContent !== null) {
|
if (sourceContent !== null) {
|
||||||
smg.setSourceContent(sourceFile, sourceContent);
|
smg.setSourceContent(sourceFile, sourceContent);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user