@@ -37,7 +37,6 @@ 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' ;
4140
4241const $ = dom . $ ;
4342
@@ -78,7 +77,6 @@ export class BreakpointsView extends ViewPane {
7877 @IOpenerService openerService : IOpenerService ,
7978 @ITelemetryService telemetryService : ITelemetryService ,
8079 @ILabelService private readonly labelService : ILabelService ,
81- @IUriIdentityService private readonly uriIdentityService : IUriIdentityService
8280 ) {
8381 super ( options , keybindingService , contextMenuService , configurationService , contextKeyService , viewDescriptorService , instantiationService , openerService , themeService , telemetryService ) ;
8482
@@ -135,7 +133,7 @@ export class BreakpointsView extends ViewPane {
135133 const element = this . list . element ( e . element ) ;
136134
137135 if ( element instanceof Breakpoint ) {
138- openBreakpointSource ( element , e . sideBySide , e . editorOptions . preserveFocus || false , this . debugService , this . editorService , this . uriIdentityService ) ;
136+ openBreakpointSource ( element , e . sideBySide , e . editorOptions . preserveFocus || false , this . debugService , this . editorService ) ;
139137 }
140138 if ( e . browserEvent instanceof MouseEvent && e . browserEvent . detail === 2 && element instanceof FunctionBreakpoint && element !== this . debugService . getViewModel ( ) . getSelectedFunctionBreakpoint ( ) ) {
141139 // double click
@@ -194,7 +192,7 @@ export class BreakpointsView extends ViewPane {
194192 if ( element instanceof Breakpoint || element instanceof FunctionBreakpoint ) {
195193 actions . push ( new Action ( 'workbench.action.debug.openEditorAndEditBreakpoint' , nls . localize ( 'editBreakpoint' , "Edit {0}..." , breakpointType ) , '' , true , async ( ) => {
196194 if ( element instanceof Breakpoint ) {
197- const editor = await openBreakpointSource ( element , false , false , this . debugService , this . editorService , this . uriIdentityService ) ;
195+ const editor = await openBreakpointSource ( element , false , false , this . debugService , this . editorService ) ;
198196 if ( editor ) {
199197 const codeEditor = editor . getControl ( ) ;
200198 if ( isCodeEditor ( codeEditor ) ) {
@@ -673,7 +671,7 @@ class BreakpointsAccessibilityProvider implements IListAccessibilityProvider<Bre
673671 }
674672}
675673
676- export function openBreakpointSource ( breakpoint : IBreakpoint , sideBySide : boolean , preserveFocus : boolean , debugService : IDebugService , editorService : IEditorService , uriIdentityService : IUriIdentityService ) : Promise < IEditorPane | undefined > {
674+ export function openBreakpointSource ( breakpoint : IBreakpoint , sideBySide : boolean , preserveFocus : boolean , debugService : IDebugService , editorService : IEditorService ) : Promise < IEditorPane | undefined > {
677675 if ( breakpoint . uri . scheme === DEBUG_SCHEME && debugService . state === State . Inactive ) {
678676 return Promise . resolve ( undefined ) ;
679677 }
@@ -691,7 +689,7 @@ export function openBreakpointSource(breakpoint: IBreakpoint, sideBySide: boolea
691689 } ;
692690
693691 return editorService . openEditor ( {
694- resource : uriIdentityService . asCanonicalUri ( breakpoint . uri ) ,
692+ resource : breakpoint . uri ,
695693 options : {
696694 preserveFocus,
697695 selection,
0 commit comments