@theia/terminal 1.45.1 → 1.46.0-next.72
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/README.md +30 -30
- package/lib/browser/base/terminal-service.d.ts +34 -34
- package/lib/browser/base/terminal-service.js +7 -7
- package/lib/browser/base/terminal-widget.d.ts +192 -192
- package/lib/browser/base/terminal-widget.js +34 -34
- package/lib/browser/index.d.ts +1 -1
- package/lib/browser/index.js +28 -28
- package/lib/browser/search/terminal-search-container.d.ts +3 -3
- package/lib/browser/search/terminal-search-container.js +28 -28
- package/lib/browser/search/terminal-search-widget.d.ts +30 -30
- package/lib/browser/search/terminal-search-widget.js +147 -147
- package/lib/browser/shell-terminal-profile.d.ts +20 -20
- package/lib/browser/shell-terminal-profile.js +42 -42
- package/lib/browser/terminal-contribution.d.ts +3 -3
- package/lib/browser/terminal-contribution.js +20 -20
- package/lib/browser/terminal-copy-on-selection-handler.d.ts +10 -10
- package/lib/browser/terminal-copy-on-selection-handler.js +103 -103
- package/lib/browser/terminal-file-link-provider.d.ts +24 -24
- package/lib/browser/terminal-file-link-provider.js +200 -200
- package/lib/browser/terminal-frontend-contribution.d.ts +115 -115
- package/lib/browser/terminal-frontend-contribution.d.ts.map +1 -1
- package/lib/browser/terminal-frontend-contribution.js +1078 -1056
- package/lib/browser/terminal-frontend-contribution.js.map +1 -1
- package/lib/browser/terminal-frontend-module.d.ts +5 -5
- package/lib/browser/terminal-frontend-module.js +117 -117
- package/lib/browser/terminal-link-helpers.d.ts +27 -27
- package/lib/browser/terminal-link-helpers.js +155 -155
- package/lib/browser/terminal-link-provider.d.ts +51 -51
- package/lib/browser/terminal-link-provider.js +197 -197
- package/lib/browser/terminal-preferences.d.ts +61 -61
- package/lib/browser/terminal-preferences.d.ts.map +1 -1
- package/lib/browser/terminal-preferences.js +357 -356
- package/lib/browser/terminal-preferences.js.map +1 -1
- package/lib/browser/terminal-profile-service.d.ts +58 -58
- package/lib/browser/terminal-profile-service.js +158 -158
- package/lib/browser/terminal-quick-open-service.d.ts +36 -36
- package/lib/browser/terminal-quick-open-service.js +137 -137
- package/lib/browser/terminal-theme-service.d.ts +21 -21
- package/lib/browser/terminal-theme-service.d.ts.map +1 -1
- package/lib/browser/terminal-theme-service.js +222 -218
- package/lib/browser/terminal-theme-service.js.map +1 -1
- package/lib/browser/terminal-url-link-provider.d.ts +11 -11
- package/lib/browser/terminal-url-link-provider.js +76 -76
- package/lib/browser/terminal-widget-impl.d.ts +180 -187
- package/lib/browser/terminal-widget-impl.d.ts.map +1 -1
- package/lib/browser/terminal-widget-impl.js +857 -867
- package/lib/browser/terminal-widget-impl.js.map +1 -1
- package/lib/common/base-terminal-protocol.d.ts +55 -55
- package/lib/common/base-terminal-protocol.js +84 -84
- package/lib/common/shell-terminal-protocol.d.ts +66 -66
- package/lib/common/shell-terminal-protocol.js +35 -35
- package/lib/common/terminal-common-module.d.ts +7 -7
- package/lib/common/terminal-common-module.js +31 -31
- package/lib/common/terminal-protocol.d.ts +12 -12
- package/lib/common/terminal-protocol.js +21 -21
- package/lib/common/terminal-watcher.d.ts +13 -13
- package/lib/common/terminal-watcher.js +70 -70
- package/lib/node/base-terminal-server.d.ts +24 -24
- package/lib/node/base-terminal-server.js +168 -168
- package/lib/node/buffering-stream.d.ts +39 -39
- package/lib/node/buffering-stream.js +75 -75
- package/lib/node/buffering-stream.spec.d.ts +1 -1
- package/lib/node/buffering-stream.spec.js +43 -43
- package/lib/node/index.d.ts +1 -1
- package/lib/node/index.js +28 -28
- package/lib/node/shell-process.d.ts +27 -27
- package/lib/node/shell-process.js +107 -107
- package/lib/node/shell-process.js.map +1 -1
- package/lib/node/shell-terminal-server.d.ts +30 -30
- package/lib/node/shell-terminal-server.js +212 -212
- package/lib/node/shell-terminal-server.spec.d.ts +1 -1
- package/lib/node/shell-terminal-server.spec.js +35 -35
- package/lib/node/terminal-backend-contribution.d.ts +9 -9
- package/lib/node/terminal-backend-contribution.js +75 -75
- package/lib/node/terminal-backend-contribution.slow-spec.d.ts +1 -1
- package/lib/node/terminal-backend-contribution.slow-spec.js +54 -54
- package/lib/node/terminal-backend-module.d.ts +11 -11
- package/lib/node/terminal-backend-module.js +69 -69
- package/lib/node/terminal-server.d.ts +9 -9
- package/lib/node/terminal-server.js +64 -64
- package/lib/node/terminal-server.spec.d.ts +1 -1
- package/lib/node/terminal-server.spec.js +41 -41
- package/lib/node/test/terminal-test-container.d.ts +2 -2
- package/lib/node/test/terminal-test-container.js +40 -40
- package/lib/package.spec.js +25 -25
- package/package.json +12 -12
- package/src/browser/base/terminal-service.ts +60 -60
- package/src/browser/base/terminal-widget.ts +254 -254
- package/src/browser/index.ts +17 -17
- package/src/browser/search/terminal-search-container.ts +28 -28
- package/src/browser/search/terminal-search-widget.tsx +161 -161
- package/src/browser/shell-terminal-profile.ts +45 -45
- package/src/browser/style/terminal-search.css +99 -99
- package/src/browser/style/terminal.css +32 -32
- package/src/browser/terminal-contribution.ts +19 -19
- package/src/browser/terminal-copy-on-selection-handler.ts +92 -92
- package/src/browser/terminal-file-link-provider.ts +200 -200
- package/src/browser/terminal-frontend-contribution.ts +1120 -1098
- package/src/browser/terminal-frontend-module.ts +136 -136
- package/src/browser/terminal-link-helpers.ts +187 -187
- package/src/browser/terminal-link-provider.ts +203 -203
- package/src/browser/terminal-preferences.ts +428 -427
- package/src/browser/terminal-profile-service.ts +180 -180
- package/src/browser/terminal-quick-open-service.ts +132 -132
- package/src/browser/terminal-theme-service.ts +213 -209
- package/src/browser/terminal-url-link-provider.ts +66 -66
- package/src/browser/terminal-widget-impl.ts +939 -936
- package/src/common/base-terminal-protocol.ts +125 -125
- package/src/common/shell-terminal-protocol.ts +103 -103
- package/src/common/terminal-common-module.ts +30 -30
- package/src/common/terminal-protocol.ts +32 -32
- package/src/common/terminal-watcher.ts +69 -69
- package/src/node/base-terminal-server.ts +173 -173
- package/src/node/buffering-stream.spec.ts +46 -46
- package/src/node/buffering-stream.ts +95 -95
- package/src/node/index.ts +17 -17
- package/src/node/shell-process.ts +101 -101
- package/src/node/shell-terminal-server.spec.ts +40 -40
- package/src/node/shell-terminal-server.ts +221 -221
- package/src/node/terminal-backend-contribution.slow-spec.ts +63 -63
- package/src/node/terminal-backend-contribution.ts +60 -60
- package/src/node/terminal-backend-module.ts +82 -82
- package/src/node/terminal-server.spec.ts +47 -47
- package/src/node/terminal-server.ts +52 -52
- package/src/node/test/terminal-test-container.ts +39 -39
- package/src/package.spec.ts +28 -28
|
@@ -1,198 +1,198 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2022 STMicroelectronics and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
-
};
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.XtermLinkAdapter = exports.TerminalLinkProviderContribution = exports.createXtermLinkFactory = exports.XtermLinkFactory = exports.XtermLink = exports.TerminalLink = exports.TerminalLinkProvider = void 0;
|
|
28
|
-
const core_1 = require("@theia/core");
|
|
29
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
30
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
31
|
-
const terminal_link_helpers_1 = require("./terminal-link-helpers");
|
|
32
|
-
const terminal_widget_impl_1 = require("./terminal-widget-impl");
|
|
33
|
-
exports.TerminalLinkProvider = Symbol('TerminalLinkProvider');
|
|
34
|
-
exports.TerminalLink = Symbol('TerminalLink');
|
|
35
|
-
exports.XtermLink = Symbol('XtermLink');
|
|
36
|
-
exports.XtermLinkFactory = Symbol('XtermLinkFactory');
|
|
37
|
-
function createXtermLinkFactory(ctx) {
|
|
38
|
-
return (link, terminal, context) => {
|
|
39
|
-
const container = ctx.container.createChild();
|
|
40
|
-
container.bind(exports.TerminalLink).toConstantValue(link);
|
|
41
|
-
container.bind(terminal_widget_impl_1.TerminalWidgetImpl).toConstantValue(terminal);
|
|
42
|
-
container.bind(terminal_link_helpers_1.LinkContext).toConstantValue(context);
|
|
43
|
-
container.bind(XtermLinkAdapter).toSelf().inSingletonScope();
|
|
44
|
-
container.bind(exports.XtermLink).toService(XtermLinkAdapter);
|
|
45
|
-
const provider = container.get(exports.XtermLink);
|
|
46
|
-
return provider;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
exports.createXtermLinkFactory = createXtermLinkFactory;
|
|
50
|
-
let TerminalLinkProviderContribution = class TerminalLinkProviderContribution {
|
|
51
|
-
onCreate(terminalWidget) {
|
|
52
|
-
terminalWidget.getTerminal().registerLinkProvider({
|
|
53
|
-
provideLinks: (line, provideLinks) => this.provideTerminalLinks(terminalWidget, line, provideLinks)
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
async provideTerminalLinks(terminal, line, provideLinks) {
|
|
57
|
-
const context = (0, terminal_link_helpers_1.getLinkContext)(terminal.getTerminal(), line);
|
|
58
|
-
const linkProviderPromises = [];
|
|
59
|
-
for (const provider of this.terminalLinkContributionProvider.getContributions()) {
|
|
60
|
-
linkProviderPromises.push(provider.provideLinks(context.text, terminal));
|
|
61
|
-
}
|
|
62
|
-
const xtermLinks = [];
|
|
63
|
-
for (const providerResult of await Promise.allSettled(linkProviderPromises)) {
|
|
64
|
-
if (providerResult.status === 'fulfilled') {
|
|
65
|
-
const providedLinks = providerResult.value;
|
|
66
|
-
xtermLinks.push(...providedLinks.map(link => this.xtermLinkFactory(link, terminal, context)));
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
console.warn('Terminal link provider failed to provide links', providerResult.reason);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
provideLinks(xtermLinks);
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, inversify_1.inject)(core_1.ContributionProvider),
|
|
77
|
-
(0, inversify_1.named)(exports.TerminalLinkProvider),
|
|
78
|
-
__metadata("design:type", Object)
|
|
79
|
-
], TerminalLinkProviderContribution.prototype, "terminalLinkContributionProvider", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, inversify_1.inject)(exports.XtermLinkFactory),
|
|
82
|
-
__metadata("design:type", Function)
|
|
83
|
-
], TerminalLinkProviderContribution.prototype, "xtermLinkFactory", void 0);
|
|
84
|
-
TerminalLinkProviderContribution = __decorate([
|
|
85
|
-
(0, inversify_1.injectable)()
|
|
86
|
-
], TerminalLinkProviderContribution);
|
|
87
|
-
exports.TerminalLinkProviderContribution = TerminalLinkProviderContribution;
|
|
88
|
-
const DELAY_PREFERENCE = 'workbench.hover.delay';
|
|
89
|
-
let XtermLinkAdapter = class XtermLinkAdapter {
|
|
90
|
-
constructor() {
|
|
91
|
-
this.toDispose = new core_1.DisposableCollection();
|
|
92
|
-
this.mouseEnteredHover = false;
|
|
93
|
-
this.mouseLeftHover = false;
|
|
94
|
-
}
|
|
95
|
-
initializeLinkFields() {
|
|
96
|
-
const range = {
|
|
97
|
-
startColumn: this.link.startIndex + 1,
|
|
98
|
-
startLineNumber: 1,
|
|
99
|
-
endColumn: this.link.startIndex + this.link.length + 1,
|
|
100
|
-
endLineNumber: 1
|
|
101
|
-
};
|
|
102
|
-
const terminal = this.terminalWidget.getTerminal();
|
|
103
|
-
this.range = (0, terminal_link_helpers_1.convertLinkRangeToBuffer)(this.context.lines, terminal.cols, range, this.context.startLine);
|
|
104
|
-
this.text = this.context.text.substring(this.link.startIndex, this.link.startIndex + this.link.length) || '';
|
|
105
|
-
}
|
|
106
|
-
hover(event, text) {
|
|
107
|
-
this.scheduleHover(event);
|
|
108
|
-
}
|
|
109
|
-
scheduleHover(event) {
|
|
110
|
-
var _a;
|
|
111
|
-
this.cancelHover();
|
|
112
|
-
const delay = (_a = this.preferences.get(DELAY_PREFERENCE)) !== null && _a !== void 0 ? _a : 500;
|
|
113
|
-
this.toDispose.push((0, core_1.disposableTimeout)(() => this.showHover(event), delay));
|
|
114
|
-
}
|
|
115
|
-
showHover(event) {
|
|
116
|
-
this.toDispose.push(this.terminalWidget.onMouseEnterLinkHover(() => this.mouseEnteredHover = true));
|
|
117
|
-
this.toDispose.push(this.terminalWidget.onMouseLeaveLinkHover(mouseEvent => {
|
|
118
|
-
this.mouseLeftHover = true;
|
|
119
|
-
this.leave(mouseEvent);
|
|
120
|
-
}));
|
|
121
|
-
this.terminalWidget.showLinkHover(() => this.executeLinkHandler(), event.clientX, event.clientY, this.link.tooltip);
|
|
122
|
-
}
|
|
123
|
-
leave(event) {
|
|
124
|
-
this.toDispose.push((0, core_1.disposableTimeout)(() => {
|
|
125
|
-
if (!this.mouseEnteredHover || this.mouseLeftHover) {
|
|
126
|
-
this.cancelHover();
|
|
127
|
-
}
|
|
128
|
-
}, 50));
|
|
129
|
-
}
|
|
130
|
-
cancelHover() {
|
|
131
|
-
this.mouseEnteredHover = false;
|
|
132
|
-
this.mouseLeftHover = false;
|
|
133
|
-
this.toDispose.dispose();
|
|
134
|
-
this.terminalWidget.hideLinkHover();
|
|
135
|
-
}
|
|
136
|
-
activate(event, text) {
|
|
137
|
-
event.preventDefault();
|
|
138
|
-
if (this.isModifierKeyDown(event) || this.wasTouchEvent(event, this.terminalWidget.lastTouchEndEvent)) {
|
|
139
|
-
this.executeLinkHandler();
|
|
140
|
-
}
|
|
141
|
-
else {
|
|
142
|
-
this.terminalWidget.getTerminal().focus();
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
executeLinkHandler() {
|
|
146
|
-
this.link.handle();
|
|
147
|
-
this.cancelHover();
|
|
148
|
-
}
|
|
149
|
-
isModifierKeyDown(event) {
|
|
150
|
-
return core_1.isOSX ? event.metaKey : event.ctrlKey;
|
|
151
|
-
}
|
|
152
|
-
wasTouchEvent(event, lastTouchEnd) {
|
|
153
|
-
if (!lastTouchEnd) {
|
|
154
|
-
return false;
|
|
155
|
-
}
|
|
156
|
-
if ((event.timeStamp - lastTouchEnd.timeStamp) > 400) {
|
|
157
|
-
// A 'touchend' event typically precedes a matching 'click' event by 50ms.
|
|
158
|
-
return false;
|
|
159
|
-
}
|
|
160
|
-
if (Math.abs(event.pageX - lastTouchEnd.pageX) > 5) {
|
|
161
|
-
// Matching 'touchend' and 'click' events typically have the same page coordinates,
|
|
162
|
-
// plus or minus 1 pixel.
|
|
163
|
-
return false;
|
|
164
|
-
}
|
|
165
|
-
if (Math.abs(event.pageY - lastTouchEnd.pageY) > 5) {
|
|
166
|
-
return false;
|
|
167
|
-
}
|
|
168
|
-
// We have a match! This link was tapped.
|
|
169
|
-
return true;
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
__decorate([
|
|
173
|
-
(0, inversify_1.inject)(exports.TerminalLink),
|
|
174
|
-
__metadata("design:type", Object)
|
|
175
|
-
], XtermLinkAdapter.prototype, "link", void 0);
|
|
176
|
-
__decorate([
|
|
177
|
-
(0, inversify_1.inject)(terminal_widget_impl_1.TerminalWidgetImpl),
|
|
178
|
-
__metadata("design:type", terminal_widget_impl_1.TerminalWidgetImpl)
|
|
179
|
-
], XtermLinkAdapter.prototype, "terminalWidget", void 0);
|
|
180
|
-
__decorate([
|
|
181
|
-
(0, inversify_1.inject)(terminal_link_helpers_1.LinkContext),
|
|
182
|
-
__metadata("design:type", Object)
|
|
183
|
-
], XtermLinkAdapter.prototype, "context", void 0);
|
|
184
|
-
__decorate([
|
|
185
|
-
(0, inversify_1.inject)(browser_1.PreferenceService),
|
|
186
|
-
__metadata("design:type", Object)
|
|
187
|
-
], XtermLinkAdapter.prototype, "preferences", void 0);
|
|
188
|
-
__decorate([
|
|
189
|
-
(0, inversify_1.postConstruct)(),
|
|
190
|
-
__metadata("design:type", Function),
|
|
191
|
-
__metadata("design:paramtypes", []),
|
|
192
|
-
__metadata("design:returntype", void 0)
|
|
193
|
-
], XtermLinkAdapter.prototype, "initializeLinkFields", null);
|
|
194
|
-
XtermLinkAdapter = __decorate([
|
|
195
|
-
(0, inversify_1.injectable)()
|
|
196
|
-
], XtermLinkAdapter);
|
|
197
|
-
exports.XtermLinkAdapter = XtermLinkAdapter;
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2022 STMicroelectronics and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.XtermLinkAdapter = exports.TerminalLinkProviderContribution = exports.createXtermLinkFactory = exports.XtermLinkFactory = exports.XtermLink = exports.TerminalLink = exports.TerminalLinkProvider = void 0;
|
|
28
|
+
const core_1 = require("@theia/core");
|
|
29
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
30
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
31
|
+
const terminal_link_helpers_1 = require("./terminal-link-helpers");
|
|
32
|
+
const terminal_widget_impl_1 = require("./terminal-widget-impl");
|
|
33
|
+
exports.TerminalLinkProvider = Symbol('TerminalLinkProvider');
|
|
34
|
+
exports.TerminalLink = Symbol('TerminalLink');
|
|
35
|
+
exports.XtermLink = Symbol('XtermLink');
|
|
36
|
+
exports.XtermLinkFactory = Symbol('XtermLinkFactory');
|
|
37
|
+
function createXtermLinkFactory(ctx) {
|
|
38
|
+
return (link, terminal, context) => {
|
|
39
|
+
const container = ctx.container.createChild();
|
|
40
|
+
container.bind(exports.TerminalLink).toConstantValue(link);
|
|
41
|
+
container.bind(terminal_widget_impl_1.TerminalWidgetImpl).toConstantValue(terminal);
|
|
42
|
+
container.bind(terminal_link_helpers_1.LinkContext).toConstantValue(context);
|
|
43
|
+
container.bind(XtermLinkAdapter).toSelf().inSingletonScope();
|
|
44
|
+
container.bind(exports.XtermLink).toService(XtermLinkAdapter);
|
|
45
|
+
const provider = container.get(exports.XtermLink);
|
|
46
|
+
return provider;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.createXtermLinkFactory = createXtermLinkFactory;
|
|
50
|
+
let TerminalLinkProviderContribution = class TerminalLinkProviderContribution {
|
|
51
|
+
onCreate(terminalWidget) {
|
|
52
|
+
terminalWidget.getTerminal().registerLinkProvider({
|
|
53
|
+
provideLinks: (line, provideLinks) => this.provideTerminalLinks(terminalWidget, line, provideLinks)
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
async provideTerminalLinks(terminal, line, provideLinks) {
|
|
57
|
+
const context = (0, terminal_link_helpers_1.getLinkContext)(terminal.getTerminal(), line);
|
|
58
|
+
const linkProviderPromises = [];
|
|
59
|
+
for (const provider of this.terminalLinkContributionProvider.getContributions()) {
|
|
60
|
+
linkProviderPromises.push(provider.provideLinks(context.text, terminal));
|
|
61
|
+
}
|
|
62
|
+
const xtermLinks = [];
|
|
63
|
+
for (const providerResult of await Promise.allSettled(linkProviderPromises)) {
|
|
64
|
+
if (providerResult.status === 'fulfilled') {
|
|
65
|
+
const providedLinks = providerResult.value;
|
|
66
|
+
xtermLinks.push(...providedLinks.map(link => this.xtermLinkFactory(link, terminal, context)));
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
console.warn('Terminal link provider failed to provide links', providerResult.reason);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
provideLinks(xtermLinks);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, inversify_1.inject)(core_1.ContributionProvider),
|
|
77
|
+
(0, inversify_1.named)(exports.TerminalLinkProvider),
|
|
78
|
+
__metadata("design:type", Object)
|
|
79
|
+
], TerminalLinkProviderContribution.prototype, "terminalLinkContributionProvider", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, inversify_1.inject)(exports.XtermLinkFactory),
|
|
82
|
+
__metadata("design:type", Function)
|
|
83
|
+
], TerminalLinkProviderContribution.prototype, "xtermLinkFactory", void 0);
|
|
84
|
+
TerminalLinkProviderContribution = __decorate([
|
|
85
|
+
(0, inversify_1.injectable)()
|
|
86
|
+
], TerminalLinkProviderContribution);
|
|
87
|
+
exports.TerminalLinkProviderContribution = TerminalLinkProviderContribution;
|
|
88
|
+
const DELAY_PREFERENCE = 'workbench.hover.delay';
|
|
89
|
+
let XtermLinkAdapter = class XtermLinkAdapter {
|
|
90
|
+
constructor() {
|
|
91
|
+
this.toDispose = new core_1.DisposableCollection();
|
|
92
|
+
this.mouseEnteredHover = false;
|
|
93
|
+
this.mouseLeftHover = false;
|
|
94
|
+
}
|
|
95
|
+
initializeLinkFields() {
|
|
96
|
+
const range = {
|
|
97
|
+
startColumn: this.link.startIndex + 1,
|
|
98
|
+
startLineNumber: 1,
|
|
99
|
+
endColumn: this.link.startIndex + this.link.length + 1,
|
|
100
|
+
endLineNumber: 1
|
|
101
|
+
};
|
|
102
|
+
const terminal = this.terminalWidget.getTerminal();
|
|
103
|
+
this.range = (0, terminal_link_helpers_1.convertLinkRangeToBuffer)(this.context.lines, terminal.cols, range, this.context.startLine);
|
|
104
|
+
this.text = this.context.text.substring(this.link.startIndex, this.link.startIndex + this.link.length) || '';
|
|
105
|
+
}
|
|
106
|
+
hover(event, text) {
|
|
107
|
+
this.scheduleHover(event);
|
|
108
|
+
}
|
|
109
|
+
scheduleHover(event) {
|
|
110
|
+
var _a;
|
|
111
|
+
this.cancelHover();
|
|
112
|
+
const delay = (_a = this.preferences.get(DELAY_PREFERENCE)) !== null && _a !== void 0 ? _a : 500;
|
|
113
|
+
this.toDispose.push((0, core_1.disposableTimeout)(() => this.showHover(event), delay));
|
|
114
|
+
}
|
|
115
|
+
showHover(event) {
|
|
116
|
+
this.toDispose.push(this.terminalWidget.onMouseEnterLinkHover(() => this.mouseEnteredHover = true));
|
|
117
|
+
this.toDispose.push(this.terminalWidget.onMouseLeaveLinkHover(mouseEvent => {
|
|
118
|
+
this.mouseLeftHover = true;
|
|
119
|
+
this.leave(mouseEvent);
|
|
120
|
+
}));
|
|
121
|
+
this.terminalWidget.showLinkHover(() => this.executeLinkHandler(), event.clientX, event.clientY, this.link.tooltip);
|
|
122
|
+
}
|
|
123
|
+
leave(event) {
|
|
124
|
+
this.toDispose.push((0, core_1.disposableTimeout)(() => {
|
|
125
|
+
if (!this.mouseEnteredHover || this.mouseLeftHover) {
|
|
126
|
+
this.cancelHover();
|
|
127
|
+
}
|
|
128
|
+
}, 50));
|
|
129
|
+
}
|
|
130
|
+
cancelHover() {
|
|
131
|
+
this.mouseEnteredHover = false;
|
|
132
|
+
this.mouseLeftHover = false;
|
|
133
|
+
this.toDispose.dispose();
|
|
134
|
+
this.terminalWidget.hideLinkHover();
|
|
135
|
+
}
|
|
136
|
+
activate(event, text) {
|
|
137
|
+
event.preventDefault();
|
|
138
|
+
if (this.isModifierKeyDown(event) || this.wasTouchEvent(event, this.terminalWidget.lastTouchEndEvent)) {
|
|
139
|
+
this.executeLinkHandler();
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
this.terminalWidget.getTerminal().focus();
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
executeLinkHandler() {
|
|
146
|
+
this.link.handle();
|
|
147
|
+
this.cancelHover();
|
|
148
|
+
}
|
|
149
|
+
isModifierKeyDown(event) {
|
|
150
|
+
return core_1.isOSX ? event.metaKey : event.ctrlKey;
|
|
151
|
+
}
|
|
152
|
+
wasTouchEvent(event, lastTouchEnd) {
|
|
153
|
+
if (!lastTouchEnd) {
|
|
154
|
+
return false;
|
|
155
|
+
}
|
|
156
|
+
if ((event.timeStamp - lastTouchEnd.timeStamp) > 400) {
|
|
157
|
+
// A 'touchend' event typically precedes a matching 'click' event by 50ms.
|
|
158
|
+
return false;
|
|
159
|
+
}
|
|
160
|
+
if (Math.abs(event.pageX - lastTouchEnd.pageX) > 5) {
|
|
161
|
+
// Matching 'touchend' and 'click' events typically have the same page coordinates,
|
|
162
|
+
// plus or minus 1 pixel.
|
|
163
|
+
return false;
|
|
164
|
+
}
|
|
165
|
+
if (Math.abs(event.pageY - lastTouchEnd.pageY) > 5) {
|
|
166
|
+
return false;
|
|
167
|
+
}
|
|
168
|
+
// We have a match! This link was tapped.
|
|
169
|
+
return true;
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, inversify_1.inject)(exports.TerminalLink),
|
|
174
|
+
__metadata("design:type", Object)
|
|
175
|
+
], XtermLinkAdapter.prototype, "link", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
(0, inversify_1.inject)(terminal_widget_impl_1.TerminalWidgetImpl),
|
|
178
|
+
__metadata("design:type", terminal_widget_impl_1.TerminalWidgetImpl)
|
|
179
|
+
], XtermLinkAdapter.prototype, "terminalWidget", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, inversify_1.inject)(terminal_link_helpers_1.LinkContext),
|
|
182
|
+
__metadata("design:type", Object)
|
|
183
|
+
], XtermLinkAdapter.prototype, "context", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, inversify_1.inject)(browser_1.PreferenceService),
|
|
186
|
+
__metadata("design:type", Object)
|
|
187
|
+
], XtermLinkAdapter.prototype, "preferences", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, inversify_1.postConstruct)(),
|
|
190
|
+
__metadata("design:type", Function),
|
|
191
|
+
__metadata("design:paramtypes", []),
|
|
192
|
+
__metadata("design:returntype", void 0)
|
|
193
|
+
], XtermLinkAdapter.prototype, "initializeLinkFields", null);
|
|
194
|
+
XtermLinkAdapter = __decorate([
|
|
195
|
+
(0, inversify_1.injectable)()
|
|
196
|
+
], XtermLinkAdapter);
|
|
197
|
+
exports.XtermLinkAdapter = XtermLinkAdapter;
|
|
198
198
|
//# sourceMappingURL=terminal-link-provider.js.map
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { interfaces } from '@theia/core/shared/inversify';
|
|
2
|
-
import { PreferenceProxy, PreferenceService, PreferenceSchema } from '@theia/core/lib/browser';
|
|
3
|
-
export declare const TerminalConfigSchema: PreferenceSchema;
|
|
4
|
-
export declare type Profiles = null | {
|
|
5
|
-
[key: string]: {
|
|
6
|
-
path?: string | string[];
|
|
7
|
-
source?: string;
|
|
8
|
-
args?: string | string[];
|
|
9
|
-
env?: {
|
|
10
|
-
[key: string]: string;
|
|
11
|
-
};
|
|
12
|
-
overrideName?: boolean;
|
|
13
|
-
icon?: string;
|
|
14
|
-
color?: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export interface TerminalConfiguration {
|
|
18
|
-
'terminal.enableCopy': boolean;
|
|
19
|
-
'terminal.enablePaste': boolean;
|
|
20
|
-
'terminal.integrated.fontFamily': string;
|
|
21
|
-
'terminal.integrated.fontSize': number;
|
|
22
|
-
'terminal.integrated.fontWeight': FontWeight;
|
|
23
|
-
'terminal.integrated.fontWeightBold': FontWeight;
|
|
24
|
-
'terminal.integrated.drawBoldTextInBrightColors': boolean;
|
|
25
|
-
'terminal.integrated.letterSpacing': number;
|
|
26
|
-
'terminal.integrated.lineHeight': number;
|
|
27
|
-
'terminal.integrated.scrollback': number;
|
|
28
|
-
'terminal.integrated.fastScrollSensitivity': number;
|
|
29
|
-
'terminal.integrated.rendererType': TerminalRendererType;
|
|
30
|
-
'terminal.integrated.copyOnSelection': boolean;
|
|
31
|
-
'terminal.integrated.cursorBlinking': boolean;
|
|
32
|
-
'terminal.integrated.cursorStyle': CursorStyleVSCode;
|
|
33
|
-
'terminal.integrated.cursorWidth': number;
|
|
34
|
-
'terminal.integrated.shell.windows': string | null | undefined;
|
|
35
|
-
'terminal.integrated.shell.osx': string | null | undefined;
|
|
36
|
-
'terminal.integrated.shell.linux': string | null | undefined;
|
|
37
|
-
'terminal.integrated.shellArgs.windows': string[];
|
|
38
|
-
'terminal.integrated.shellArgs.osx': string[];
|
|
39
|
-
'terminal.integrated.shellArgs.linux': string[];
|
|
40
|
-
'terminal.integrated.defaultProfile.windows': string;
|
|
41
|
-
'terminal.integrated.defaultProfile.linux': string;
|
|
42
|
-
'terminal.integrated.defaultProfile.osx': string;
|
|
43
|
-
'terminal.integrated.profiles.windows': Profiles;
|
|
44
|
-
'terminal.integrated.profiles.linux': Profiles;
|
|
45
|
-
'terminal.integrated.profiles.osx': Profiles;
|
|
46
|
-
'terminal.integrated.confirmOnExit': ConfirmOnExitType;
|
|
47
|
-
'terminal.integrated.enablePersistentSessions': boolean;
|
|
48
|
-
}
|
|
49
|
-
declare type FontWeight = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
50
|
-
export declare type CursorStyle = 'block' | 'underline' | 'bar';
|
|
51
|
-
export declare type CursorStyleVSCode = CursorStyle | 'line';
|
|
52
|
-
export declare type TerminalRendererType = 'canvas' | 'dom';
|
|
53
|
-
export declare type ConfirmOnExitType = 'never' | 'always' | 'hasChildProcesses';
|
|
54
|
-
export declare const DEFAULT_TERMINAL_RENDERER_TYPE = "canvas";
|
|
55
|
-
export declare function isTerminalRendererType(arg: unknown): arg is TerminalRendererType;
|
|
56
|
-
export declare const TerminalPreferenceContribution: unique symbol;
|
|
57
|
-
export declare const TerminalPreferences: unique symbol;
|
|
58
|
-
export declare type TerminalPreferences = PreferenceProxy<TerminalConfiguration>;
|
|
59
|
-
export declare function createTerminalPreferences(preferences: PreferenceService, schema?: PreferenceSchema): TerminalPreferences;
|
|
60
|
-
export declare function bindTerminalPreferences(bind: interfaces.Bind): void;
|
|
61
|
-
export {};
|
|
1
|
+
import { interfaces } from '@theia/core/shared/inversify';
|
|
2
|
+
import { PreferenceProxy, PreferenceService, PreferenceSchema } from '@theia/core/lib/browser';
|
|
3
|
+
export declare const TerminalConfigSchema: PreferenceSchema;
|
|
4
|
+
export declare type Profiles = null | {
|
|
5
|
+
[key: string]: {
|
|
6
|
+
path?: string | string[];
|
|
7
|
+
source?: string;
|
|
8
|
+
args?: string | string[];
|
|
9
|
+
env?: {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
12
|
+
overrideName?: boolean;
|
|
13
|
+
icon?: string;
|
|
14
|
+
color?: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export interface TerminalConfiguration {
|
|
18
|
+
'terminal.enableCopy': boolean;
|
|
19
|
+
'terminal.enablePaste': boolean;
|
|
20
|
+
'terminal.integrated.fontFamily': string;
|
|
21
|
+
'terminal.integrated.fontSize': number;
|
|
22
|
+
'terminal.integrated.fontWeight': FontWeight;
|
|
23
|
+
'terminal.integrated.fontWeightBold': FontWeight;
|
|
24
|
+
'terminal.integrated.drawBoldTextInBrightColors': boolean;
|
|
25
|
+
'terminal.integrated.letterSpacing': number;
|
|
26
|
+
'terminal.integrated.lineHeight': number;
|
|
27
|
+
'terminal.integrated.scrollback': number;
|
|
28
|
+
'terminal.integrated.fastScrollSensitivity': number;
|
|
29
|
+
'terminal.integrated.rendererType': TerminalRendererType;
|
|
30
|
+
'terminal.integrated.copyOnSelection': boolean;
|
|
31
|
+
'terminal.integrated.cursorBlinking': boolean;
|
|
32
|
+
'terminal.integrated.cursorStyle': CursorStyleVSCode;
|
|
33
|
+
'terminal.integrated.cursorWidth': number;
|
|
34
|
+
'terminal.integrated.shell.windows': string | null | undefined;
|
|
35
|
+
'terminal.integrated.shell.osx': string | null | undefined;
|
|
36
|
+
'terminal.integrated.shell.linux': string | null | undefined;
|
|
37
|
+
'terminal.integrated.shellArgs.windows': string[];
|
|
38
|
+
'terminal.integrated.shellArgs.osx': string[];
|
|
39
|
+
'terminal.integrated.shellArgs.linux': string[];
|
|
40
|
+
'terminal.integrated.defaultProfile.windows': string;
|
|
41
|
+
'terminal.integrated.defaultProfile.linux': string;
|
|
42
|
+
'terminal.integrated.defaultProfile.osx': string;
|
|
43
|
+
'terminal.integrated.profiles.windows': Profiles;
|
|
44
|
+
'terminal.integrated.profiles.linux': Profiles;
|
|
45
|
+
'terminal.integrated.profiles.osx': Profiles;
|
|
46
|
+
'terminal.integrated.confirmOnExit': ConfirmOnExitType;
|
|
47
|
+
'terminal.integrated.enablePersistentSessions': boolean;
|
|
48
|
+
}
|
|
49
|
+
declare type FontWeight = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
50
|
+
export declare type CursorStyle = 'block' | 'underline' | 'bar';
|
|
51
|
+
export declare type CursorStyleVSCode = CursorStyle | 'line';
|
|
52
|
+
export declare type TerminalRendererType = 'canvas' | 'dom';
|
|
53
|
+
export declare type ConfirmOnExitType = 'never' | 'always' | 'hasChildProcesses';
|
|
54
|
+
export declare const DEFAULT_TERMINAL_RENDERER_TYPE = "canvas";
|
|
55
|
+
export declare function isTerminalRendererType(arg: unknown): arg is TerminalRendererType;
|
|
56
|
+
export declare const TerminalPreferenceContribution: unique symbol;
|
|
57
|
+
export declare const TerminalPreferences: unique symbol;
|
|
58
|
+
export declare type TerminalPreferences = PreferenceProxy<TerminalConfiguration>;
|
|
59
|
+
export declare function createTerminalPreferences(preferences: PreferenceService, schema?: PreferenceSchema): TerminalPreferences;
|
|
60
|
+
export declare function bindTerminalPreferences(bind: interfaces.Bind): void;
|
|
61
|
+
export {};
|
|
62
62
|
//# sourceMappingURL=terminal-preferences.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-preferences.d.ts","sourceRoot":"","sources":["../../src/browser/terminal-preferences.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,UAAU,E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