Skip to content

Commit

Permalink
Merge pull request #80669 from dgozman/for-79228
Browse files Browse the repository at this point in the history
Make DebugSession.loadSource work for non-cached sources, see #79228
  • Loading branch information
weinand committed Sep 12, 2019
2 parents f17f3f4 + 6382786 commit db4102a
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/vs/workbench/contrib/debug/browser/debugSession.ts
Expand Up @@ -519,17 +519,8 @@ export class DebugSession implements IDebugSession {
rawSource = source.raw;
} else {
// create a Source

let sourceRef: number | undefined;
if (resource.query) {
const data = Source.getEncodedDebugData(resource);
sourceRef = data.sourceReference;
}

rawSource = {
path: resource.with({ scheme: '', query: '' }).toString(true), // Remove debug: scheme
sourceReference: sourceRef
};
const data = Source.getEncodedDebugData(resource);
rawSource = { path: data.path, sourceReference: data.sourceReference };
}

return this.raw.source({ sourceReference: rawSource.sourceReference || 0, source: rawSource });
Expand Down

0 comments on commit db4102a

Please sign in to comment.