Skip to content

Commit

Permalink
Rename BranchBreakpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Armando Aguirre committed Jul 23, 2022
1 parent 3d394e5 commit 48a5b73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Breakpoint, BreakpointsChangeEvent, commands, debug as vscodeDebug, ExtensionContext, FunctionBreakpoint, Location, OutputChannel, Position, Range, SourceBreakpoint, Uri, window, workspace } from 'vscode';
import * as fs from 'fs';
import { JsonBranchBreakpoints, JsonBreakpoint, VSCodeBreakpoint } from './types';
import { BranchBreakpoints, JsonBreakpoint, VSCodeBreakpoint } from './types';

const breakpointMapKeyName = 'breakpointMap';
const configurationSection = 'branchBreakpoints';
Expand All @@ -12,7 +12,7 @@ export function activate(context: ExtensionContext) {
createOutputChannel(workspace.getConfiguration(configurationSection).get(traceConfiguration));
trace('Extension activated');

let branchBreakpoints = context.workspaceState.get<JsonBranchBreakpoints[]>(breakpointMapKeyName) || [];
let branchBreakpoints = context.workspaceState.get<BranchBreakpoints[]>(breakpointMapKeyName) || [];
trace(`Loaded breakpoints: ${JSON.stringify(branchBreakpoints)}`);

// TODO: Fix headFilename when workspace is `undefined`.
Expand Down Expand Up @@ -133,7 +133,7 @@ function areBreakpointsEqual(breakpoint1: VSCodeBreakpoint, breakpoint2: VSCodeB
|| isFunctionBreakpoint(breakpoint1) && isFunctionBreakpoint(breakpoint2) && breakpoint1.functionName === breakpoint2.functionName;
}

function getUpdatedBreakpoints(e: BreakpointsChangeEvent, isBranchLocked: boolean, branchBreakpoints: JsonBranchBreakpoints[], head: string): JsonBranchBreakpoints[] | undefined {
function getUpdatedBreakpoints(e: BreakpointsChangeEvent, isBranchLocked: boolean, branchBreakpoints: BranchBreakpoints[], head: string): BranchBreakpoints[] | undefined {
// If a branch is active, don't perform any operation
if (isBranchLocked) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface JsonBreakpoint extends Breakpoint {
functionName?: string;
}

export interface JsonBranchBreakpoints {
export interface BranchBreakpoints {
branchName: string;
breakpoints: JsonBreakpoint[];
}
Expand Down

0 comments on commit 48a5b73

Please sign in to comment.