|
@ -33,7 +33,7 @@ import { |
|
|
} from './plus/webviews/graph/registration'; |
|
|
} from './plus/webviews/graph/registration'; |
|
|
import { GraphStatusBarController } from './plus/webviews/graph/statusbar'; |
|
|
import { GraphStatusBarController } from './plus/webviews/graph/statusbar'; |
|
|
import { registerTimelineWebviewPanel, registerTimelineWebviewView } from './plus/webviews/timeline/registration'; |
|
|
import { registerTimelineWebviewPanel, registerTimelineWebviewView } from './plus/webviews/timeline/registration'; |
|
|
import { WorkspacesService } from './plus/workspaces/workspacesService'; |
|
|
|
|
|
|
|
|
import { scheduleAddMissingCurrentWorkspaceRepos, WorkspacesService } from './plus/workspaces/workspacesService'; |
|
|
import { StatusBarController } from './statusbar/statusBarController'; |
|
|
import { StatusBarController } from './statusbar/statusBarController'; |
|
|
import { executeCommand } from './system/command'; |
|
|
import { executeCommand } from './system/command'; |
|
|
import { configuration } from './system/configuration'; |
|
|
import { configuration } from './system/configuration'; |
|
@ -166,6 +166,7 @@ export class Container { |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
private readonly _connection: ServerConnection; |
|
|
private _disposables: Disposable[]; |
|
|
private _disposables: Disposable[]; |
|
|
private _terminalLinks: GitTerminalLinkProvider | undefined; |
|
|
private _terminalLinks: GitTerminalLinkProvider | undefined; |
|
|
private _webviews: WebviewsController; |
|
|
private _webviews: WebviewsController; |
|
@ -191,16 +192,15 @@ export class Container { |
|
|
|
|
|
|
|
|
this._richRemoteProviders = new RichRemoteProviderService(this); |
|
|
this._richRemoteProviders = new RichRemoteProviderService(this); |
|
|
|
|
|
|
|
|
const connection = new ServerConnection(this); |
|
|
|
|
|
this._disposables.push(connection); |
|
|
|
|
|
|
|
|
this._disposables.push((this._connection = new ServerConnection(this))); |
|
|
|
|
|
|
|
|
this._disposables.push((this._accountAuthentication = new AccountAuthenticationProvider(this, connection))); |
|
|
|
|
|
this._disposables.push((this._subscription = new SubscriptionService(this, connection, previousVersion))); |
|
|
|
|
|
this._disposables.push((this._workspaces = new WorkspacesService(this, connection))); |
|
|
|
|
|
|
|
|
this._disposables.push( |
|
|
|
|
|
(this._accountAuthentication = new AccountAuthenticationProvider(this, this._connection)), |
|
|
|
|
|
); |
|
|
|
|
|
this._disposables.push((this._subscription = new SubscriptionService(this, this._connection, previousVersion))); |
|
|
|
|
|
|
|
|
this._disposables.push((this._git = new GitProviderService(this))); |
|
|
this._disposables.push((this._git = new GitProviderService(this))); |
|
|
this._disposables.push(new GitFileSystemProvider(this)); |
|
|
this._disposables.push(new GitFileSystemProvider(this)); |
|
|
this._disposables.push((this._repositoryPathMapping = getSupportedRepositoryPathMappingProvider(this))); |
|
|
|
|
|
|
|
|
|
|
|
this._disposables.push((this._uri = new UriService(this))); |
|
|
this._disposables.push((this._uri = new UriService(this))); |
|
|
|
|
|
|
|
@ -212,7 +212,6 @@ export class Container { |
|
|
this._disposables.push((this._keyboard = new Keyboard())); |
|
|
this._disposables.push((this._keyboard = new Keyboard())); |
|
|
this._disposables.push((this._vsls = new VslsController(this))); |
|
|
this._disposables.push((this._vsls = new VslsController(this))); |
|
|
this._disposables.push((this._eventBus = new EventBus())); |
|
|
this._disposables.push((this._eventBus = new EventBus())); |
|
|
this._disposables.push((this._ai = new AIProviderService(this))); |
|
|
|
|
|
|
|
|
|
|
|
this._disposables.push((this._fileAnnotationController = new FileAnnotationController(this))); |
|
|
this._disposables.push((this._fileAnnotationController = new FileAnnotationController(this))); |
|
|
this._disposables.push((this._lineAnnotationController = new LineAnnotationController(this))); |
|
|
this._disposables.push((this._lineAnnotationController = new LineAnnotationController(this))); |
|
@ -274,6 +273,8 @@ export class Container { |
|
|
context.subscriptions.push({ |
|
|
context.subscriptions.push({ |
|
|
dispose: () => this._disposables.reverse().forEach(d => void d.dispose()), |
|
|
dispose: () => this._disposables.reverse().forEach(d => void d.dispose()), |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
scheduleAddMissingCurrentWorkspaceRepos(this); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
deactivate() { |
|
|
deactivate() { |
|
@ -334,8 +335,11 @@ export class Container { |
|
|
return this._actionRunners; |
|
|
return this._actionRunners; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private readonly _ai: AIProviderService; |
|
|
|
|
|
|
|
|
private _ai: AIProviderService | undefined; |
|
|
get ai() { |
|
|
get ai() { |
|
|
|
|
|
if (this._ai == null) { |
|
|
|
|
|
this._disposables.push((this._ai = new AIProviderService(this))); |
|
|
|
|
|
} |
|
|
return this._ai; |
|
|
return this._ai; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -529,8 +533,11 @@ export class Container { |
|
|
return this._lineTracker; |
|
|
return this._lineTracker; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private readonly _repositoryPathMapping: RepositoryPathMappingProvider; |
|
|
|
|
|
|
|
|
private _repositoryPathMapping: RepositoryPathMappingProvider | undefined; |
|
|
get repositoryPathMapping() { |
|
|
get repositoryPathMapping() { |
|
|
|
|
|
if (this._repositoryPathMapping == null) { |
|
|
|
|
|
this._disposables.push((this._repositoryPathMapping = getSupportedRepositoryPathMappingProvider(this))); |
|
|
|
|
|
} |
|
|
return this._repositoryPathMapping; |
|
|
return this._repositoryPathMapping; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -632,8 +639,11 @@ export class Container { |
|
|
return this._vsls; |
|
|
return this._vsls; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private _workspaces: WorkspacesService; |
|
|
|
|
|
|
|
|
private _workspaces: WorkspacesService | undefined; |
|
|
get workspaces() { |
|
|
get workspaces() { |
|
|
|
|
|
if (this._workspaces == null) { |
|
|
|
|
|
this._disposables.push((this._workspaces = new WorkspacesService(this, this._connection))); |
|
|
|
|
|
} |
|
|
return this._workspaces; |
|
|
return this._workspaces; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|