File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import InstallationManager from './installer/manager';
1515import PIOHome from './home' ;
1616import PIOTerminal from './terminal' ;
1717import PIOToolbar from './toolbar' ;
18- import ProjectObservable from './project/observable ' ;
18+ import ProjectManager from './project/manager ' ;
1919import QuickAccessTreeProvider from './views/quick-access-tree' ;
2020import fs from 'fs-plus' ;
2121import { 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
Original file line number Diff line number Diff line change 99import * as pioNodeHelpers from 'platformio-node-helpers' ;
1010import * as projectHelpers from './helpers' ;
1111
12+ import { disposeSubscriptions , notifyError } from '../utils' ;
1213import ProjectTaskManager from './tasks' ;
1314import ProjectTestManager from './tests' ;
1415import { STATUS_BAR_PRIORITY_START } from '../constants' ;
1516import { extension } from '../main' ;
16- import { notifyError } from '../utils' ;
1717import path from 'path' ;
1818import 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 ( ) {
You can’t perform that action at this time.
0 commit comments