File tree Expand file tree Collapse file tree 5 files changed +15
-4
lines changed Expand file tree Collapse file tree 5 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ This changelog records changes to stable releases since 1.50.2. "TBA" changes he
7
7
- feat: make Deno easier to configure
8
8
- fix: allow overriding resolution of workspaceFolder in pathMapping ([ #1308 ] ( https://github.com/microsoft/vscode-js-debug/issues/1308 ) )
9
9
- fix: extraneous warnings when restarting debugging ([ vscode #156432 ] ( https://github.com/microsoft/vscode/issues/156432 ) )
10
+ - fix: webview debugging ([ #1344 ] ( https://github.com/microsoft/vscode-js-debug/issues/1344 ) )
10
11
11
12
## v1.70 (July 2022)
12
13
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ export function stripTrailingSlash(aPath: string): string {
235
235
}
236
236
237
237
const vscodeWebviewResourceSchemeRe =
238
- / ^ h t t p s : \/ \/ ( [ a - z 0 - 9 \- ] + ) \+ \. v s c o d e - r e s o u r c e \. v s c o d e - w e b v i e w \. n e t \/ ( .+ ) / i;
238
+ / ^ h t t p s : \/ \/ ( [ a - z 0 - 9 \- ] + ) \+ \. v s c o d e - r e s o u r c e \. v s c o d e - (?: w e b v i e w | c d n ) \. n e t \/ ( .+ ) / i;
239
239
240
240
/**
241
241
* If urlOrPath is a file URL, removes the 'file:///', adjusting for platform differences
Original file line number Diff line number Diff line change @@ -151,6 +151,10 @@ export const createTargetContainer = (
151
151
container . bind ( IBreakpointConditionFactory ) . to ( BreakpointConditionFactory ) . inSingletonScope ( ) ;
152
152
container . bind ( LogPointCompiler ) . toSelf ( ) . inSingletonScope ( ) ;
153
153
154
+ if ( target . sourcePathResolver ) {
155
+ container . bind ( ISourcePathResolver ) . toConstantValue ( target . sourcePathResolver ) ;
156
+ }
157
+
154
158
container . bind ( PerformanceProviderFactory ) . toSelf ( ) ;
155
159
container
156
160
. bind ( IPerformanceProvider )
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ export type PauseOnExceptionsState = 'none' | 'uncaught' | 'all';
55
55
56
56
export class BrowserTarget implements ITarget {
57
57
readonly parentTarget : BrowserTarget | undefined ;
58
- private _manager : BrowserTargetManager ;
59
58
private _cdp : Cdp . Api ;
60
59
private _ondispose : ( t : BrowserTarget ) => void ;
61
60
private _waitingForDebugger : boolean ;
@@ -94,8 +93,10 @@ export class BrowserTarget implements ITarget {
94
93
95
94
_children : Map < Cdp . Target . TargetID , BrowserTarget > = new Map ( ) ;
96
95
96
+ public readonly sourcePathResolver = this . _manager . _sourcePathResolver ;
97
+
97
98
constructor (
98
- targetManager : BrowserTargetManager ,
99
+ private readonly _manager : BrowserTargetManager ,
99
100
private _targetInfo : Cdp . Target . TargetInfo ,
100
101
cdp : Cdp . Api ,
101
102
parentTarget : BrowserTarget | undefined ,
@@ -108,7 +109,6 @@ export class BrowserTarget implements ITarget {
108
109
this . _cdp = cdp ;
109
110
cdp . pause ( ) ;
110
111
111
- this . _manager = targetManager ;
112
112
this . parentTarget = parentTarget ;
113
113
this . _waitingForDebugger = waitingForDebugger ;
114
114
this . _updateFromInfo ( _targetInfo ) ;
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { CancellationToken } from 'vscode';
6
6
import Cdp from '../cdp/api' ;
7
7
import { IDisposable , IEvent } from '../common/events' ;
8
8
import { ILogger } from '../common/logging' ;
9
+ import { ISourcePathResolver } from '../common/sourcePathResolver' ;
9
10
import { AnyLaunchConfiguration } from '../configuration' ;
10
11
import Dap from '../dap/api' ;
11
12
import { ITelemetryReporter } from '../telemetry/telemetryReporter' ;
@@ -43,6 +44,11 @@ export interface ITarget {
43
44
*/
44
45
readonly independentLifeycle ?: boolean ;
45
46
47
+ /**
48
+ * Source path resolver, if a custom one should be used for this target.
49
+ */
50
+ readonly sourcePathResolver ?: ISourcePathResolver ;
51
+
46
52
id ( ) : string ;
47
53
name ( ) : string ;
48
54
onNameChanged : IEvent < void > ;
You can’t perform that action at this time.
0 commit comments