Skip to content

Commit af97378

Browse files
committed
Rename projectObservable to projectManager
1 parent 3b4c4eb commit af97378

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/home.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ export default class PIOHome {
151151
}
152152

153153
onOpenProjectCommand(params) {
154-
if (extension.projectObservable) {
154+
if (extension.ProjectManager) {
155155
updateProjectItemState(vscode.Uri.file(params).fsPath, 'activeEnv', undefined);
156-
extension.projectObservable.switchToProject(vscode.Uri.file(params).fsPath);
156+
extension.ProjectManager.switchToProject(vscode.Uri.file(params).fsPath);
157157
}
158158
this.disposePanel();
159159
if (vscode.workspace.workspaceFolders) {

src/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import InstallationManager from './installer/manager';
1515
import PIOHome from './home';
1616
import PIOTerminal from './terminal';
1717
import PIOToolbar from './toolbar';
18-
import ProjectObservable from './project/observable';
18+
import ProjectManager from './project/manager';
1919
import QuickAccessTreeProvider from './views/quick-access-tree';
2020
import fs from 'fs-plus';
2121
import { getPIOProjectDirs } from './project/helpers';
@@ -26,7 +26,7 @@ class PlatformIOVSCodeExtension {
2626
this.context = undefined;
2727
this.pioTerm = undefined;
2828
this.pioHome = undefined;
29-
this.projectObservable = undefined;
29+
this.ProjectManager = undefined;
3030
this.subscriptions = [];
3131

3232
this._enterpriseSettings = undefined;
@@ -92,8 +92,8 @@ class PlatformIOVSCodeExtension {
9292
);
9393

9494
this.initDebug();
95-
this.projectObservable = new ProjectObservable();
96-
this.subscriptions.push(this.projectObservable);
95+
this.ProjectManager = new ProjectManager();
96+
this.subscriptions.push(this.ProjectManager);
9797

9898
this.startPIOHome();
9999

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
import * as pioNodeHelpers from 'platformio-node-helpers';
1010
import * as projectHelpers from './helpers';
1111

12+
import { disposeSubscriptions, notifyError } from '../utils';
1213
import ProjectTaskManager from './tasks';
1314
import ProjectTestManager from './tests';
1415
import { STATUS_BAR_PRIORITY_START } from '../constants';
1516
import { extension } from '../main';
16-
import { notifyError } from '../utils';
1717
import path from 'path';
1818
import vscode from 'vscode';
1919

20-
export default class ProjectObservable {
20+
export default class ProjectManager {
2121
constructor() {
2222
this._taskManager = undefined;
2323
this._testManager = undefined;
@@ -115,7 +115,7 @@ export default class ProjectObservable {
115115
this.subscriptions.push(manager);
116116
}
117117
}
118-
pioNodeHelpers.misc.disposeSubscriptions(this.subscriptions);
118+
disposeSubscriptions(this.subscriptions);
119119
}
120120

121121
findActiveProjectDir() {

0 commit comments

Comments
 (0)