@codingame/monaco-vscode-xterm-common 37.2.0 → 37.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +39 -39
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollContribution.js +3 -3
- package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.d.ts +0 -11
- package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +0 -26
- package/vscode/src/vs/platform/terminal/common/environmentVariable.d.ts +0 -86
- package/vscode/src/vs/platform/terminal/common/environmentVariable.js +0 -10
- package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.d.ts +0 -17
- package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.js +0 -218
- package/vscode/src/vs/platform/terminal/common/terminalRecorder.d.ts +0 -14
- package/vscode/src/vs/platform/terminal/common/terminalRecorder.js +0 -84
- package/vscode/src/vs/workbench/contrib/terminal/browser/agentHostOutputChannel.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/terminal/browser/agentHostOutputChannel.js +0 -48
- package/vscode/src/vs/workbench/contrib/terminal/browser/agentHostPty.d.ts +0 -129
- package/vscode/src/vs/workbench/contrib/terminal/browser/agentHostPty.js +0 -439
- package/vscode/src/vs/workbench/contrib/terminal/browser/agentHostTerminalService.d.ts +0 -77
- package/vscode/src/vs/workbench/contrib/terminal/browser/agentHostTerminalService.js +0 -345
- package/vscode/src/vs/workbench/contrib/terminal/browser/ahpTerminalCommandSource.d.ts +0 -111
- package/vscode/src/vs/workbench/contrib/terminal/browser/ahpTerminalCommandSource.js +0 -138
- package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.d.ts +0 -28
- package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +0 -119
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.d.ts +0 -104
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +0 -1643
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +0 -54
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIconPicker.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIconPicker.js +0 -78
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.d.ts +0 -144
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +0 -806
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalResizeDebouncer.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalResizeDebouncer.js +0 -83
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.d.ts +0 -57
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.js +0 -139
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabsList.d.ts +0 -45
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabsList.js +0 -804
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTooltip.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTooltip.js +0 -75
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +0 -61
- package/vscode/src/vs/workbench/contrib/terminal/common/basePty.d.ts +0 -38
- package/vscode/src/vs/workbench/contrib/terminal/common/basePty.js +0 -127
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.d.ts +0 -38
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +0 -321
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStorageKeys.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStorageKeys.js +0 -17
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/media/stickyScroll.css +0 -49
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollColorRegistry.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollColorRegistry.js +0 -25
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollOverlay.d.ts +0 -58
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollOverlay.js +0 -462
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import type { XtermTerminal } from "@codingame/monaco-vscode-xterm-addons-common/vscode/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal";
|
|
3
|
-
export declare class TerminalResizeDebouncer extends Disposable {
|
|
4
|
-
private readonly _isVisible;
|
|
5
|
-
private readonly _getXterm;
|
|
6
|
-
private readonly _resizeBothCallback;
|
|
7
|
-
private readonly _resizeXCallback;
|
|
8
|
-
private readonly _resizeYCallback;
|
|
9
|
-
private _latestX;
|
|
10
|
-
private _latestY;
|
|
11
|
-
private readonly _resizeXJob;
|
|
12
|
-
private readonly _resizeYJob;
|
|
13
|
-
private readonly _debounceResizeXScheduler;
|
|
14
|
-
constructor(_isVisible: () => boolean, _getXterm: () => XtermTerminal | undefined, _resizeBothCallback: (cols: number, rows: number) => void, _resizeXCallback: (cols: number) => void, _resizeYCallback: (rows: number) => void);
|
|
15
|
-
resize(cols: number, rows: number, immediate: boolean): Promise<void>;
|
|
16
|
-
flush(): void;
|
|
17
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { getWindow, runWhenWindowIdle } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
|
-
import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
4
|
-
import { Disposable, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
|
-
|
|
6
|
-
var Constants;
|
|
7
|
-
(function(Constants) {
|
|
8
|
-
Constants[Constants["StartDebouncingThreshold"] = 200] = "StartDebouncingThreshold";
|
|
9
|
-
Constants[Constants["DebounceResizeXDelay"] = 100] = "DebounceResizeXDelay";
|
|
10
|
-
})(Constants || (Constants = {}));
|
|
11
|
-
class TerminalResizeDebouncer extends Disposable {
|
|
12
|
-
constructor(
|
|
13
|
-
_isVisible,
|
|
14
|
-
_getXterm,
|
|
15
|
-
_resizeBothCallback,
|
|
16
|
-
_resizeXCallback,
|
|
17
|
-
_resizeYCallback
|
|
18
|
-
) {
|
|
19
|
-
super();
|
|
20
|
-
this._isVisible = _isVisible;
|
|
21
|
-
this._getXterm = _getXterm;
|
|
22
|
-
this._resizeBothCallback = _resizeBothCallback;
|
|
23
|
-
this._resizeXCallback = _resizeXCallback;
|
|
24
|
-
this._resizeYCallback = _resizeYCallback;
|
|
25
|
-
this._latestX = 0;
|
|
26
|
-
this._latestY = 0;
|
|
27
|
-
this._resizeXJob = this._register(( new MutableDisposable()));
|
|
28
|
-
this._resizeYJob = this._register(( new MutableDisposable()));
|
|
29
|
-
this._debounceResizeXScheduler = this._register(( new RunOnceScheduler(() => this._resizeXCallback(this._latestX), Constants.DebounceResizeXDelay)));
|
|
30
|
-
}
|
|
31
|
-
async resize(cols, rows, immediate) {
|
|
32
|
-
if (this._store.isDisposed) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
this._latestX = cols;
|
|
36
|
-
this._latestY = rows;
|
|
37
|
-
if (immediate || this._getXterm().raw.buffer.normal.length < Constants.StartDebouncingThreshold) {
|
|
38
|
-
this._resizeXJob.clear();
|
|
39
|
-
this._resizeYJob.clear();
|
|
40
|
-
this._debounceResizeXScheduler.cancel();
|
|
41
|
-
this._resizeBothCallback(cols, rows);
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
const win = getWindow(this._getXterm().raw.element);
|
|
45
|
-
if (win && !this._isVisible()) {
|
|
46
|
-
if (!this._resizeXJob.value) {
|
|
47
|
-
this._resizeXJob.value = runWhenWindowIdle(win, async () => {
|
|
48
|
-
if (this._store.isDisposed) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
this._resizeXCallback(this._latestX);
|
|
52
|
-
this._resizeXJob.clear();
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
if (!this._resizeYJob.value) {
|
|
56
|
-
this._resizeYJob.value = runWhenWindowIdle(win, async () => {
|
|
57
|
-
if (this._store.isDisposed) {
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
this._resizeYCallback(this._latestY);
|
|
61
|
-
this._resizeYJob.clear();
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
this._resizeYCallback(rows);
|
|
67
|
-
this._latestX = cols;
|
|
68
|
-
this._debounceResizeXScheduler.schedule();
|
|
69
|
-
}
|
|
70
|
-
flush() {
|
|
71
|
-
if (this._store.isDisposed) {
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
if (this._resizeXJob.value || this._resizeYJob.value || this._debounceResizeXScheduler.isScheduled()) {
|
|
75
|
-
this._resizeXJob.clear();
|
|
76
|
-
this._resizeYJob.clear();
|
|
77
|
-
this._debounceResizeXScheduler.cancel();
|
|
78
|
-
this._resizeBothCallback(this._latestX, this._latestY);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export { TerminalResizeDebouncer };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
|
-
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
-
import Severity from "@codingame/monaco-vscode-api/vscode/vs/base/common/severity";
|
|
4
|
-
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
5
|
-
import { ITerminalStatus } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/common/terminal";
|
|
6
|
-
/**
|
|
7
|
-
* The set of _internal_ terminal statuses, other components building on the terminal should put
|
|
8
|
-
* their statuses within their component.
|
|
9
|
-
*/
|
|
10
|
-
export declare enum TerminalStatus {
|
|
11
|
-
Bell = "bell",
|
|
12
|
-
Disconnected = "disconnected",
|
|
13
|
-
RelaunchNeeded = "relaunch-needed",
|
|
14
|
-
EnvironmentVariableInfoChangesActive = "env-var-info-changes-active",
|
|
15
|
-
ShellIntegrationInfo = "shell-integration-info",
|
|
16
|
-
ShellIntegrationAttentionNeeded = "shell-integration-attention-needed"
|
|
17
|
-
}
|
|
18
|
-
export interface ITerminalStatusList {
|
|
19
|
-
/** Gets the most recent, highest severity status. */
|
|
20
|
-
readonly primary: ITerminalStatus | undefined;
|
|
21
|
-
/** Gets all active statues. */
|
|
22
|
-
readonly statuses: ITerminalStatus[];
|
|
23
|
-
readonly onDidAddStatus: Event<ITerminalStatus>;
|
|
24
|
-
readonly onDidRemoveStatus: Event<ITerminalStatus>;
|
|
25
|
-
readonly onDidChangePrimaryStatus: Event<ITerminalStatus | undefined>;
|
|
26
|
-
/**
|
|
27
|
-
* Adds a status to the list.
|
|
28
|
-
* @param status The status object. Ideally a single status object that does not change will be
|
|
29
|
-
* shared as this call will no-op if the status is already set (checked by by object reference).
|
|
30
|
-
* @param duration An optional duration in milliseconds of the status, when specified the status
|
|
31
|
-
* will remove itself when the duration elapses unless the status gets re-added.
|
|
32
|
-
*/
|
|
33
|
-
add(status: ITerminalStatus, duration?: number): void;
|
|
34
|
-
remove(status: ITerminalStatus): void;
|
|
35
|
-
remove(statusId: string): void;
|
|
36
|
-
toggle(status: ITerminalStatus, value: boolean): void;
|
|
37
|
-
}
|
|
38
|
-
export declare class TerminalStatusList extends Disposable implements ITerminalStatusList {
|
|
39
|
-
private readonly _configurationService;
|
|
40
|
-
private readonly _statuses;
|
|
41
|
-
private readonly _statusTimeouts;
|
|
42
|
-
private readonly _onDidAddStatus;
|
|
43
|
-
get onDidAddStatus(): Event<ITerminalStatus>;
|
|
44
|
-
private readonly _onDidRemoveStatus;
|
|
45
|
-
get onDidRemoveStatus(): Event<ITerminalStatus>;
|
|
46
|
-
private readonly _onDidChangePrimaryStatus;
|
|
47
|
-
get onDidChangePrimaryStatus(): Event<ITerminalStatus | undefined>;
|
|
48
|
-
constructor(_configurationService: IConfigurationService);
|
|
49
|
-
get primary(): ITerminalStatus | undefined;
|
|
50
|
-
get statuses(): ITerminalStatus[];
|
|
51
|
-
add(status: ITerminalStatus, duration?: number): void;
|
|
52
|
-
remove(status: ITerminalStatus): void;
|
|
53
|
-
remove(statusId: string): void;
|
|
54
|
-
toggle(status: ITerminalStatus, value: boolean): void;
|
|
55
|
-
private _applyAnimationSetting;
|
|
56
|
-
}
|
|
57
|
-
export declare function getColorForSeverity(severity: Severity): string;
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
4
|
-
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
5
|
-
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
-
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
7
|
-
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
8
|
-
import { TerminalSettingId } from '@codingame/monaco-vscode-api/vscode/vs/platform/terminal/common/terminal';
|
|
9
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
|
|
10
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/baseColors';
|
|
11
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/chartsColors';
|
|
12
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/editorColors';
|
|
13
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/inputColors';
|
|
14
|
-
import { listWarningForeground, listErrorForeground } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/listColors';
|
|
15
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/menuColors';
|
|
16
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/minimapColors';
|
|
17
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/miscColors';
|
|
18
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
19
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
20
|
-
import { spinningLoading } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
|
|
21
|
-
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
22
|
-
import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
|
|
23
|
-
import { isString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
24
|
-
|
|
25
|
-
var TerminalStatus;
|
|
26
|
-
(function(TerminalStatus) {
|
|
27
|
-
TerminalStatus["Bell"] = "bell";
|
|
28
|
-
TerminalStatus["Disconnected"] = "disconnected";
|
|
29
|
-
TerminalStatus["RelaunchNeeded"] = "relaunch-needed";
|
|
30
|
-
TerminalStatus["EnvironmentVariableInfoChangesActive"] = "env-var-info-changes-active";
|
|
31
|
-
TerminalStatus["ShellIntegrationInfo"] = "shell-integration-info";
|
|
32
|
-
TerminalStatus["ShellIntegrationAttentionNeeded"] = "shell-integration-attention-needed";
|
|
33
|
-
})(TerminalStatus || (TerminalStatus = {}));
|
|
34
|
-
let TerminalStatusList = class TerminalStatusList extends Disposable {
|
|
35
|
-
get onDidAddStatus() {
|
|
36
|
-
return this._onDidAddStatus.event;
|
|
37
|
-
}
|
|
38
|
-
get onDidRemoveStatus() {
|
|
39
|
-
return this._onDidRemoveStatus.event;
|
|
40
|
-
}
|
|
41
|
-
get onDidChangePrimaryStatus() {
|
|
42
|
-
return this._onDidChangePrimaryStatus.event;
|
|
43
|
-
}
|
|
44
|
-
constructor(_configurationService) {
|
|
45
|
-
super();
|
|
46
|
-
this._configurationService = _configurationService;
|
|
47
|
-
this._statuses = ( new Map());
|
|
48
|
-
this._statusTimeouts = ( new Map());
|
|
49
|
-
this._onDidAddStatus = this._register(( new Emitter()));
|
|
50
|
-
this._onDidRemoveStatus = this._register(( new Emitter()));
|
|
51
|
-
this._onDidChangePrimaryStatus = this._register(( new Emitter()));
|
|
52
|
-
}
|
|
53
|
-
get primary() {
|
|
54
|
-
let result;
|
|
55
|
-
for (const s of ( this._statuses.values())) {
|
|
56
|
-
if (!result || s.severity >= result.severity) {
|
|
57
|
-
if (s.icon || !result?.icon) {
|
|
58
|
-
result = s;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return result;
|
|
63
|
-
}
|
|
64
|
-
get statuses() {
|
|
65
|
-
return Array.from(( this._statuses.values()));
|
|
66
|
-
}
|
|
67
|
-
add(status, duration) {
|
|
68
|
-
status = this._applyAnimationSetting(status);
|
|
69
|
-
const outTimeout = this._statusTimeouts.get(status.id);
|
|
70
|
-
if (outTimeout) {
|
|
71
|
-
mainWindow.clearTimeout(outTimeout);
|
|
72
|
-
this._statusTimeouts.delete(status.id);
|
|
73
|
-
}
|
|
74
|
-
if (duration && duration > 0) {
|
|
75
|
-
const timeout = mainWindow.setTimeout(() => this.remove(status), duration);
|
|
76
|
-
this._statusTimeouts.set(status.id, timeout);
|
|
77
|
-
}
|
|
78
|
-
const existingStatus = this._statuses.get(status.id);
|
|
79
|
-
if (existingStatus && existingStatus !== status) {
|
|
80
|
-
this._onDidRemoveStatus.fire(existingStatus);
|
|
81
|
-
this._statuses.delete(existingStatus.id);
|
|
82
|
-
}
|
|
83
|
-
if (!( this._statuses.has(status.id))) {
|
|
84
|
-
const oldPrimary = this.primary;
|
|
85
|
-
this._statuses.set(status.id, status);
|
|
86
|
-
this._onDidAddStatus.fire(status);
|
|
87
|
-
const newPrimary = this.primary;
|
|
88
|
-
if (oldPrimary !== newPrimary) {
|
|
89
|
-
this._onDidChangePrimaryStatus.fire(newPrimary);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
remove(statusOrId) {
|
|
94
|
-
const status = isString(statusOrId) ? this._statuses.get(statusOrId) : statusOrId;
|
|
95
|
-
if (status && this._statuses.get(status.id)) {
|
|
96
|
-
const wasPrimary = this.primary?.id === status.id;
|
|
97
|
-
this._statuses.delete(status.id);
|
|
98
|
-
this._onDidRemoveStatus.fire(status);
|
|
99
|
-
if (wasPrimary) {
|
|
100
|
-
this._onDidChangePrimaryStatus.fire(this.primary);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
toggle(status, value) {
|
|
105
|
-
if (value) {
|
|
106
|
-
this.add(status);
|
|
107
|
-
} else {
|
|
108
|
-
this.remove(status);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
_applyAnimationSetting(status) {
|
|
112
|
-
if (!status.icon || ThemeIcon.getModifier(status.icon) !== "spin" || this._configurationService.getValue(TerminalSettingId.TabsEnableAnimation)) {
|
|
113
|
-
return status;
|
|
114
|
-
}
|
|
115
|
-
let icon;
|
|
116
|
-
if (status.icon.id === spinningLoading.id) {
|
|
117
|
-
icon = Codicon.play;
|
|
118
|
-
} else {
|
|
119
|
-
icon = ThemeIcon.modify(status.icon, undefined);
|
|
120
|
-
}
|
|
121
|
-
return {
|
|
122
|
-
...status,
|
|
123
|
-
icon
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
TerminalStatusList = ( __decorate([( __param(0, IConfigurationService))], TerminalStatusList));
|
|
128
|
-
function getColorForSeverity(severity) {
|
|
129
|
-
switch (severity) {
|
|
130
|
-
case Severity.Error:
|
|
131
|
-
return listErrorForeground;
|
|
132
|
-
case Severity.Warning:
|
|
133
|
-
return listWarningForeground;
|
|
134
|
-
default:
|
|
135
|
-
return "";
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export { TerminalStatus, TerminalStatusList, getColorForSeverity };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { WorkbenchList } from "@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService";
|
|
2
|
-
import { IListService } from "@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService.service";
|
|
3
|
-
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
4
|
-
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
5
|
-
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
6
|
-
import { ITerminalInstance } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal";
|
|
7
|
-
import { ITerminalGroupService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
8
|
-
import { ITerminalEditingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
9
|
-
import { ITerminalService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
10
|
-
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
11
|
-
import { IDecorationsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/decorations/common/decorations.service";
|
|
12
|
-
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
13
|
-
import { ILifecycleService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
|
|
14
|
-
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
15
|
-
export declare enum TerminalTabsListSizes {
|
|
16
|
-
TabHeight = 22,
|
|
17
|
-
NarrowViewWidth = 46,
|
|
18
|
-
WideViewMinimumWidth = 80,
|
|
19
|
-
DefaultWidth = 120,
|
|
20
|
-
MidpointViewWidth = 63,
|
|
21
|
-
ActionbarMinimumWidth = 105,
|
|
22
|
-
MaximumWidth = 500
|
|
23
|
-
}
|
|
24
|
-
export declare class TerminalTabList extends WorkbenchList<ITerminalInstance> {
|
|
25
|
-
private readonly _configurationService;
|
|
26
|
-
private readonly _terminalService;
|
|
27
|
-
private readonly _terminalGroupService;
|
|
28
|
-
private readonly _terminalEditingService;
|
|
29
|
-
private readonly _themeService;
|
|
30
|
-
private readonly _storageService;
|
|
31
|
-
private readonly _hoverService;
|
|
32
|
-
private _decorationsProvider;
|
|
33
|
-
private _terminalTabsSingleSelectedContextKey;
|
|
34
|
-
private _isSplitContextKey;
|
|
35
|
-
private _hasText;
|
|
36
|
-
get hasText(): boolean;
|
|
37
|
-
private _hasActionBar;
|
|
38
|
-
get hasActionBar(): boolean;
|
|
39
|
-
constructor(container: HTMLElement, contextKeyService: IContextKeyService, listService: IListService, _configurationService: IConfigurationService, _terminalService: ITerminalService, _terminalGroupService: ITerminalGroupService, _terminalEditingService: ITerminalEditingService, instantiationService: IInstantiationService, decorationsService: IDecorationsService, _themeService: IThemeService, _storageService: IStorageService, lifecycleService: ILifecycleService, _hoverService: IHoverService);
|
|
40
|
-
private _getFocusMode;
|
|
41
|
-
refresh(cancelEditing?: boolean): void;
|
|
42
|
-
focusHover(): void;
|
|
43
|
-
private _updateContextKey;
|
|
44
|
-
layout(height?: number, width?: number): void;
|
|
45
|
-
}
|