@codingame/monaco-vscode-xterm-common 24.1.0
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/empty.js +1 -0
- package/package.json +45 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.d.ts +11 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +26 -0
- package/vscode/src/vs/platform/terminal/common/environmentVariable.d.ts +86 -0
- package/vscode/src/vs/platform/terminal/common/environmentVariable.js +10 -0
- package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.d.ts +17 -0
- package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.js +214 -0
- package/vscode/src/vs/platform/terminal/common/terminalRecorder.d.ts +14 -0
- package/vscode/src/vs/platform/terminal/common/terminalRecorder.js +75 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +125 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.d.ts +104 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +1554 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +45 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIconPicker.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIconPicker.js +82 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.d.ts +408 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +2338 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.d.ts +143 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +684 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalResizeDebouncer.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalResizeDebouncer.js +68 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.js +135 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabsList.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabsList.js +754 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTooltip.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTooltip.js +112 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +59 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +319 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStorageKeys.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStorageKeys.js +17 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +69 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/media/stickyScroll.css +49 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollColorRegistry.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollColorRegistry.js +25 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollContribution.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollContribution.js +117 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollOverlay.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollOverlay.js +428 -0
|
@@ -0,0 +1,143 @@
|
|
|
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 { OperatingSystem } from "@codingame/monaco-vscode-api/vscode/vs/base/common/platform";
|
|
4
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
5
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
6
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
7
|
+
import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
|
|
8
|
+
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
9
|
+
import { ISerializedCommandDetectionCapability } from "@codingame/monaco-vscode-api/vscode/vs/platform/terminal/common/capabilities/capabilities";
|
|
10
|
+
import { TerminalCapabilityStore } from "@codingame/monaco-vscode-api/vscode/vs/platform/terminal/common/capabilities/terminalCapabilityStore";
|
|
11
|
+
import { ITerminalLaunchResult, IProcessDataEvent, IProcessProperty, IProcessPropertyMap, IProcessReadyEvent, IReconnectionProperties, IShellLaunchConfig, ITerminalBackend, ITerminalLaunchError, ProcessPropertyType } from "@codingame/monaco-vscode-api/vscode/vs/platform/terminal/common/terminal";
|
|
12
|
+
import { ITerminalLogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/terminal/common/terminal.service";
|
|
13
|
+
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
14
|
+
import { ITerminalInstanceService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
15
|
+
import { ITerminalConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
16
|
+
import { ITerminalService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
17
|
+
import { IEnvironmentVariableInfo } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/common/environmentVariable";
|
|
18
|
+
import { IEnvironmentVariableService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/common/environmentVariable.service";
|
|
19
|
+
import { IBeforeProcessDataEvent, ITerminalProcessManager, ProcessState } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/common/terminal";
|
|
20
|
+
import { ITerminalProfileResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/common/terminal.service";
|
|
21
|
+
import { IConfigurationResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/configurationResolver/common/configurationResolver.service";
|
|
22
|
+
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
23
|
+
import { IHistoryService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/history/common/history.service";
|
|
24
|
+
import { IPathService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service";
|
|
25
|
+
import { IRemoteAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service";
|
|
26
|
+
import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
|
|
27
|
+
import { IEnvironmentVariableCollection, IMergedEnvironmentVariableCollection } from "../../../../platform/terminal/common/environmentVariable.js";
|
|
28
|
+
import { IAccessibilityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility.service";
|
|
29
|
+
/**
|
|
30
|
+
* Holds all state related to the creation and management of terminal processes.
|
|
31
|
+
*
|
|
32
|
+
* Internal definitions:
|
|
33
|
+
* - Process: The process launched with the terminalProcess.ts file, or the pty as a whole
|
|
34
|
+
* - Pty Process: The pseudoterminal parent process (or the conpty/winpty agent process)
|
|
35
|
+
* - Shell Process: The pseudoterminal child process (ie. the shell)
|
|
36
|
+
*/
|
|
37
|
+
export declare class TerminalProcessManager extends Disposable implements ITerminalProcessManager {
|
|
38
|
+
private readonly _instanceId;
|
|
39
|
+
private readonly _historyService;
|
|
40
|
+
private readonly _instantiationService;
|
|
41
|
+
private readonly _logService;
|
|
42
|
+
private readonly _workspaceContextService;
|
|
43
|
+
private readonly _configurationResolverService;
|
|
44
|
+
private readonly _workbenchEnvironmentService;
|
|
45
|
+
private readonly _productService;
|
|
46
|
+
private readonly _remoteAgentService;
|
|
47
|
+
private readonly _pathService;
|
|
48
|
+
private readonly _environmentVariableService;
|
|
49
|
+
private readonly _terminalConfigurationService;
|
|
50
|
+
private readonly _terminalProfileResolverService;
|
|
51
|
+
private readonly _configurationService;
|
|
52
|
+
private readonly _terminalInstanceService;
|
|
53
|
+
private readonly _telemetryService;
|
|
54
|
+
private readonly _notificationService;
|
|
55
|
+
private readonly _accessibilityService;
|
|
56
|
+
private readonly _terminalService;
|
|
57
|
+
processState: ProcessState;
|
|
58
|
+
ptyProcessReady: Promise<void>;
|
|
59
|
+
shellProcessId: number | undefined;
|
|
60
|
+
readonly remoteAuthority: string | undefined;
|
|
61
|
+
os: OperatingSystem | undefined;
|
|
62
|
+
userHome: string | undefined;
|
|
63
|
+
environmentVariableInfo: IEnvironmentVariableInfo | undefined;
|
|
64
|
+
backend: ITerminalBackend | undefined;
|
|
65
|
+
readonly capabilities: TerminalCapabilityStore;
|
|
66
|
+
readonly shellIntegrationNonce: string;
|
|
67
|
+
processReadyTimestamp: number;
|
|
68
|
+
private _isDisposed;
|
|
69
|
+
private _process;
|
|
70
|
+
private _processType;
|
|
71
|
+
private _preLaunchInputQueue;
|
|
72
|
+
private _initialCwd;
|
|
73
|
+
private _extEnvironmentVariableCollection;
|
|
74
|
+
private _ackDataBufferer;
|
|
75
|
+
private _hasWrittenData;
|
|
76
|
+
private _hasChildProcesses;
|
|
77
|
+
private _ptyResponsiveListener;
|
|
78
|
+
private _ptyListenersAttached;
|
|
79
|
+
private _dataFilter;
|
|
80
|
+
private _processListeners?;
|
|
81
|
+
private _isDisconnected;
|
|
82
|
+
private _processTraits;
|
|
83
|
+
private _shellLaunchConfig?;
|
|
84
|
+
private _dimensions;
|
|
85
|
+
private readonly _onPtyDisconnect;
|
|
86
|
+
readonly onPtyDisconnect: Event<void>;
|
|
87
|
+
private readonly _onPtyReconnect;
|
|
88
|
+
readonly onPtyReconnect: Event<void>;
|
|
89
|
+
private readonly _onProcessReady;
|
|
90
|
+
readonly onProcessReady: Event<IProcessReadyEvent>;
|
|
91
|
+
private readonly _onProcessStateChange;
|
|
92
|
+
readonly onProcessStateChange: Event<void>;
|
|
93
|
+
private readonly _onBeforeProcessData;
|
|
94
|
+
readonly onBeforeProcessData: Event<IBeforeProcessDataEvent>;
|
|
95
|
+
private readonly _onProcessData;
|
|
96
|
+
readonly onProcessData: Event<IProcessDataEvent>;
|
|
97
|
+
private readonly _onProcessReplayComplete;
|
|
98
|
+
readonly onProcessReplayComplete: Event<void>;
|
|
99
|
+
private readonly _onDidChangeProperty;
|
|
100
|
+
readonly onDidChangeProperty: Event<IProcessProperty<ProcessPropertyType>>;
|
|
101
|
+
private readonly _onEnvironmentVariableInfoChange;
|
|
102
|
+
readonly onEnvironmentVariableInfoChanged: Event<IEnvironmentVariableInfo>;
|
|
103
|
+
private readonly _onProcessExit;
|
|
104
|
+
readonly onProcessExit: Event<number | undefined>;
|
|
105
|
+
private readonly _onRestoreCommands;
|
|
106
|
+
readonly onRestoreCommands: Event<ISerializedCommandDetectionCapability>;
|
|
107
|
+
private _cwdWorkspaceFolder;
|
|
108
|
+
get persistentProcessId(): number | undefined;
|
|
109
|
+
get shouldPersist(): boolean;
|
|
110
|
+
get hasWrittenData(): boolean;
|
|
111
|
+
get hasChildProcesses(): boolean;
|
|
112
|
+
get reconnectionProperties(): IReconnectionProperties | undefined;
|
|
113
|
+
get extEnvironmentVariableCollection(): IMergedEnvironmentVariableCollection | undefined;
|
|
114
|
+
get processTraits(): IProcessReadyEvent | undefined;
|
|
115
|
+
constructor(_instanceId: number, cwd: string | URI | undefined, environmentVariableCollections: ReadonlyMap<string, IEnvironmentVariableCollection> | undefined, shellIntegrationNonce: string | undefined, _historyService: IHistoryService, _instantiationService: IInstantiationService, _logService: ITerminalLogService, _workspaceContextService: IWorkspaceContextService, _configurationResolverService: IConfigurationResolverService, _workbenchEnvironmentService: IWorkbenchEnvironmentService, _productService: IProductService, _remoteAgentService: IRemoteAgentService, _pathService: IPathService, _environmentVariableService: IEnvironmentVariableService, _terminalConfigurationService: ITerminalConfigurationService, _terminalProfileResolverService: ITerminalProfileResolverService, _configurationService: IConfigurationService, _terminalInstanceService: ITerminalInstanceService, _telemetryService: ITelemetryService, _notificationService: INotificationService, _accessibilityService: IAccessibilityService, _terminalService: ITerminalService);
|
|
116
|
+
freePortKillProcess(port: string): Promise<void>;
|
|
117
|
+
dispose(immediate?: boolean): void;
|
|
118
|
+
private _createPtyProcessReadyPromise;
|
|
119
|
+
detachFromProcess(forcePersist?: boolean): Promise<void>;
|
|
120
|
+
createProcess(shellLaunchConfig: IShellLaunchConfig, cols: number, rows: number, reset?: boolean): Promise<ITerminalLaunchError | ITerminalLaunchResult | undefined>;
|
|
121
|
+
relaunch(shellLaunchConfig: IShellLaunchConfig, cols: number, rows: number, reset: boolean): Promise<ITerminalLaunchError | ITerminalLaunchResult | undefined>;
|
|
122
|
+
private _resolveEnvironment;
|
|
123
|
+
private _launchLocalProcess;
|
|
124
|
+
private _setupPtyHostListeners;
|
|
125
|
+
getBackendOS(): Promise<OperatingSystem>;
|
|
126
|
+
setDimensions(cols: number, rows: number): Promise<void>;
|
|
127
|
+
setDimensions(cols: number, rows: number, sync: false): Promise<void>;
|
|
128
|
+
setDimensions(cols: number, rows: number, sync: true): void;
|
|
129
|
+
setUnicodeVersion(version: "6" | "11"): Promise<void>;
|
|
130
|
+
setNextCommandId(commandLine: string, commandId: string): Promise<void>;
|
|
131
|
+
private _resize;
|
|
132
|
+
write(data: string): Promise<void>;
|
|
133
|
+
sendSignal(signal: string): Promise<void>;
|
|
134
|
+
processBinary(data: string): Promise<void>;
|
|
135
|
+
get initialCwd(): string;
|
|
136
|
+
refreshProperty<T extends ProcessPropertyType>(type: T): Promise<IProcessPropertyMap[T]>;
|
|
137
|
+
updateProperty<T extends ProcessPropertyType>(type: T, value: IProcessPropertyMap[T]): Promise<void>;
|
|
138
|
+
acknowledgeDataEvent(charCount: number): void;
|
|
139
|
+
private _onExit;
|
|
140
|
+
private _setProcessState;
|
|
141
|
+
private _onEnvironmentVariableCollectionChange;
|
|
142
|
+
clearBuffer(): Promise<void>;
|
|
143
|
+
}
|