Skip to content

Commit 37531b5

Browse files
committed
running a yarn lint
1 parent 0e78035 commit 37531b5

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

src/desktop/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ export const deactivate = async (): Promise<void> => {
6060
await liveWatchTreeDataProvider.deactivate();
6161
}
6262
logger.debug('Extension Pack deactivated');
63-
}
63+
};

src/views/live-watch/live-watch.ts

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,16 @@ export class LiveWatchTreeDataProvider implements vscode.TreeDataProvider<LiveWa
3232
readonly onDidChangeTreeData: vscode.Event<LiveWatchNode | void> = this._onDidChangeTreeData.event;
3333

3434
private roots: LiveWatchNode[] = [];
35-
private NodeID: number;
35+
private nodeID: number;
3636
private _context: vscode.ExtensionContext;
3737
private activeSession: GDBTargetDebugSession | undefined;
3838

3939
constructor(private readonly context: vscode.ExtensionContext) {
4040
this.roots = this.context.workspaceState.get<LiveWatchNode[]>(this.STORAGE_KEY) ?? [];
4141
this._context = context;
42-
this.NodeID = 0;
42+
this.nodeID = 0;
4343
for (const node of this.roots) {
44-
node.id = this.NodeID;
45-
this.NodeID++;
44+
node.id = this.nodeID++;
4645
}
4746
}
4847

@@ -74,16 +73,16 @@ export class LiveWatchTreeDataProvider implements vscode.TreeDataProvider<LiveWa
7473
await this.refresh();
7574
await this.save();
7675
});
77-
//
76+
//
7877
const onContinued = tracker.onContinued(async () => {
7978
await this.refresh();
8079
});
81-
this._context.subscriptions.push(onContinued,
82-
onDidChangeActiveDebugSession,
83-
onWillStartSession,
84-
onStopped,
85-
onStackTrace,
86-
onWillStopSession);
80+
this._context.subscriptions.push(onContinued,
81+
onDidChangeActiveDebugSession,
82+
onWillStartSession,
83+
onStopped,
84+
onStackTrace,
85+
onWillStopSession);
8786
}
8887

8988
public async deactivate(): Promise<void> {
@@ -155,7 +154,7 @@ export class LiveWatchTreeDataProvider implements vscode.TreeDataProvider<LiveWa
155154
private async add(expression: string, parent?: LiveWatchNode) {
156155
// Create a new node with a unique ID and evaluate its value
157156
const newNode: LiveWatchNode = {
158-
id: this.NodeID + 1,
157+
id: ++this.nodeID,
159158
expression,
160159
value : await this.evaluate(expression),
161160
parent: parent ?? undefined
@@ -165,7 +164,6 @@ export class LiveWatchTreeDataProvider implements vscode.TreeDataProvider<LiveWa
165164
} else {
166165
parent.children?.push(newNode);
167166
}
168-
this.NodeID++;
169167
await this.refresh();
170168
}
171169

0 commit comments

Comments
 (0)