Skip to content

Commit b3aa9b2

Browse files
authored
declaring member variable at the beginning of the class (#751)
1 parent f9a6718 commit b3aa9b2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/views/component-viewer/component-viewer-main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export class ComponentViewer {
2828
private _context: vscode.ExtensionContext;
2929
private _instanceUpdateCounter: number = 0;
3030
private _updateSemaphoreFlag: boolean = false;
31+
private _loadingCounter: number = 0;
3132

3233
public constructor(context: vscode.ExtensionContext) {
3334
this._context = context;
@@ -67,10 +68,9 @@ export class ComponentViewer {
6768
this.instances = cbuildRunInstances;
6869
}
6970

70-
private loadingCounter: number = 0;
7171
private async loadCbuildRunInstances(session: GDBTargetDebugSession, tracker: GDBTargetDebugTracker) : Promise<void> {
72-
this.loadingCounter++;
73-
console.log(`Loading SCVD files from cbuild-run, attempt #${this.loadingCounter}`);
72+
this._loadingCounter++;
73+
console.log(`Loading SCVD files from cbuild-run, attempt #${this._loadingCounter}`);
7474
// Try to read SCVD files from cbuild-run file first
7575
await this.readScvdFiles(tracker, session);
7676
// Are there any SCVD files found in cbuild-run?

0 commit comments

Comments
 (0)