|
|
@ -330,6 +330,11 @@ export class Container { |
|
|
|
return this._accountAuthentication; |
|
|
|
} |
|
|
|
|
|
|
|
private readonly _accountView: WebviewViewProxy; |
|
|
|
get accountView() { |
|
|
|
return this._accountView; |
|
|
|
} |
|
|
|
|
|
|
|
private readonly _actionRunners: ActionRunners; |
|
|
|
get actionRunners() { |
|
|
|
return this._actionRunners; |
|
|
@ -396,6 +401,11 @@ export class Container { |
|
|
|
return this._context.extensionMode === ExtensionMode.Development; |
|
|
|
} |
|
|
|
|
|
|
|
private readonly _deepLinks: DeepLinkService; |
|
|
|
get deepLinks() { |
|
|
|
return this._deepLinks; |
|
|
|
} |
|
|
|
|
|
|
|
@memoize() |
|
|
|
get env(): Environment { |
|
|
|
if (this.prereleaseOrDebugging) { |
|
|
@ -422,21 +432,6 @@ export class Container { |
|
|
|
return this._fileHistoryView; |
|
|
|
} |
|
|
|
|
|
|
|
private readonly _git: GitProviderService; |
|
|
|
get git() { |
|
|
|
return this._git; |
|
|
|
} |
|
|
|
|
|
|
|
private readonly _uri: UriService; |
|
|
|
get uri() { |
|
|
|
return this._uri; |
|
|
|
} |
|
|
|
|
|
|
|
private readonly _deepLinks: DeepLinkService; |
|
|
|
get deepLinks() { |
|
|
|
return this._deepLinks; |
|
|
|
} |
|
|
|
|
|
|
|
private _focus: FocusService | undefined; |
|
|
|
get focus() { |
|
|
|
if (this._focus == null) { |
|
|
@ -446,6 +441,11 @@ export class Container { |
|
|
|
return this._focus; |
|
|
|
} |
|
|
|
|
|
|
|
private readonly _git: GitProviderService; |
|
|
|
get git() { |
|
|
|
return this._git; |
|
|
|
} |
|
|
|
|
|
|
|
private _github: Promise<import('./plus/github/github').GitHubApi | undefined> | undefined; |
|
|
|
get github() { |
|
|
|
if (this._github == null) { |
|
|
@ -502,11 +502,6 @@ export class Container { |
|
|
|
return this._homeView; |
|
|
|
} |
|
|
|
|
|
|
|
private readonly _accountView: WebviewViewProxy; |
|
|
|
get accountView() { |
|
|
|
return this._accountView; |
|
|
|
} |
|
|
|
|
|
|
|
@memoize() |
|
|
|
get id() { |
|
|
|
return this._context.extension.id; |
|
|
@ -551,6 +546,14 @@ export class Container { |
|
|
|
return this._lineTracker; |
|
|
|
} |
|
|
|
|
|
|
|
private _mode: ModeConfig | undefined; |
|
|
|
get mode() { |
|
|
|
if (this._mode == null) { |
|
|
|
this._mode = configuration.get('modes')?.[configuration.get('mode.active')]; |
|
|
|
} |
|
|
|
return this._mode; |
|
|
|
} |
|
|
|
|
|
|
|
private readonly _prerelease; |
|
|
|
get prerelease() { |
|
|
|
return this._prerelease; |
|
|
@ -637,6 +640,11 @@ export class Container { |
|
|
|
return this._tracker; |
|
|
|
} |
|
|
|
|
|
|
|
private readonly _uri: UriService; |
|
|
|
get uri() { |
|
|
|
return this._uri; |
|
|
|
} |
|
|
|
|
|
|
|
private readonly _usage: UsageTracker; |
|
|
|
get usage(): UsageTracker { |
|
|
|
return this._usage; |
|
|
@ -678,14 +686,6 @@ export class Container { |
|
|
|
return this._worktreesView; |
|
|
|
} |
|
|
|
|
|
|
|
private _mode: ModeConfig | undefined; |
|
|
|
get mode() { |
|
|
|
if (this._mode == null) { |
|
|
|
this._mode = configuration.get('modes')?.[configuration.get('mode.active')]; |
|
|
|
} |
|
|
|
return this._mode; |
|
|
|
} |
|
|
|
|
|
|
|
private ensureModeApplied() { |
|
|
|
const mode = this.mode; |
|
|
|
if (mode == null) { |
|
|
|