Skip to content

Commit

Permalink
Normalize all drive letters going out from vscode to debug adapters s…
Browse files Browse the repository at this point in the history
…o we are consistent with our resolving

fixes #43959
  • Loading branch information
isidorn committed Mar 1, 2018
1 parent a73471c commit 76a8089
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vs/workbench/parts/debug/electron-browser/debugService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import { TaskEvent, TaskEventKind } from 'vs/workbench/parts/tasks/common/tasks'
import { IChoiceService } from 'vs/platform/dialogs/common/dialogs';
import { INotificationService } from 'vs/platform/notification/common/notification';
import { IAction, Action } from 'vs/base/common/actions';
import { normalizeDriveLetter } from 'vs/base/common/labels';

const DEBUG_BREAKPOINTS_KEY = 'debug.breakpoint';
const DEBUG_BREAKPOINTS_ACTIVATED_KEY = 'debug.breakpointactivated';
Expand Down Expand Up @@ -1195,6 +1196,8 @@ export class DebugService implements debug.IDebugService {
if (breakpointsToSend.length && !rawSource.adapterData) {
rawSource.adapterData = breakpointsToSend[0].adapterData;
}
// Normalize all drive letters going out from vscode to debug adapters so we are consistent with our resolving #43959
rawSource.path = normalizeDriveLetter(rawSource.path);

return session.setBreakpoints({
source: rawSource,
Expand Down

0 comments on commit 76a8089

Please sign in to comment.