@codingame/monaco-vscode-xterm-common 37.1.0 → 37.3.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/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,119 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { TerminalCommandId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/common/terminal';
|
|
4
|
-
import { ITerminalService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service';
|
|
5
|
-
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
6
|
-
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
7
|
-
import { TerminalStatus } from './terminalStatusList.js';
|
|
8
|
-
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
9
|
-
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
10
|
-
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
11
|
-
|
|
12
|
-
let EnvironmentVariableInfoStale = class EnvironmentVariableInfoStale {
|
|
13
|
-
constructor(_diff, _terminalId, _collection, _terminalService, _extensionService) {
|
|
14
|
-
this._diff = _diff;
|
|
15
|
-
this._terminalId = _terminalId;
|
|
16
|
-
this._collection = _collection;
|
|
17
|
-
this._terminalService = _terminalService;
|
|
18
|
-
this._extensionService = _extensionService;
|
|
19
|
-
this.requiresAction = true;
|
|
20
|
-
}
|
|
21
|
-
_getInfo(scope) {
|
|
22
|
-
const extSet = ( new Set());
|
|
23
|
-
addExtensionIdentifiers(extSet, ( this._diff.added.values()));
|
|
24
|
-
addExtensionIdentifiers(extSet, ( this._diff.removed.values()));
|
|
25
|
-
addExtensionIdentifiers(extSet, ( this._diff.changed.values()));
|
|
26
|
-
let message = ( localize(
|
|
27
|
-
16813,
|
|
28
|
-
"The following extensions want to relaunch the terminal to contribute to its environment:"
|
|
29
|
-
));
|
|
30
|
-
message += getMergedDescription(this._collection, scope, this._extensionService, extSet);
|
|
31
|
-
return message;
|
|
32
|
-
}
|
|
33
|
-
_getActions() {
|
|
34
|
-
return [{
|
|
35
|
-
label: ( localize(16814, "Relaunch Terminal")),
|
|
36
|
-
run: () => this._terminalService.getInstanceFromId(this._terminalId)?.relaunch(),
|
|
37
|
-
commandId: TerminalCommandId.Relaunch
|
|
38
|
-
}];
|
|
39
|
-
}
|
|
40
|
-
getStatus(scope) {
|
|
41
|
-
return {
|
|
42
|
-
id: TerminalStatus.RelaunchNeeded,
|
|
43
|
-
severity: Severity.Warning,
|
|
44
|
-
icon: Codicon.warning,
|
|
45
|
-
tooltip: this._getInfo(scope),
|
|
46
|
-
hoverActions: this._getActions()
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
EnvironmentVariableInfoStale = ( __decorate([( __param(3, ITerminalService)), ( __param(4, IExtensionService))], EnvironmentVariableInfoStale));
|
|
51
|
-
let EnvironmentVariableInfoChangesActive = class EnvironmentVariableInfoChangesActive {
|
|
52
|
-
constructor(_collection, _commandService, _extensionService) {
|
|
53
|
-
this._collection = _collection;
|
|
54
|
-
this._commandService = _commandService;
|
|
55
|
-
this._extensionService = _extensionService;
|
|
56
|
-
this.requiresAction = false;
|
|
57
|
-
}
|
|
58
|
-
_getInfo(scope) {
|
|
59
|
-
const extSet = ( new Set());
|
|
60
|
-
addExtensionIdentifiers(extSet, ( this._collection.getVariableMap(scope).values()));
|
|
61
|
-
let message = ( localize(
|
|
62
|
-
16815,
|
|
63
|
-
"The following extensions have contributed to this terminal's environment:"
|
|
64
|
-
));
|
|
65
|
-
message += getMergedDescription(this._collection, scope, this._extensionService, extSet);
|
|
66
|
-
return message;
|
|
67
|
-
}
|
|
68
|
-
_getActions(scope) {
|
|
69
|
-
return [{
|
|
70
|
-
label: ( localize(16816, "Show Environment Contributions")),
|
|
71
|
-
run: () => this._commandService.executeCommand(TerminalCommandId.ShowEnvironmentContributions, scope),
|
|
72
|
-
commandId: TerminalCommandId.ShowEnvironmentContributions
|
|
73
|
-
}];
|
|
74
|
-
}
|
|
75
|
-
getStatus(scope) {
|
|
76
|
-
return {
|
|
77
|
-
id: TerminalStatus.EnvironmentVariableInfoChangesActive,
|
|
78
|
-
severity: Severity.Info,
|
|
79
|
-
tooltip: undefined,
|
|
80
|
-
detailedTooltip: this._getInfo(scope),
|
|
81
|
-
hoverActions: this._getActions(scope)
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
EnvironmentVariableInfoChangesActive = ( __decorate([( __param(1, ICommandService)), ( __param(2, IExtensionService))], EnvironmentVariableInfoChangesActive));
|
|
86
|
-
function getMergedDescription(collection, scope, extensionService, extSet) {
|
|
87
|
-
const message = ["\n"];
|
|
88
|
-
const globalDescriptions = collection.getDescriptionMap(undefined);
|
|
89
|
-
const workspaceDescriptions = collection.getDescriptionMap(scope);
|
|
90
|
-
for (const ext of extSet) {
|
|
91
|
-
const globalDescription = globalDescriptions.get(ext);
|
|
92
|
-
if (globalDescription) {
|
|
93
|
-
message.push(`\n- \`${getExtensionName(ext, extensionService)}\``);
|
|
94
|
-
message.push(`: ${globalDescription}`);
|
|
95
|
-
}
|
|
96
|
-
const workspaceDescription = workspaceDescriptions.get(ext);
|
|
97
|
-
if (workspaceDescription) {
|
|
98
|
-
const workspaceSuffix = globalDescription ? ` (${( localize(16817, "workspace"))})` : "";
|
|
99
|
-
message.push(`\n- \`${getExtensionName(ext, extensionService)}${workspaceSuffix}\``);
|
|
100
|
-
message.push(`: ${workspaceDescription}`);
|
|
101
|
-
}
|
|
102
|
-
if (!globalDescription && !workspaceDescription) {
|
|
103
|
-
message.push(`\n- \`${getExtensionName(ext, extensionService)}\``);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return message.join("");
|
|
107
|
-
}
|
|
108
|
-
function addExtensionIdentifiers(extSet, diff) {
|
|
109
|
-
for (const mutators of diff) {
|
|
110
|
-
for (const mutator of mutators) {
|
|
111
|
-
extSet.add(mutator.extensionIdentifier);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
function getExtensionName(id, extensionService) {
|
|
116
|
-
return extensionService.extensions.find(e => e.id === id)?.displayName || id;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export { EnvironmentVariableInfoChangesActive, EnvironmentVariableInfoStale };
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { Action } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions";
|
|
2
|
-
import { IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
-
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
4
|
-
import { IAction2Options } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
|
|
5
|
-
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
6
|
-
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
7
|
-
import { Severity } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification";
|
|
8
|
-
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
9
|
-
import { ITerminalProfile } from "@codingame/monaco-vscode-api/vscode/vs/platform/terminal/common/terminal";
|
|
10
|
-
import { IWorkspaceFolder } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace";
|
|
11
|
-
import { ITerminalProfileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/common/terminal.service";
|
|
12
|
-
import { ITerminalProfileResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/common/terminal.service";
|
|
13
|
-
import { IDetachedTerminalInstance, ITerminalInstance, IXtermTerminal } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal";
|
|
14
|
-
import { ITerminalInstanceService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
15
|
-
import { ITerminalGroupService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
16
|
-
import { ITerminalEditingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
17
|
-
import { ITerminalEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
18
|
-
import { ITerminalConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
19
|
-
import { ITerminalService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
20
|
-
export declare const switchTerminalShowTabsTitle: string;
|
|
21
|
-
export declare const sharedWhenClause: {
|
|
22
|
-
terminalAvailable: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
|
|
23
|
-
terminalAvailable_and_opened: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
|
|
24
|
-
terminalAvailable_and_editorActive: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
|
|
25
|
-
terminalAvailable_and_singularSelection: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
|
|
26
|
-
focusInAny_and_normalBuffer: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
|
|
27
|
-
};
|
|
28
|
-
export interface WorkspaceFolderCwdPair {
|
|
29
|
-
folder: IWorkspaceFolder;
|
|
30
|
-
cwd: URI;
|
|
31
|
-
isAbsolute: boolean;
|
|
32
|
-
isOverridden: boolean;
|
|
33
|
-
}
|
|
34
|
-
export declare function getCwdForSplit(instance: ITerminalInstance, folders: IWorkspaceFolder[] | undefined, commandService: ICommandService, configService: ITerminalConfigurationService): Promise<string | URI | undefined>;
|
|
35
|
-
export declare class TerminalLaunchHelpAction extends Action {
|
|
36
|
-
private readonly _openerService;
|
|
37
|
-
constructor(_openerService: IOpenerService);
|
|
38
|
-
run(): Promise<void>;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* A wrapper function around registerAction2 to help make registering terminal actions more concise.
|
|
42
|
-
* The following default options are used if undefined:
|
|
43
|
-
*
|
|
44
|
-
* - `f1`: true
|
|
45
|
-
* - `category`: Terminal
|
|
46
|
-
* - `precondition`: TerminalContextKeys.processSupported
|
|
47
|
-
*/
|
|
48
|
-
export declare function registerTerminalAction(options: IAction2Options & {
|
|
49
|
-
run: (c: ITerminalServicesCollection, accessor: ServicesAccessor, args?: unknown, args2?: unknown) => void | Promise<unknown>;
|
|
50
|
-
}): IDisposable;
|
|
51
|
-
/**
|
|
52
|
-
* A wrapper around {@link registerTerminalAction} that runs a callback for all currently selected
|
|
53
|
-
* instances provided in the action context. This falls back to the active instance if there are no
|
|
54
|
-
* contextual instances provided.
|
|
55
|
-
*/
|
|
56
|
-
export declare function registerContextualInstanceAction(options: IAction2Options & {
|
|
57
|
-
/**
|
|
58
|
-
* When specified, only this type of active instance will be used when there are no
|
|
59
|
-
* contextual instances.
|
|
60
|
-
*/
|
|
61
|
-
activeInstanceType?: "view" | "editor";
|
|
62
|
-
run: (instance: ITerminalInstance, c: ITerminalServicesCollection, accessor: ServicesAccessor, args?: unknown) => void | Promise<unknown>;
|
|
63
|
-
/**
|
|
64
|
-
* A callback to run after the `run` callbacks have completed.
|
|
65
|
-
* @param instances The selected instance(s) that the command was run on.
|
|
66
|
-
*/
|
|
67
|
-
runAfter?: (instances: ITerminalInstance[], c: ITerminalServicesCollection, accessor: ServicesAccessor, args?: unknown) => void | Promise<unknown>;
|
|
68
|
-
}): IDisposable;
|
|
69
|
-
/**
|
|
70
|
-
* A wrapper around {@link registerTerminalAction} that ensures an active instance exists and
|
|
71
|
-
* provides it to the run function.
|
|
72
|
-
*/
|
|
73
|
-
export declare function registerActiveInstanceAction(options: IAction2Options & {
|
|
74
|
-
run: (activeInstance: ITerminalInstance, c: ITerminalServicesCollection, accessor: ServicesAccessor, args?: unknown) => void | Promise<unknown>;
|
|
75
|
-
}): IDisposable;
|
|
76
|
-
/**
|
|
77
|
-
* A wrapper around {@link registerTerminalAction} that ensures an active terminal
|
|
78
|
-
* exists and provides it to the run function.
|
|
79
|
-
*
|
|
80
|
-
* This includes detached xterm terminals that are not managed by an {@link ITerminalInstance}.
|
|
81
|
-
*/
|
|
82
|
-
export declare function registerActiveXtermAction(options: IAction2Options & {
|
|
83
|
-
run: (activeTerminal: IXtermTerminal, accessor: ServicesAccessor, instance: ITerminalInstance | IDetachedTerminalInstance, args?: unknown) => void | Promise<unknown>;
|
|
84
|
-
}): IDisposable;
|
|
85
|
-
export interface ITerminalServicesCollection {
|
|
86
|
-
service: ITerminalService;
|
|
87
|
-
configService: ITerminalConfigurationService;
|
|
88
|
-
groupService: ITerminalGroupService;
|
|
89
|
-
instanceService: ITerminalInstanceService;
|
|
90
|
-
editorService: ITerminalEditorService;
|
|
91
|
-
editingService: ITerminalEditingService;
|
|
92
|
-
profileService: ITerminalProfileService;
|
|
93
|
-
profileResolverService: ITerminalProfileResolverService;
|
|
94
|
-
}
|
|
95
|
-
export declare function registerTerminalActions(): void;
|
|
96
|
-
export declare function validateTerminalName(name: string): {
|
|
97
|
-
content: string;
|
|
98
|
-
severity: Severity;
|
|
99
|
-
} | null;
|
|
100
|
-
export declare function refreshTerminalActions(detectedProfiles: ITerminalProfile[]): IDisposable;
|
|
101
|
-
/**
|
|
102
|
-
* Drops repeated CWDs, if any, by keeping the one which best matches the workspace folder. It also preserves the original order.
|
|
103
|
-
*/
|
|
104
|
-
export declare function shrinkWorkspaceFolderCwdPairs(pairs: WorkspaceFolderCwdPair[]): WorkspaceFolderCwdPair[];
|