@codingame/monaco-vscode-output-service-override 1.85.4 → 2.0.0-rework-ci.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/output.js +1 -1
- package/package.json +5 -5
- package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +38 -38
- package/vscode/src/vs/workbench/contrib/output/browser/outputLinkProvider.js +7 -7
- package/vscode/src/vs/workbench/contrib/output/browser/outputServices.js +10 -10
- package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +20 -20
- package/vscode/src/vs/workbench/contrib/output/common/outputLinkComputer.js +18 -18
- package/workers/outputLinkComputer.worker.js +1 -1
package/output.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SyncDescriptor } from '
|
|
1
|
+
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
2
2
|
import { OutputService } from './vscode/src/vs/workbench/contrib/output/browser/outputServices.js';
|
|
3
3
|
import { IOutputService } from 'vscode/vscode/vs/workbench/services/output/common/output';
|
|
4
4
|
import { IOutputChannelModelService, OutputChannelModelService } from 'vscode/vscode/vs/workbench/contrib/output/common/outputChannelModelService';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-output-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-rework-ci.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git
|
|
12
|
+
"url": "git@github.com:CodinGame/monaco-vscode-api.git"
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"private": false,
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
22
|
-
"
|
|
23
|
-
"@codingame/monaco-vscode-log-service-override": "
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@2.0.0-rework-ci.1",
|
|
22
|
+
"vscode-marked": "npm:marked@=3.0.2",
|
|
23
|
+
"@codingame/monaco-vscode-log-service-override": "2.0.0-rework-ci.1"
|
|
24
24
|
},
|
|
25
25
|
"exports": {
|
|
26
26
|
".": {
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
3
|
-
import { KeyChord } from '
|
|
4
|
-
import { ModesRegistry } from '
|
|
5
|
-
import { Registry } from '
|
|
6
|
-
import { registerAction2, Action2, MenuId, MenuRegistry } from '
|
|
2
|
+
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
+
import { KeyChord } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
4
|
+
import { ModesRegistry } from 'vscode/vscode/vs/editor/common/languages/modesRegistry';
|
|
5
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
6
|
+
import { registerAction2, Action2, MenuId, MenuRegistry } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
7
7
|
import { OUTPUT_MODE_ID, OUTPUT_MIME, LOG_MODE_ID, LOG_MIME, OUTPUT_VIEW_ID, IOutputService, Extensions as Extensions$3, CONTEXT_IN_OUTPUT, CONTEXT_OUTPUT_SCROLL_LOCK, CONTEXT_ACTIVE_LOG_OUTPUT, ACTIVE_OUTPUT_CHANNEL_CONTEXT } from 'vscode/vscode/vs/workbench/services/output/common/output';
|
|
8
8
|
import { OutputViewPane } from './outputView.js';
|
|
9
|
-
import { SyncDescriptor } from '
|
|
9
|
+
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
10
10
|
import { Extensions as Extensions$1 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
11
|
-
import { IInstantiationService } from '
|
|
11
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
12
12
|
import { Extensions, IViewsService } from 'vscode/vscode/vs/workbench/common/views';
|
|
13
13
|
import { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
14
|
-
import { Extensions as Extensions$2 } from '
|
|
15
|
-
import { IQuickInputService } from '
|
|
14
|
+
import { Extensions as Extensions$2 } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
15
|
+
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
16
16
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
17
|
-
import { assertIsDefined } from '
|
|
18
|
-
import { ContextKeyExpr } from '
|
|
19
|
-
import { Codicon } from '
|
|
20
|
-
import { registerIcon } from '
|
|
21
|
-
import { Categories } from '
|
|
22
|
-
import { Disposable, toDisposable, dispose } from '
|
|
17
|
+
import { assertIsDefined } from 'vscode/vscode/vs/base/common/types';
|
|
18
|
+
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
19
|
+
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
20
|
+
import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
|
21
|
+
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
22
|
+
import { Disposable, toDisposable, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
23
23
|
import { IFilesConfigurationService } from 'vscode/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService';
|
|
24
|
-
import { IAccessibleNotificationService } from '
|
|
24
|
+
import { IAccessibleNotificationService } from 'vscode/vscode/vs/platform/accessibility/common/accessibility';
|
|
25
25
|
|
|
26
26
|
ModesRegistry.registerLanguage({
|
|
27
27
|
id: OUTPUT_MODE_ID,
|
|
@@ -33,14 +33,14 @@ ModesRegistry.registerLanguage({
|
|
|
33
33
|
extensions: [],
|
|
34
34
|
mimetypes: [LOG_MIME]
|
|
35
35
|
});
|
|
36
|
-
const outputViewIcon = registerIcon('output-view-icon', Codicon.output, (
|
|
36
|
+
const outputViewIcon = registerIcon('output-view-icon', Codicon.output, ( localizeWithPath(
|
|
37
37
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
38
38
|
'outputViewIcon',
|
|
39
39
|
'View icon of the output view.'
|
|
40
40
|
)));
|
|
41
41
|
const VIEW_CONTAINER = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
42
42
|
id: OUTPUT_VIEW_ID,
|
|
43
|
-
title: (
|
|
43
|
+
title: ( localize2WithPath(
|
|
44
44
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
45
45
|
'output',
|
|
46
46
|
"Output"
|
|
@@ -56,7 +56,7 @@ const VIEW_CONTAINER = ( Registry.as(Extensions.ViewContainersRegistry)).registe
|
|
|
56
56
|
}, 1 , { doNotRegisterOpenCommand: true });
|
|
57
57
|
( Registry.as(Extensions.ViewsRegistry)).registerViews([{
|
|
58
58
|
id: OUTPUT_VIEW_ID,
|
|
59
|
-
name: (
|
|
59
|
+
name: ( localize2WithPath(
|
|
60
60
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
61
61
|
'output',
|
|
62
62
|
"Output"
|
|
@@ -67,7 +67,7 @@ const VIEW_CONTAINER = ( Registry.as(Extensions.ViewContainersRegistry)).registe
|
|
|
67
67
|
ctorDescriptor: ( new SyncDescriptor(OutputViewPane)),
|
|
68
68
|
openCommandActionDescriptor: {
|
|
69
69
|
id: 'workbench.action.output.toggleOutput',
|
|
70
|
-
mnemonicTitle: (
|
|
70
|
+
mnemonicTitle: ( localizeWithPath(
|
|
71
71
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
72
72
|
{ key: 'miToggleOutput', comment: ['&& denotes a mnemonic'] },
|
|
73
73
|
"&&Output"
|
|
@@ -101,7 +101,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
101
101
|
constructor() {
|
|
102
102
|
super({
|
|
103
103
|
id: `workbench.output.action.switchBetweenOutputs`,
|
|
104
|
-
title: (
|
|
104
|
+
title: ( localizeWithPath(
|
|
105
105
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
106
106
|
'switchBetweenOutputs.label',
|
|
107
107
|
"Switch Output"
|
|
@@ -117,7 +117,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
117
117
|
const switchOutputMenu = ( new MenuId('workbench.output.menu.switchOutput'));
|
|
118
118
|
this._register(MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
119
119
|
submenu: switchOutputMenu,
|
|
120
|
-
title: (
|
|
120
|
+
title: ( localizeWithPath(
|
|
121
121
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
122
122
|
'switchToOutput.label',
|
|
123
123
|
"Switch Output"
|
|
@@ -169,12 +169,12 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
169
169
|
constructor() {
|
|
170
170
|
super({
|
|
171
171
|
id: 'workbench.action.showOutputChannels',
|
|
172
|
-
title: (
|
|
172
|
+
title: ( localize2WithPath(
|
|
173
173
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
174
174
|
'showOutputChannels',
|
|
175
175
|
"Show Output Channels..."
|
|
176
176
|
)),
|
|
177
|
-
category: (
|
|
177
|
+
category: ( localize2WithPath(
|
|
178
178
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
179
179
|
'output',
|
|
180
180
|
"Output"
|
|
@@ -204,7 +204,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
204
204
|
for (const { id, label } of coreChannels) {
|
|
205
205
|
entries.push({ id, label });
|
|
206
206
|
}
|
|
207
|
-
const entry = await quickInputService.pick(entries, { placeHolder: (
|
|
207
|
+
const entry = await quickInputService.pick(entries, { placeHolder: ( localizeWithPath(
|
|
208
208
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
209
209
|
'selectOutput',
|
|
210
210
|
"Select Output Channel"
|
|
@@ -220,7 +220,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
220
220
|
constructor() {
|
|
221
221
|
super({
|
|
222
222
|
id: `workbench.output.action.clearOutput`,
|
|
223
|
-
title: (
|
|
223
|
+
title: ( localize2WithPath(
|
|
224
224
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
225
225
|
'clearOutput.label',
|
|
226
226
|
"Clear Output"
|
|
@@ -256,12 +256,12 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
256
256
|
constructor() {
|
|
257
257
|
super({
|
|
258
258
|
id: `workbench.output.action.toggleAutoScroll`,
|
|
259
|
-
title: (
|
|
259
|
+
title: ( localize2WithPath(
|
|
260
260
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
261
261
|
'toggleAutoScroll',
|
|
262
262
|
"Toggle Auto Scrolling"
|
|
263
263
|
)),
|
|
264
|
-
tooltip: (
|
|
264
|
+
tooltip: ( localizeWithPath(
|
|
265
265
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
266
266
|
'outputScrollOff',
|
|
267
267
|
"Turn Auto Scrolling Off"
|
|
@@ -276,7 +276,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
276
276
|
toggled: {
|
|
277
277
|
condition: CONTEXT_OUTPUT_SCROLL_LOCK,
|
|
278
278
|
icon: Codicon.unlock,
|
|
279
|
-
tooltip: (
|
|
279
|
+
tooltip: ( localizeWithPath(
|
|
280
280
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
281
281
|
'outputScrollOn',
|
|
282
282
|
"Turn Auto Scrolling On"
|
|
@@ -295,7 +295,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
295
295
|
constructor() {
|
|
296
296
|
super({
|
|
297
297
|
id: `workbench.action.openActiveLogOutputFile`,
|
|
298
|
-
title: (
|
|
298
|
+
title: ( localize2WithPath(
|
|
299
299
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
300
300
|
'openActiveLogOutputFile',
|
|
301
301
|
"Open Log Output File"
|
|
@@ -342,7 +342,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
342
342
|
constructor() {
|
|
343
343
|
super({
|
|
344
344
|
id: 'workbench.action.showLogs',
|
|
345
|
-
title: (
|
|
345
|
+
title: ( localize2WithPath(
|
|
346
346
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
347
347
|
'showLogs',
|
|
348
348
|
"Show Logs..."
|
|
@@ -372,7 +372,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
372
372
|
entries.push({ id, label });
|
|
373
373
|
}
|
|
374
374
|
if (extensionLogs.length && logs.length) {
|
|
375
|
-
entries.push({ type: 'separator', label: (
|
|
375
|
+
entries.push({ type: 'separator', label: ( localizeWithPath(
|
|
376
376
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
377
377
|
'extensionLogs',
|
|
378
378
|
"Extension Logs"
|
|
@@ -381,7 +381,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
381
381
|
for (const { id, label } of extensionLogs) {
|
|
382
382
|
entries.push({ id, label });
|
|
383
383
|
}
|
|
384
|
-
const entry = await quickInputService.pick(entries, { placeHolder: (
|
|
384
|
+
const entry = await quickInputService.pick(entries, { placeHolder: ( localizeWithPath(
|
|
385
385
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
386
386
|
'selectlog',
|
|
387
387
|
"Select Log"
|
|
@@ -397,7 +397,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
397
397
|
constructor() {
|
|
398
398
|
super({
|
|
399
399
|
id: 'workbench.action.openLogFile',
|
|
400
|
-
title: (
|
|
400
|
+
title: ( localize2WithPath(
|
|
401
401
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
402
402
|
'openLogFile',
|
|
403
403
|
"Open Log File..."
|
|
@@ -411,7 +411,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
411
411
|
args: [{
|
|
412
412
|
name: 'logFile',
|
|
413
413
|
schema: {
|
|
414
|
-
markdownDescription: (
|
|
414
|
+
markdownDescription: ( localizeWithPath(
|
|
415
415
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
416
416
|
'logFile',
|
|
417
417
|
"The id of the log file to open, for example `\"window\"`. Currently the best way to get this is to get the ID by checking the `workbench.action.output.show.<id>` commands"
|
|
@@ -435,7 +435,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
435
435
|
entry = entries.find(e => e.id === argName);
|
|
436
436
|
}
|
|
437
437
|
if (!entry) {
|
|
438
|
-
entry = await quickInputService.pick(entries, { placeHolder: (
|
|
438
|
+
entry = await quickInputService.pick(entries, { placeHolder: ( localizeWithPath(
|
|
439
439
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
440
440
|
'selectlogFile',
|
|
441
441
|
"Select Log File"
|
|
@@ -463,7 +463,7 @@ OutputContribution = ( __decorate([
|
|
|
463
463
|
( Registry.as(Extensions$2.Configuration)).registerConfiguration({
|
|
464
464
|
id: 'output',
|
|
465
465
|
order: 30,
|
|
466
|
-
title: (
|
|
466
|
+
title: ( localizeWithPath(
|
|
467
467
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
468
468
|
'output',
|
|
469
469
|
"Output"
|
|
@@ -472,7 +472,7 @@ OutputContribution = ( __decorate([
|
|
|
472
472
|
properties: {
|
|
473
473
|
'output.smartScroll.enabled': {
|
|
474
474
|
type: 'boolean',
|
|
475
|
-
description: (
|
|
475
|
+
description: ( localizeWithPath(
|
|
476
476
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
477
477
|
'output.smartScroll.enabled',
|
|
478
478
|
"Enable/disable the ability of smart scrolling in the output view. Smart scrolling allows you to lock scrolling automatically when you click in the output view and unlocks when you click in the last line."
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { RunOnceScheduler } from '
|
|
3
|
-
import { IModelService } from '
|
|
4
|
-
import { IWorkspaceContextService } from '
|
|
2
|
+
import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
3
|
+
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
4
|
+
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
5
5
|
import { OUTPUT_MODE_ID, LOG_MODE_ID } from 'vscode/vscode/vs/workbench/services/output/common/output';
|
|
6
|
-
import { createWebWorker } from '
|
|
7
|
-
import { dispose } from '
|
|
8
|
-
import { ILanguageConfigurationService } from '
|
|
9
|
-
import { ILanguageFeaturesService } from '
|
|
6
|
+
import { createWebWorker } from 'vscode/vscode/vs/editor/browser/services/webWorker';
|
|
7
|
+
import { dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
8
|
+
import { ILanguageConfigurationService } from 'vscode/vscode/vs/editor/common/languages/languageConfigurationRegistry';
|
|
9
|
+
import { ILanguageFeaturesService } from 'vscode/vscode/vs/editor/common/services/languageFeatures';
|
|
10
10
|
|
|
11
11
|
var OutputLinkProvider_1;
|
|
12
12
|
let OutputLinkProvider = class OutputLinkProvider {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Emitter, Event } from '
|
|
3
|
-
import { URI } from '
|
|
4
|
-
import { Disposable, dispose } from '
|
|
5
|
-
import { IInstantiationService } from '
|
|
6
|
-
import { IStorageService } from '
|
|
7
|
-
import { Registry } from '
|
|
2
|
+
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
3
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
4
|
+
import { Disposable, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
7
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
8
8
|
import { OUTPUT_SCHEME, LOG_MIME, OUTPUT_MIME, ACTIVE_OUTPUT_CHANNEL_CONTEXT, CONTEXT_ACTIVE_LOG_OUTPUT, Extensions, OUTPUT_VIEW_ID } from 'vscode/vscode/vs/workbench/services/output/common/output';
|
|
9
9
|
import { OutputLinkProvider } from './outputLinkProvider.js';
|
|
10
|
-
import { ITextModelService } from '
|
|
11
|
-
import { ILogService } from '
|
|
10
|
+
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
11
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
12
12
|
import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
13
13
|
import { IViewsService } from 'vscode/vscode/vs/workbench/common/views';
|
|
14
14
|
import { IOutputChannelModelService } from 'vscode/vscode/vs/workbench/contrib/output/common/outputChannelModelService';
|
|
15
|
-
import { ILanguageService } from '
|
|
16
|
-
import { IContextKeyService } from '
|
|
15
|
+
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
16
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
17
17
|
|
|
18
18
|
const OUTPUT_ACTIVE_CHANNEL_KEY = 'output.activechannel';
|
|
19
19
|
let OutputChannel = class OutputChannel extends Disposable {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
3
|
-
import { ITelemetryService } from '
|
|
4
|
-
import { IStorageService } from '
|
|
5
|
-
import { ITextResourceConfigurationService } from '
|
|
6
|
-
import { IInstantiationService } from '
|
|
7
|
-
import { IContextKeyService } from '
|
|
2
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
4
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
5
|
+
import { ITextResourceConfigurationService } from 'vscode/vscode/vs/editor/common/services/textResourceConfiguration';
|
|
6
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
7
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
8
8
|
import { AbstractTextResourceEditor } from 'vscode/vscode/vs/workbench/browser/parts/editor/textResourceEditor';
|
|
9
9
|
import { CONTEXT_OUTPUT_SCROLL_LOCK, OUTPUT_VIEW_ID, CONTEXT_IN_OUTPUT } from 'vscode/vscode/vs/workbench/services/output/common/output';
|
|
10
|
-
import { registerThemingParticipant, IThemeService } from '
|
|
11
|
-
import { IConfigurationService } from '
|
|
10
|
+
import { registerThemingParticipant, IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
11
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
12
12
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
13
13
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
14
14
|
import { ViewPane } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
15
|
-
import { IKeybindingService } from '
|
|
16
|
-
import { IContextMenuService } from '
|
|
15
|
+
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
16
|
+
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView';
|
|
17
17
|
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views';
|
|
18
18
|
import { TextResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/textResourceEditorInput';
|
|
19
|
-
import { IOpenerService } from '
|
|
19
|
+
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener';
|
|
20
20
|
import { SIDE_BAR_BACKGROUND } from 'vscode/vscode/vs/workbench/common/theme';
|
|
21
|
-
import { editorBackground } from '
|
|
22
|
-
import { Dimension } from '
|
|
23
|
-
import { createCancelablePromise } from '
|
|
24
|
-
import { IFileService } from '
|
|
21
|
+
import { editorBackground } from 'vscode/vscode/vs/platform/theme/common/colorRegistry';
|
|
22
|
+
import { Dimension } from 'vscode/vscode/vs/base/browser/dom';
|
|
23
|
+
import { createCancelablePromise } from 'vscode/vscode/vs/base/common/async';
|
|
24
|
+
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files';
|
|
25
25
|
import { ResourceContextKey } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
26
|
-
import { ServiceCollection } from '
|
|
26
|
+
import { ServiceCollection } from 'vscode/vscode/vs/platform/instantiation/common/serviceCollection';
|
|
27
27
|
|
|
28
28
|
let OutputViewPane = class OutputViewPane extends ViewPane {
|
|
29
29
|
get scrollLock() { return !!this.scrollLockContextKey.get(); }
|
|
@@ -103,12 +103,12 @@ let OutputViewPane = class OutputViewPane extends ViewPane {
|
|
|
103
103
|
this.editorPromise = null;
|
|
104
104
|
}
|
|
105
105
|
createInput(channel) {
|
|
106
|
-
return this.instantiationService.createInstance(TextResourceEditorInput, channel.uri, (
|
|
106
|
+
return this.instantiationService.createInstance(TextResourceEditorInput, channel.uri, ( localizeWithPath(
|
|
107
107
|
'vs/workbench/contrib/output/browser/outputView',
|
|
108
108
|
'output model title',
|
|
109
109
|
"{0} - Output",
|
|
110
110
|
channel.label
|
|
111
|
-
)), (
|
|
111
|
+
)), ( localizeWithPath(
|
|
112
112
|
'vs/workbench/contrib/output/browser/outputView',
|
|
113
113
|
'channel',
|
|
114
114
|
"Output channel for '{0}'",
|
|
@@ -137,7 +137,7 @@ let OutputEditor = class OutputEditor extends AbstractTextResourceEditor {
|
|
|
137
137
|
return OUTPUT_VIEW_ID;
|
|
138
138
|
}
|
|
139
139
|
getTitle() {
|
|
140
|
-
return (
|
|
140
|
+
return ( localizeWithPath('vs/workbench/contrib/output/browser/outputView', 'output', "Output"));
|
|
141
141
|
}
|
|
142
142
|
getConfigurationOverrides(configuration) {
|
|
143
143
|
const options = super.getConfigurationOverrides(configuration);
|
|
@@ -171,7 +171,7 @@ let OutputEditor = class OutputEditor extends AbstractTextResourceEditor {
|
|
|
171
171
|
return options;
|
|
172
172
|
}
|
|
173
173
|
getAriaLabel() {
|
|
174
|
-
return this.input ? this.input.getAriaLabel() : (
|
|
174
|
+
return this.input ? this.input.getAriaLabel() : ( localizeWithPath(
|
|
175
175
|
'vs/workbench/contrib/output/browser/outputView',
|
|
176
176
|
'outputViewAriaLabel',
|
|
177
177
|
"Output panel"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { URI } from '
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { Range } from '
|
|
6
|
-
import { isWindows } from '
|
|
7
|
-
import { Schemas } from '
|
|
1
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
2
|
+
import { toSlashes } from 'vscode/vscode/vs/base/common/extpath';
|
|
3
|
+
import { joinPath } from 'vscode/vscode/vs/base/common/resources';
|
|
4
|
+
import { splitLines, escapeRegExpCharacters, rtrim, format } from 'vscode/vscode/vs/base/common/strings';
|
|
5
|
+
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
6
|
+
import { isWindows } from 'vscode/vscode/vs/base/common/platform';
|
|
7
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
8
8
|
|
|
9
9
|
class OutputLinkComputer {
|
|
10
10
|
constructor(ctx, createData) {
|
|
@@ -31,12 +31,12 @@ class OutputLinkComputer {
|
|
|
31
31
|
return [];
|
|
32
32
|
}
|
|
33
33
|
const links = [];
|
|
34
|
-
const lines =
|
|
34
|
+
const lines = splitLines(model.getValue());
|
|
35
35
|
for (const [folderUri, folderPatterns] of this.patterns) {
|
|
36
36
|
const resourceCreator = {
|
|
37
37
|
toResource: (folderRelativePath) => {
|
|
38
38
|
if (typeof folderRelativePath === 'string') {
|
|
39
|
-
return
|
|
39
|
+
return joinPath(folderUri, folderRelativePath);
|
|
40
40
|
}
|
|
41
41
|
return null;
|
|
42
42
|
}
|
|
@@ -52,7 +52,7 @@ class OutputLinkComputer {
|
|
|
52
52
|
const workspaceFolderPath = workspaceFolder.scheme === Schemas.file ? workspaceFolder.fsPath : workspaceFolder.path;
|
|
53
53
|
const workspaceFolderVariants = [workspaceFolderPath];
|
|
54
54
|
if (isWindows && workspaceFolder.scheme === Schemas.file) {
|
|
55
|
-
workspaceFolderVariants.push(
|
|
55
|
+
workspaceFolderVariants.push(toSlashes(workspaceFolderPath));
|
|
56
56
|
}
|
|
57
57
|
for (const workspaceFolderVariant of workspaceFolderVariants) {
|
|
58
58
|
const validPathCharacterPattern = '[^\\s\\(\\):<>"]';
|
|
@@ -60,19 +60,19 @@ class OutputLinkComputer {
|
|
|
60
60
|
const pathPattern = `${validPathCharacterOrSpacePattern}+\\.${validPathCharacterPattern}+`;
|
|
61
61
|
const strictPathPattern = `${validPathCharacterPattern}+`;
|
|
62
62
|
patterns.push(( new RegExp(
|
|
63
|
-
|
|
63
|
+
escapeRegExpCharacters(workspaceFolderVariant) + `(${pathPattern}) on line ((\\d+)(, column (\\d+))?)`,
|
|
64
64
|
'gi'
|
|
65
65
|
)));
|
|
66
66
|
patterns.push(( new RegExp(
|
|
67
|
-
|
|
67
|
+
escapeRegExpCharacters(workspaceFolderVariant) + `(${pathPattern}):line ((\\d+)(, column (\\d+))?)`,
|
|
68
68
|
'gi'
|
|
69
69
|
)));
|
|
70
70
|
patterns.push(( new RegExp(
|
|
71
|
-
|
|
71
|
+
escapeRegExpCharacters(workspaceFolderVariant) + `(${pathPattern})(\\s?\\((\\d+)(,(\\d+))?)\\)`,
|
|
72
72
|
'gi'
|
|
73
73
|
)));
|
|
74
74
|
patterns.push(( new RegExp(
|
|
75
|
-
|
|
75
|
+
escapeRegExpCharacters(workspaceFolderVariant) + `(${strictPathPattern})(:(\\d+))?(:(\\d+))?`,
|
|
76
76
|
'gi'
|
|
77
77
|
)));
|
|
78
78
|
}
|
|
@@ -85,7 +85,7 @@ class OutputLinkComputer {
|
|
|
85
85
|
let match;
|
|
86
86
|
let offset = 0;
|
|
87
87
|
while ((match = pattern.exec(line)) !== null) {
|
|
88
|
-
const folderRelativePath =
|
|
88
|
+
const folderRelativePath = rtrim(match[1], '.').replace(/\\/g, '/');
|
|
89
89
|
let resourceString;
|
|
90
90
|
try {
|
|
91
91
|
const resource = resourceCreator.toResource(folderRelativePath);
|
|
@@ -100,13 +100,13 @@ class OutputLinkComputer {
|
|
|
100
100
|
const lineNumber = match[3];
|
|
101
101
|
if (match[5]) {
|
|
102
102
|
const columnNumber = match[5];
|
|
103
|
-
resourceString =
|
|
103
|
+
resourceString = format('{0}#{1},{2}', resourceString, lineNumber, columnNumber);
|
|
104
104
|
}
|
|
105
105
|
else {
|
|
106
|
-
resourceString =
|
|
106
|
+
resourceString = format('{0}#{1}', resourceString, lineNumber);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
const fullMatch =
|
|
109
|
+
const fullMatch = rtrim(match[0], '.');
|
|
110
110
|
const index = line.indexOf(fullMatch, offset);
|
|
111
111
|
offset = index + fullMatch.length;
|
|
112
112
|
const linkRange = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { initialize } from '
|
|
1
|
+
import { initialize } from 'vscode/vscode/vs/editor/editor.worker';
|
|
2
2
|
import { OutputLinkComputer } from '../vscode/src/vs/workbench/contrib/output/common/outputLinkComputer.js';
|
|
3
3
|
|
|
4
4
|
initialize((ctx, createData) => new OutputLinkComputer(ctx, createData));
|