@@ -37,6 +37,7 @@ import { IOpenerService } from 'vs/platform/opener/common/opener';
3737import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry' ;
3838import { Orientation } from 'vs/base/browser/ui/splitview/splitview' ;
3939import { IListAccessibilityProvider } from 'vs/base/browser/ui/list/listWidget' ;
40+ import { IUriIdentityService } from 'vs/workbench/services/uriIdentity/common/uriIdentity' ;
4041
4142const $ = dom . $ ;
4243
@@ -76,7 +77,8 @@ export class BreakpointsView extends ViewPane {
7677 @IContextKeyService contextKeyService : IContextKeyService ,
7778 @IOpenerService openerService : IOpenerService ,
7879 @ITelemetryService telemetryService : ITelemetryService ,
79- @ILabelService private readonly labelService : ILabelService
80+ @ILabelService private readonly labelService : ILabelService ,
81+ @IUriIdentityService private readonly uriIdentityService : IUriIdentityService
8082 ) {
8183 super ( options , keybindingService , contextMenuService , configurationService , contextKeyService , viewDescriptorService , instantiationService , openerService , themeService , telemetryService ) ;
8284
@@ -133,7 +135,7 @@ export class BreakpointsView extends ViewPane {
133135 const element = this . list . element ( e . element ) ;
134136
135137 if ( element instanceof Breakpoint ) {
136- openBreakpointSource ( element , e . sideBySide , e . editorOptions . preserveFocus || false , this . debugService , this . editorService ) ;
138+ openBreakpointSource ( element , e . sideBySide , e . editorOptions . preserveFocus || false , this . debugService , this . editorService , this . uriIdentityService ) ;
137139 }
138140 if ( e . browserEvent instanceof MouseEvent && e . browserEvent . detail === 2 && element instanceof FunctionBreakpoint && element !== this . debugService . getViewModel ( ) . getSelectedFunctionBreakpoint ( ) ) {
139141 // double click
@@ -192,7 +194,7 @@ export class BreakpointsView extends ViewPane {
192194 if ( element instanceof Breakpoint || element instanceof FunctionBreakpoint ) {
193195 actions . push ( new Action ( 'workbench.action.debug.openEditorAndEditBreakpoint' , nls . localize ( 'editBreakpoint' , "Edit {0}..." , breakpointType ) , '' , true , async ( ) => {
194196 if ( element instanceof Breakpoint ) {
195- const editor = await openBreakpointSource ( element , false , false , this . debugService , this . editorService ) ;
197+ const editor = await openBreakpointSource ( element , false , false , this . debugService , this . editorService , this . uriIdentityService ) ;
196198 if ( editor ) {
197199 const codeEditor = editor . getControl ( ) ;
198200 if ( isCodeEditor ( codeEditor ) ) {
@@ -671,7 +673,7 @@ class BreakpointsAccessibilityProvider implements IListAccessibilityProvider<Bre
671673 }
672674}
673675
674- export function openBreakpointSource ( breakpoint : IBreakpoint , sideBySide : boolean , preserveFocus : boolean , debugService : IDebugService , editorService : IEditorService ) : Promise < IEditorPane | undefined > {
676+ export function openBreakpointSource ( breakpoint : IBreakpoint , sideBySide : boolean , preserveFocus : boolean , debugService : IDebugService , editorService : IEditorService , uriIdentityService : IUriIdentityService ) : Promise < IEditorPane | undefined > {
675677 if ( breakpoint . uri . scheme === DEBUG_SCHEME && debugService . state === State . Inactive ) {
676678 return Promise . resolve ( undefined ) ;
677679 }
@@ -689,7 +691,7 @@ export function openBreakpointSource(breakpoint: IBreakpoint, sideBySide: boolea
689691 } ;
690692
691693 return editorService . openEditor ( {
692- resource : breakpoint . uri ,
694+ resource : uriIdentityService . asCanonicalUri ( breakpoint . uri ) ,
693695 options : {
694696 preserveFocus,
695697 selection,
0 commit comments