@codingame/monaco-vscode-output-service-override 11.1.1 → 12.0.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.
Files changed (24) hide show
  1. package/index.d.ts +8 -1
  2. package/index.js +19 -1
  3. package/package.json +21 -8
  4. package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.d.ts +1 -0
  5. package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +85 -85
  6. package/vscode/src/vs/workbench/contrib/output/browser/output.css.js +1 -1
  7. package/vscode/src/vs/workbench/contrib/output/browser/outputLinkProvider.d.ts +19 -0
  8. package/vscode/src/vs/workbench/contrib/output/browser/outputLinkProvider.js +2 -1
  9. package/vscode/src/vs/workbench/contrib/output/browser/outputServices.d.ts +65 -0
  10. package/vscode/src/vs/workbench/contrib/output/browser/outputServices.js +7 -5
  11. package/vscode/src/vs/workbench/contrib/output/browser/outputView.d.ts +29 -0
  12. package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +36 -34
  13. package/vscode/src/vs/workbench/contrib/output/common/outputChannelModel.d.ts +71 -0
  14. package/vscode/src/vs/workbench/contrib/output/common/outputChannelModel.js +2 -1
  15. package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.d.ts +16 -0
  16. package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.js +3 -1
  17. package/vscode/src/vs/workbench/contrib/output/common/outputLinkComputer.d.ts +19 -0
  18. package/vscode/src/vs/workbench/contrib/output/common/outputLinkComputer.js +1 -0
  19. package/vscode/src/vs/workbench/contrib/output/common/outputLinkComputerMain.d.ts +1 -0
  20. package/vscode/src/vs/workbench/contrib/output/common/outputLinkComputerMain.js +2 -1
  21. package/worker.js +2 -1
  22. package/workers/outputLinkComputer.worker.d.ts +1 -0
  23. package/output.js +0 -17
  24. package/workers/outputLinkComputer.worker.js +0 -1
package/index.d.ts CHANGED
@@ -1 +1,8 @@
1
- export { default } from 'vscode/service-override/output';
1
+ import type { IEditorOverrideServices } from "vscode/vscode/vs/editor/standalone/browser/standaloneServices";
2
+ import { LogLevel } from "vscode/vscode/vs/platform/log/common/log";
3
+ declare function getServiceOverride(): IEditorOverrideServices;
4
+ /**
5
+ * @deprecated Provide logLevel via the services `initialize` function `configuration.developmentOptions.logLevel` parameter
6
+ */
7
+ declare function getServiceOverride(logLevel?: LogLevel): IEditorOverrideServices;
8
+ export default getServiceOverride;
package/index.js CHANGED
@@ -1 +1,19 @@
1
- export { default } from './output.js';
1
+
2
+ import 'vscode/vscode/vs/platform/log/common/log';
3
+ import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
4
+ import { OutputService } from './vscode/src/vs/workbench/contrib/output/browser/outputServices.js';
5
+ import { IOutputService } from 'vscode/vscode/vs/workbench/services/output/common/output.service';
6
+ import { OutputChannelModelService } from './vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.js';
7
+ import { IOutputChannelModelService } from 'vscode/vscode/vs/workbench/contrib/output/common/outputChannelModelService.service';
8
+ import getServiceOverride$1 from '@codingame/monaco-vscode-log-service-override';
9
+ import './vscode/src/vs/workbench/contrib/output/browser/output.contribution.js';
10
+
11
+ function getServiceOverride(logLevel) {
12
+ return {
13
+ ...getServiceOverride$1(logLevel),
14
+ [IOutputService.toString()]: new SyncDescriptor(OutputService, [], true),
15
+ [IOutputChannelModelService.toString()]: new SyncDescriptor(OutputChannelModelService, [], true)
16
+ };
17
+ }
18
+
19
+ export { getServiceOverride as default };
package/package.json CHANGED
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-output-service-override",
3
- "version": "11.1.1",
3
+ "version": "12.0.0",
4
+ "private": false,
5
+ "description": "VSCode public API plugged on the monaco editor - output service-override",
4
6
  "keywords": [],
5
7
  "author": {
6
8
  "name": "CodinGame",
@@ -12,8 +14,18 @@
12
14
  "url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
13
15
  },
14
16
  "type": "module",
15
- "private": false,
16
- "description": "VSCode public API plugged on the monaco editor - output service-override",
17
+ "dependencies": {
18
+ "@codingame/monaco-vscode-0139c6af-2375-559c-af57-b738f2fd6d8e-common": "12.0.0",
19
+ "@codingame/monaco-vscode-523730aa-81e6-55d7-9916-87ad537fe087-common": "12.0.0",
20
+ "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "12.0.0",
21
+ "@codingame/monaco-vscode-695440c8-a687-5594-b476-bbc7b36bafe9-common": "12.0.0",
22
+ "@codingame/monaco-vscode-7b77bc98-d4d5-5442-b972-c926eb6db528-common": "12.0.0",
23
+ "@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "12.0.0",
24
+ "@codingame/monaco-vscode-log-service-override": "12.0.0",
25
+ "vscode": "npm:@codingame/monaco-vscode-api@12.0.0"
26
+ },
27
+ "peerDependencies": {},
28
+ "peerDependenciesMeta": {},
17
29
  "main": "index.js",
18
30
  "module": "index.js",
19
31
  "types": "index.d.ts",
@@ -22,14 +34,15 @@
22
34
  "default": "./index.js"
23
35
  },
24
36
  "./vscode/*": {
25
- "default": "./vscode/src/*.js"
37
+ "default": "./vscode/src/*.js",
38
+ "types": "./vscode/src/*.d.ts"
26
39
  },
27
40
  "./worker": {
28
41
  "default": "./worker.js"
42
+ },
43
+ "./*": {
44
+ "default": "./*.js",
45
+ "types": "./*.d.ts"
29
46
  }
30
- },
31
- "dependencies": {
32
- "vscode": "npm:@codingame/monaco-vscode-api@11.1.1",
33
- "@codingame/monaco-vscode-log-service-override": "11.1.1"
34
47
  }
35
48
  }
@@ -1,19 +1,22 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { localize, localize2 } from 'vscode/vscode/vs/nls';
3
- import { KeyChord } from 'vscode/vscode/vs/base/common/keyCodes';
4
+ import { KeyMod, KeyCode, KeyChord } from 'vscode/vscode/vs/base/common/keyCodes';
4
5
  import { ModesRegistry } from 'vscode/vscode/vs/editor/common/languages/modesRegistry';
5
6
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
6
7
  import { registerAction2, Action2, MenuId, MenuRegistry } from 'vscode/vscode/vs/platform/actions/common/actions';
7
- import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
8
+ import 'vscode/vscode/vs/platform/instantiation/common/extensions';
8
9
  import './outputServices.js';
9
10
  import { OUTPUT_MODE_ID, OUTPUT_MIME, LOG_MODE_ID, LOG_MIME, OUTPUT_VIEW_ID, ACTIVE_OUTPUT_CHANNEL_CONTEXT, Extensions as Extensions$1, CONTEXT_IN_OUTPUT, CONTEXT_OUTPUT_SCROLL_LOCK, CONTEXT_ACTIVE_FILE_OUTPUT, CONTEXT_ACTIVE_OUTPUT_LEVEL_SETTABLE, CONTEXT_ACTIVE_OUTPUT_LEVEL, CONTEXT_ACTIVE_OUTPUT_LEVEL_IS_DEFAULT } from 'vscode/vscode/vs/workbench/services/output/common/output';
10
11
  import { IOutputService } from 'vscode/vscode/vs/workbench/services/output/common/output.service';
11
12
  import { OutputViewPane } from './outputView.js';
13
+ import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
12
14
  import { Extensions as Extensions$2 } from 'vscode/vscode/vs/workbench/common/contributions';
13
- import { Extensions } from 'vscode/vscode/vs/workbench/common/views';
15
+ import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
16
+ import { Extensions, ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
14
17
  import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
15
- import { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
16
- import { Extensions as Extensions$3 } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
18
+ import { ViewPaneContainer } from '@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
19
+ import { Extensions as Extensions$3, ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
17
20
  import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
18
21
  import { AUX_WINDOW_GROUP } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
19
22
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
@@ -29,7 +32,7 @@ import { IAccessibilitySignalService } from 'vscode/vscode/vs/platform/accessibi
29
32
  import { LogLevelToLocalizedString, LogLevelToString, LogLevel } from 'vscode/vscode/vs/platform/log/common/log';
30
33
  import { ILoggerService } from 'vscode/vscode/vs/platform/log/common/log.service';
31
34
  import { IDefaultLogLevelsService } from 'vscode/vscode/vs/workbench/contrib/logs/common/defaultLogLevels.service';
32
- import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
35
+ import { KeybindingsRegistry, KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
33
36
  import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
34
37
  import { CONTEXT_ACCESSIBILITY_MODE_ENABLED } from 'vscode/vscode/vs/platform/accessibility/common/accessibility';
35
38
  import { IsWindowsContext } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
@@ -45,33 +48,33 @@ ModesRegistry.registerLanguage({
45
48
  extensions: [],
46
49
  mimetypes: [LOG_MIME]
47
50
  });
48
- const outputViewIcon = registerIcon('output-view-icon', Codicon.output, ( localize(2275, 'View icon of the output view.')));
49
- const VIEW_CONTAINER = ( (Registry.as(Extensions.ViewContainersRegistry))).registerViewContainer({
51
+ const outputViewIcon = registerIcon('output-view-icon', Codicon.output, ( localize(7844, 'View icon of the output view.')));
52
+ const VIEW_CONTAINER = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
50
53
  id: OUTPUT_VIEW_ID,
51
- title: ( localize2(2276, "Output")),
54
+ title: ( localize2(7845, "Output")),
52
55
  icon: outputViewIcon,
53
56
  order: 1,
54
- ctorDescriptor: ( (new SyncDescriptor(
57
+ ctorDescriptor: ( new SyncDescriptor(
55
58
  ViewPaneContainer,
56
59
  [OUTPUT_VIEW_ID, { mergeViewWithContainerWhenSingleView: true }]
57
- ))),
60
+ )),
58
61
  storageId: OUTPUT_VIEW_ID,
59
62
  hideIfEmpty: true,
60
- }, 1 , { doNotRegisterOpenCommand: true });
61
- ( (Registry.as(Extensions.ViewsRegistry))).registerViews([{
63
+ }, ViewContainerLocation.Panel, { doNotRegisterOpenCommand: true });
64
+ ( Registry.as(Extensions.ViewsRegistry)).registerViews([{
62
65
  id: OUTPUT_VIEW_ID,
63
- name: ( localize2(2276, "Output")),
66
+ name: ( localize2(7845, "Output")),
64
67
  containerIcon: outputViewIcon,
65
68
  canMoveView: true,
66
69
  canToggleVisibility: false,
67
- ctorDescriptor: ( (new SyncDescriptor(OutputViewPane))),
70
+ ctorDescriptor: ( new SyncDescriptor(OutputViewPane)),
68
71
  openCommandActionDescriptor: {
69
72
  id: 'workbench.action.output.toggleOutput',
70
- mnemonicTitle: ( localize(2277, "&&Output")),
73
+ mnemonicTitle: ( localize(7846, "&&Output")),
71
74
  keybindings: {
72
- primary: 2048 | 1024 | 51 ,
75
+ primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyU,
73
76
  linux: {
74
- primary: KeyChord(2048 | 41 , 2048 | 38 )
77
+ primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyCode.KeyH)
75
78
  }
76
79
  },
77
80
  order: 1,
@@ -101,7 +104,7 @@ let OutputContribution = class OutputContribution extends Disposable {
101
104
  constructor() {
102
105
  super({
103
106
  id: `workbench.output.action.switchBetweenOutputs`,
104
- title: ( localize(2278, "Switch Output")),
107
+ title: ( localize(7847, "Switch Output")),
105
108
  });
106
109
  }
107
110
  async run(accessor, channelId) {
@@ -110,17 +113,17 @@ let OutputContribution = class OutputContribution extends Disposable {
110
113
  }
111
114
  }
112
115
  }));
113
- const switchOutputMenu = ( (new MenuId('workbench.output.menu.switchOutput')));
116
+ const switchOutputMenu = ( new MenuId('workbench.output.menu.switchOutput'));
114
117
  this._register(MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
115
118
  submenu: switchOutputMenu,
116
- title: ( localize(2279, "Switch Output")),
119
+ title: ( localize(7848, "Switch Output")),
117
120
  group: 'navigation',
118
- when: ( (ContextKeyExpr.equals('view', OUTPUT_VIEW_ID))),
121
+ when: ( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)),
119
122
  order: 1,
120
123
  isSelection: true
121
124
  }));
122
- const registeredChannels = ( (new Map()));
123
- this._register(toDisposable(() => dispose(( (registeredChannels.values())))));
125
+ const registeredChannels = ( new Map());
126
+ this._register(toDisposable(() => dispose(( registeredChannels.values()))));
124
127
  const registerOutputChannels = (channels) => {
125
128
  for (const channel of channels) {
126
129
  const title = channel.label;
@@ -130,7 +133,7 @@ let OutputContribution = class OutputContribution extends Disposable {
130
133
  super({
131
134
  id: `workbench.action.output.show.${channel.id}`,
132
135
  title,
133
- toggled: ( (ACTIVE_OUTPUT_CHANNEL_CONTEXT.isEqualTo(channel.id))),
136
+ toggled: ( ACTIVE_OUTPUT_CHANNEL_CONTEXT.isEqualTo(channel.id)),
134
137
  menu: {
135
138
  id: switchOutputMenu,
136
139
  group,
@@ -144,7 +147,7 @@ let OutputContribution = class OutputContribution extends Disposable {
144
147
  }
145
148
  };
146
149
  registerOutputChannels(this.outputService.getChannelDescriptors());
147
- const outputChannelRegistry = ( (Registry.as(Extensions$1.OutputChannels)));
150
+ const outputChannelRegistry = ( Registry.as(Extensions$1.OutputChannels));
148
151
  this._register(outputChannelRegistry.onDidRegisterChannel(e => {
149
152
  const channel = this.outputService.getChannelDescriptor(e);
150
153
  if (channel) {
@@ -161,8 +164,8 @@ let OutputContribution = class OutputContribution extends Disposable {
161
164
  constructor() {
162
165
  super({
163
166
  id: 'workbench.action.showOutputChannels',
164
- title: ( localize2(2280, "Show Output Channels...")),
165
- category: ( localize2(2276, "Output")),
167
+ title: ( localize2(7849, "Show Output Channels...")),
168
+ category: ( localize2(7845, "Output")),
166
169
  f1: true
167
170
  });
168
171
  }
@@ -188,7 +191,7 @@ let OutputContribution = class OutputContribution extends Disposable {
188
191
  for (const { id, label } of coreChannels) {
189
192
  entries.push({ id, label });
190
193
  }
191
- const entry = await quickInputService.pick(entries, { placeHolder: ( localize(2281, "Select Output Channel")) });
194
+ const entry = await quickInputService.pick(entries, { placeHolder: ( localize(7850, "Select Output Channel")) });
192
195
  if (entry) {
193
196
  return outputService.showChannel(entry.id);
194
197
  }
@@ -200,11 +203,11 @@ let OutputContribution = class OutputContribution extends Disposable {
200
203
  constructor() {
201
204
  super({
202
205
  id: `workbench.output.action.clearOutput`,
203
- title: ( localize2(2282, "Clear Output")),
206
+ title: ( localize2(7851, "Clear Output")),
204
207
  category: Categories.View,
205
208
  menu: [{
206
209
  id: MenuId.ViewTitle,
207
- when: ( (ContextKeyExpr.equals('view', OUTPUT_VIEW_ID))),
210
+ when: ( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)),
208
211
  group: 'navigation',
209
212
  order: 2
210
213
  }, {
@@ -232,11 +235,11 @@ let OutputContribution = class OutputContribution extends Disposable {
232
235
  constructor() {
233
236
  super({
234
237
  id: `workbench.output.action.toggleAutoScroll`,
235
- title: ( localize2(2283, "Toggle Auto Scrolling")),
236
- tooltip: ( localize(2284, "Turn Auto Scrolling Off")),
238
+ title: ( localize2(7852, "Toggle Auto Scrolling")),
239
+ tooltip: ( localize(7853, "Turn Auto Scrolling Off")),
237
240
  menu: {
238
241
  id: MenuId.ViewTitle,
239
- when: ( (ContextKeyExpr.and( (ContextKeyExpr.equals('view', OUTPUT_VIEW_ID))))),
242
+ when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)))),
240
243
  group: 'navigation',
241
244
  order: 3,
242
245
  },
@@ -244,7 +247,7 @@ let OutputContribution = class OutputContribution extends Disposable {
244
247
  toggled: {
245
248
  condition: CONTEXT_OUTPUT_SCROLL_LOCK,
246
249
  icon: Codicon.unlock,
247
- tooltip: ( localize(2285, "Turn Auto Scrolling On"))
250
+ tooltip: ( localize(7854, "Turn Auto Scrolling On"))
248
251
  }
249
252
  });
250
253
  }
@@ -260,10 +263,10 @@ let OutputContribution = class OutputContribution extends Disposable {
260
263
  constructor() {
261
264
  super({
262
265
  id: `workbench.action.openActiveLogOutputFile`,
263
- title: ( localize2(2286, "Open Output in Editor")),
266
+ title: ( localize2(7855, "Open Output in Editor")),
264
267
  menu: [{
265
268
  id: MenuId.ViewTitle,
266
- when: ( (ContextKeyExpr.equals('view', OUTPUT_VIEW_ID))),
269
+ when: ( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)),
267
270
  group: 'navigation',
268
271
  order: 4,
269
272
  isHiddenByDefault: true
@@ -283,10 +286,10 @@ let OutputContribution = class OutputContribution extends Disposable {
283
286
  constructor() {
284
287
  super({
285
288
  id: `workbench.action.openActiveLogOutputFileInNewWindow`,
286
- title: ( localize2(2287, "Open Output in New Window")),
289
+ title: ( localize2(7856, "Open Output in New Window")),
287
290
  menu: [{
288
291
  id: MenuId.ViewTitle,
289
- when: ( (ContextKeyExpr.equals('view', OUTPUT_VIEW_ID))),
292
+ when: ( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)),
290
293
  group: 'navigation',
291
294
  order: 5,
292
295
  isHiddenByDefault: true
@@ -324,15 +327,12 @@ let OutputContribution = class OutputContribution extends Disposable {
324
327
  }
325
328
  registerConfigureActiveOutputLogLevelAction() {
326
329
  const that = this;
327
- const logLevelMenu = ( (new MenuId('workbench.output.menu.logLevel')));
330
+ const logLevelMenu = ( new MenuId('workbench.output.menu.logLevel'));
328
331
  this._register(MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
329
332
  submenu: logLevelMenu,
330
- title: ( localize(2288, "Set Log Level...")),
333
+ title: ( localize(7857, "Set Log Level...")),
331
334
  group: 'navigation',
332
- when: ( (ContextKeyExpr.and(
333
- (ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)),
334
- CONTEXT_ACTIVE_OUTPUT_LEVEL_SETTABLE
335
- ))),
335
+ when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)), CONTEXT_ACTIVE_OUTPUT_LEVEL_SETTABLE)),
336
336
  icon: Codicon.gear,
337
337
  order: 6
338
338
  }));
@@ -343,7 +343,7 @@ let OutputContribution = class OutputContribution extends Disposable {
343
343
  super({
344
344
  id: `workbench.action.output.activeOutputLogLevel.${logLevel}`,
345
345
  title: LogLevelToLocalizedString(logLevel).value,
346
- toggled: ( (CONTEXT_ACTIVE_OUTPUT_LEVEL.isEqualTo(LogLevelToString(logLevel)))),
346
+ toggled: ( CONTEXT_ACTIVE_OUTPUT_LEVEL.isEqualTo(LogLevelToString(logLevel))),
347
347
  menu: {
348
348
  id: logLevelMenu,
349
349
  order: order++,
@@ -372,13 +372,13 @@ let OutputContribution = class OutputContribution extends Disposable {
372
372
  constructor() {
373
373
  super({
374
374
  id: `workbench.action.output.activeOutputLogLevelDefault`,
375
- title: ( localize(2289, "Set As Default")),
375
+ title: ( localize(7858, "Set As Default")),
376
376
  menu: {
377
377
  id: logLevelMenu,
378
378
  order,
379
379
  group: '1_default'
380
380
  },
381
- precondition: ( (CONTEXT_ACTIVE_OUTPUT_LEVEL_IS_DEFAULT.negate()))
381
+ precondition: ( CONTEXT_ACTIVE_OUTPUT_LEVEL_IS_DEFAULT.negate())
382
382
  });
383
383
  }
384
384
  async run(accessor) {
@@ -398,7 +398,7 @@ let OutputContribution = class OutputContribution extends Disposable {
398
398
  constructor() {
399
399
  super({
400
400
  id: 'workbench.action.showLogs',
401
- title: ( localize2(2290, "Show Logs...")),
401
+ title: ( localize2(7859, "Show Logs...")),
402
402
  category: Categories.Developer,
403
403
  menu: {
404
404
  id: MenuId.CommandPalette,
@@ -424,12 +424,12 @@ let OutputContribution = class OutputContribution extends Disposable {
424
424
  entries.push({ id, label });
425
425
  }
426
426
  if (extensionLogs.length && logs.length) {
427
- entries.push({ type: 'separator', label: ( localize(2291, "Extension Logs")) });
427
+ entries.push({ type: 'separator', label: ( localize(7860, "Extension Logs")) });
428
428
  }
429
429
  for (const { id, label } of extensionLogs) {
430
430
  entries.push({ id, label });
431
431
  }
432
- const entry = await quickInputService.pick(entries, { placeHolder: ( localize(2292, "Select Log")) });
432
+ const entry = await quickInputService.pick(entries, { placeHolder: ( localize(7861, "Select Log")) });
433
433
  if (entry) {
434
434
  return outputService.showChannel(entry.id);
435
435
  }
@@ -441,7 +441,7 @@ let OutputContribution = class OutputContribution extends Disposable {
441
441
  constructor() {
442
442
  super({
443
443
  id: 'workbench.action.openLogFile',
444
- title: ( localize2(2293, "Open Log File...")),
444
+ title: ( localize2(7862, "Open Log File...")),
445
445
  category: Categories.Developer,
446
446
  menu: {
447
447
  id: MenuId.CommandPalette,
@@ -452,7 +452,7 @@ let OutputContribution = class OutputContribution extends Disposable {
452
452
  name: 'logFile',
453
453
  schema: {
454
454
  markdownDescription: ( localize(
455
- 2294,
455
+ 7863,
456
456
  "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"
457
457
  )),
458
458
  type: 'string'
@@ -490,7 +490,7 @@ let OutputContribution = class OutputContribution extends Disposable {
490
490
  entries.push({ type: 'separator' });
491
491
  entries.push(...coreChannels.sort((a, b) => a.label.localeCompare(b.label)));
492
492
  }
493
- entry = await quickInputService.pick(entries, { placeHolder: ( localize(2295, "Select Log File")) });
493
+ entry = await quickInputService.pick(entries, { placeHolder: ( localize(7864, "Select Log File")) });
494
494
  }
495
495
  if (entry) {
496
496
  const resource = assertIsDefined(entry.channel.file);
@@ -506,71 +506,71 @@ let OutputContribution = class OutputContribution extends Disposable {
506
506
  }));
507
507
  }
508
508
  };
509
- OutputContribution = ( (__decorate([
510
- ( (__param(0, IOutputService))),
511
- ( (__param(1, IEditorService))),
512
- ( (__param(2, IFilesConfigurationService)))
513
- ], OutputContribution)));
514
- ( (Registry.as(Extensions$2.Workbench))).registerWorkbenchContribution(OutputContribution, 3 );
515
- ( (Registry.as(Extensions$3.Configuration))).registerConfiguration({
509
+ OutputContribution = ( __decorate([
510
+ ( __param(0, IOutputService)),
511
+ ( __param(1, IEditorService)),
512
+ ( __param(2, IFilesConfigurationService))
513
+ ], OutputContribution));
514
+ ( Registry.as(Extensions$2.Workbench)).registerWorkbenchContribution(OutputContribution, LifecyclePhase.Restored);
515
+ ( Registry.as(Extensions$3.Configuration)).registerConfiguration({
516
516
  id: 'output',
517
517
  order: 30,
518
- title: ( localize(2276, "Output")),
518
+ title: ( localize(7845, "Output")),
519
519
  type: 'object',
520
520
  properties: {
521
521
  'output.smartScroll.enabled': {
522
522
  type: 'boolean',
523
523
  description: ( localize(
524
- 2296,
524
+ 7865,
525
525
  "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."
526
526
  )),
527
527
  default: true,
528
- scope: 3 ,
528
+ scope: ConfigurationScope.WINDOW,
529
529
  tags: ['output']
530
530
  }
531
531
  }
532
532
  });
533
533
  KeybindingsRegistry.registerKeybindingRule({
534
534
  id: 'cursorWordAccessibilityLeft',
535
- when: ( (ContextKeyExpr.and(
535
+ when: ( ContextKeyExpr.and(
536
536
  EditorContextKeys.textInputFocus,
537
537
  CONTEXT_ACCESSIBILITY_MODE_ENABLED,
538
538
  IsWindowsContext,
539
- (ContextKeyExpr.equals(FocusedViewContext.key, OUTPUT_VIEW_ID))
540
- ))),
541
- primary: 2048 | 15 ,
542
- weight: 200
539
+ ( ContextKeyExpr.equals(FocusedViewContext.key, OUTPUT_VIEW_ID))
540
+ )),
541
+ primary: KeyMod.CtrlCmd | KeyCode.LeftArrow,
542
+ weight: KeybindingWeight.WorkbenchContrib
543
543
  });
544
544
  KeybindingsRegistry.registerKeybindingRule({
545
545
  id: 'cursorWordAccessibilityLeftSelect',
546
- when: ( (ContextKeyExpr.and(
546
+ when: ( ContextKeyExpr.and(
547
547
  EditorContextKeys.textInputFocus,
548
548
  CONTEXT_ACCESSIBILITY_MODE_ENABLED,
549
549
  IsWindowsContext,
550
- (ContextKeyExpr.equals(FocusedViewContext.key, OUTPUT_VIEW_ID))
551
- ))),
552
- primary: 2048 | 1024 | 15 ,
553
- weight: 200
550
+ ( ContextKeyExpr.equals(FocusedViewContext.key, OUTPUT_VIEW_ID))
551
+ )),
552
+ primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.LeftArrow,
553
+ weight: KeybindingWeight.WorkbenchContrib
554
554
  });
555
555
  KeybindingsRegistry.registerKeybindingRule({
556
556
  id: 'cursorWordAccessibilityRight',
557
- when: ( (ContextKeyExpr.and(
557
+ when: ( ContextKeyExpr.and(
558
558
  EditorContextKeys.textInputFocus,
559
559
  CONTEXT_ACCESSIBILITY_MODE_ENABLED,
560
560
  IsWindowsContext,
561
- (ContextKeyExpr.equals(FocusedViewContext.key, OUTPUT_VIEW_ID))
562
- ))),
563
- primary: 2048 | 17 ,
564
- weight: 200
561
+ ( ContextKeyExpr.equals(FocusedViewContext.key, OUTPUT_VIEW_ID))
562
+ )),
563
+ primary: KeyMod.CtrlCmd | KeyCode.RightArrow,
564
+ weight: KeybindingWeight.WorkbenchContrib
565
565
  });
566
566
  KeybindingsRegistry.registerKeybindingRule({
567
567
  id: 'cursorWordAccessibilityRightSelect',
568
- when: ( (ContextKeyExpr.and(
568
+ when: ( ContextKeyExpr.and(
569
569
  EditorContextKeys.textInputFocus,
570
570
  CONTEXT_ACCESSIBILITY_MODE_ENABLED,
571
571
  IsWindowsContext,
572
- (ContextKeyExpr.equals(FocusedViewContext.key, OUTPUT_VIEW_ID))
573
- ))),
574
- primary: 2048 | 1024 | 17 ,
575
- weight: 200
572
+ ( ContextKeyExpr.equals(FocusedViewContext.key, OUTPUT_VIEW_ID))
573
+ )),
574
+ primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.RightArrow,
575
+ weight: KeybindingWeight.WorkbenchContrib
576
576
  });
@@ -1,4 +1,4 @@
1
- import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css.js';
1
+ import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css';
2
2
 
3
3
  var css = ".monaco-workbench .part.panel>.content .pane-body.output-view .monaco-editor,.monaco-workbench .part.panel>.content .pane-body.output-view .monaco-editor .margin,.monaco-workbench .part.panel>.content .pane-body.output-view .monaco-editor .monaco-editor-background,.monaco-workbench .part.sidebar .output-view .monaco-editor,.monaco-workbench .part.sidebar .output-view .monaco-editor .margin,.monaco-workbench .part.sidebar .output-view .monaco-editor .monaco-editor-background{background-color:var(--vscode-outputView-background)}.monaco-workbench .part.panel>.content .pane-body.output-view .sticky-widget,.monaco-workbench .part.sidebar .output-view .sticky-widget{background-color:var(--vscode-outputViewStickyScroll-background,var(--vscode-panel-background))}";
4
4
  n(css,{});
@@ -0,0 +1,19 @@
1
+ import { IModelService } from "vscode/vscode/vs/editor/common/services/model";
2
+ import { IWorkspaceContextService } from "vscode/vscode/vs/platform/workspace/common/workspace.service";
3
+ import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
4
+ import { ILanguageFeaturesService } from "vscode/vscode/vs/editor/common/services/languageFeatures";
5
+ export declare class OutputLinkProvider extends Disposable {
6
+ private readonly contextService;
7
+ private readonly modelService;
8
+ private readonly languageFeaturesService;
9
+ private static readonly DISPOSE_WORKER_TIME;
10
+ private worker?;
11
+ private disposeWorkerScheduler;
12
+ private linkProviderRegistration;
13
+ constructor(contextService: IWorkspaceContextService, modelService: IModelService, languageFeaturesService: ILanguageFeaturesService);
14
+ private registerListeners;
15
+ private updateLinkProviderWorker;
16
+ private getOrCreateWorker;
17
+ private provideLinks;
18
+ private disposeWorker;
19
+ }
@@ -1,4 +1,5 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
3
4
  import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
4
5
  import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
@@ -0,0 +1,65 @@
1
+ import { Event } from "vscode/vscode/vs/base/common/event";
2
+ import { URI } from "vscode/vscode/vs/base/common/uri";
3
+ import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
4
+ import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
5
+ import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
6
+ import { IOutputChannel, OutputChannelUpdateMode, IOutputChannelDescriptor } from "vscode/vscode/vs/workbench/services/output/common/output";
7
+ import { IOutputService } from "vscode/vscode/vs/workbench/services/output/common/output.service";
8
+ import { ITextModelService, ITextModelContentProvider } from "vscode/vscode/vs/editor/common/services/resolverService";
9
+ import { ITextModel } from "vscode/vscode/vs/editor/common/model";
10
+ import { ILoggerService } from "vscode/vscode/vs/platform/log/common/log.service";
11
+ import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
12
+ import { ILifecycleService } from "vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
13
+ import { IOutputChannelModel } from "../common/outputChannelModel.js";
14
+ import { IViewsService } from "vscode/vscode/vs/workbench/services/views/common/viewsService.service";
15
+ import { IOutputChannelModelService } from "vscode/vscode/vs/workbench/contrib/output/common/outputChannelModelService.service";
16
+ import { ILanguageService } from "vscode/vscode/vs/editor/common/languages/language";
17
+ import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
18
+ import { IDefaultLogLevelsService } from "vscode/vscode/vs/workbench/contrib/logs/common/defaultLogLevels.service";
19
+ declare class OutputChannel extends Disposable implements IOutputChannel {
20
+ readonly outputChannelDescriptor: IOutputChannelDescriptor;
21
+ scrollLock: boolean;
22
+ readonly model: IOutputChannelModel;
23
+ readonly id: string;
24
+ readonly label: string;
25
+ readonly uri: URI;
26
+ constructor(outputChannelDescriptor: IOutputChannelDescriptor, outputChannelModelService: IOutputChannelModelService, languageService: ILanguageService);
27
+ append(output: string): void;
28
+ update(mode: OutputChannelUpdateMode, till?: number): void;
29
+ clear(): void;
30
+ replace(value: string): void;
31
+ }
32
+ export declare class OutputService extends Disposable implements IOutputService, ITextModelContentProvider {
33
+ private readonly storageService;
34
+ private readonly instantiationService;
35
+ private readonly logService;
36
+ private readonly loggerService;
37
+ private readonly lifecycleService;
38
+ private readonly viewsService;
39
+ private readonly defaultLogLevelsService;
40
+ readonly _serviceBrand: undefined;
41
+ private channels;
42
+ private activeChannelIdInStorage;
43
+ private activeChannel?;
44
+ private readonly _onActiveOutputChannel;
45
+ readonly onActiveOutputChannel: Event<string>;
46
+ private readonly activeOutputChannelContext;
47
+ private readonly activeFileOutputChannelContext;
48
+ private readonly activeOutputChannelLevelSettableContext;
49
+ private readonly activeOutputChannelLevelContext;
50
+ private readonly activeOutputChannelLevelIsDefaultContext;
51
+ constructor(storageService: IStorageService, instantiationService: IInstantiationService, textModelResolverService: ITextModelService, logService: ILogService, loggerService: ILoggerService, lifecycleService: ILifecycleService, viewsService: IViewsService, contextKeyService: IContextKeyService, defaultLogLevelsService: IDefaultLogLevelsService);
52
+ provideTextContent(resource: URI): Promise<ITextModel> | null;
53
+ showChannel(id: string, preserveFocus?: boolean): Promise<void>;
54
+ getChannel(id: string): OutputChannel | undefined;
55
+ getChannelDescriptor(id: string): IOutputChannelDescriptor | undefined;
56
+ getChannelDescriptors(): IOutputChannelDescriptor[];
57
+ getActiveChannel(): IOutputChannel | undefined;
58
+ private onDidRegisterChannel;
59
+ private createChannel;
60
+ private instantiateChannel;
61
+ private setLevelContext;
62
+ private setLevelIsDefaultContext;
63
+ private setActiveChannel;
64
+ }
65
+ export {};
@@ -1,9 +1,11 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
3
4
  import { Schemas } from 'vscode/vscode/vs/base/common/network';
4
5
  import { URI } from 'vscode/vscode/vs/base/common/uri';
5
6
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
6
7
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
8
+ import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
7
9
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
8
10
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
9
11
  import { LOG_MIME, OUTPUT_MIME, ACTIVE_OUTPUT_CHANNEL_CONTEXT, CONTEXT_ACTIVE_FILE_OUTPUT, CONTEXT_ACTIVE_OUTPUT_LEVEL_SETTABLE, CONTEXT_ACTIVE_OUTPUT_LEVEL, CONTEXT_ACTIVE_OUTPUT_LEVEL_IS_DEFAULT, Extensions, OUTPUT_VIEW_ID } from 'vscode/vscode/vs/workbench/services/output/common/output';
@@ -16,7 +18,7 @@ import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/
16
18
  import { IOutputChannelModelService } from 'vscode/vscode/vs/workbench/contrib/output/common/outputChannelModelService.service';
17
19
  import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
18
20
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
19
- import { SetLogLevelAction } from 'vscode/vscode/vs/workbench/contrib/logs/common/logsActions';
21
+ import { SetLogLevelAction } from '@codingame/monaco-vscode-7b77bc98-d4d5-5442-b972-c926eb6db528-common/vscode/vs/workbench/contrib/logs/common/logsActions';
20
22
  import { IDefaultLogLevelsService } from 'vscode/vscode/vs/workbench/contrib/logs/common/defaultLogLevels.service';
21
23
 
22
24
  const OUTPUT_ACTIVE_CHANNEL_KEY = 'output.activechannel';
@@ -60,7 +62,7 @@ let OutputService = class OutputService extends Disposable {
60
62
  this.channels = ( new Map());
61
63
  this._onActiveOutputChannel = this._register(( new Emitter()));
62
64
  this.onActiveOutputChannel = this._onActiveOutputChannel.event;
63
- this.activeChannelIdInStorage = this.storageService.get(OUTPUT_ACTIVE_CHANNEL_KEY, 1 , '');
65
+ this.activeChannelIdInStorage = this.storageService.get(OUTPUT_ACTIVE_CHANNEL_KEY, StorageScope.WORKSPACE, '');
64
66
  this.activeOutputChannelContext = ACTIVE_OUTPUT_CHANNEL_CONTEXT.bindTo(contextKeyService);
65
67
  this.activeOutputChannelContext.set(this.activeChannelIdInStorage);
66
68
  this._register(this.onActiveOutputChannel(channel => this.activeOutputChannelContext.set(channel)));
@@ -182,10 +184,10 @@ let OutputService = class OutputService extends Disposable {
182
184
  this.setLevelIsDefaultContext();
183
185
  this.setLevelContext();
184
186
  if (this.activeChannel) {
185
- this.storageService.store(OUTPUT_ACTIVE_CHANNEL_KEY, this.activeChannel.id, 1 , 1 );
187
+ this.storageService.store(OUTPUT_ACTIVE_CHANNEL_KEY, this.activeChannel.id, StorageScope.WORKSPACE, StorageTarget.MACHINE);
186
188
  }
187
189
  else {
188
- this.storageService.remove(OUTPUT_ACTIVE_CHANNEL_KEY, 1 );
190
+ this.storageService.remove(OUTPUT_ACTIVE_CHANNEL_KEY, StorageScope.WORKSPACE);
189
191
  }
190
192
  }
191
193
  };
@@ -0,0 +1,29 @@
1
+ import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
2
+ import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
3
+ import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
4
+ import { IOutputChannel } from "vscode/vscode/vs/workbench/services/output/common/output";
5
+ import { IThemeService } from "vscode/vscode/vs/platform/theme/common/themeService.service";
6
+ import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
7
+ import { ViewPane, IViewPaneOptions } from "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane";
8
+ import { IKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/keybinding.service";
9
+ import { IContextMenuService } from "vscode/vscode/vs/platform/contextview/browser/contextView.service";
10
+ import { IViewDescriptorService } from "vscode/vscode/vs/workbench/common/views.service";
11
+ import { IOpenerService } from "vscode/vscode/vs/platform/opener/common/opener.service";
12
+ import { IHoverService } from "vscode/vscode/vs/platform/hover/browser/hover.service";
13
+ export declare class OutputViewPane extends ViewPane {
14
+ private readonly editor;
15
+ private channelId;
16
+ private editorPromise;
17
+ private readonly scrollLockContextKey;
18
+ get scrollLock(): boolean;
19
+ set scrollLock(scrollLock: boolean);
20
+ constructor(options: IViewPaneOptions, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService, openerService: IOpenerService, themeService: IThemeService, telemetryService: ITelemetryService, hoverService: IHoverService);
21
+ showChannel(channel: IOutputChannel, preserveFocus: boolean): void;
22
+ focus(): void;
23
+ protected renderBody(container: HTMLElement): void;
24
+ protected layoutBody(height: number, width: number): void;
25
+ private onDidChangeVisibility;
26
+ private setInput;
27
+ private clearInput;
28
+ private createInput;
29
+ }
@@ -1,4 +1,5 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import './output.css.js';
3
4
  import { localize } from 'vscode/vscode/vs/nls';
4
5
  import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
@@ -6,24 +7,25 @@ import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storag
6
7
  import { ITextResourceConfigurationService } from 'vscode/vscode/vs/editor/common/services/textResourceConfiguration';
7
8
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
8
9
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
9
- import { AbstractTextResourceEditor } from 'vscode/vscode/vs/workbench/browser/parts/editor/textResourceEditor';
10
+ import { AbstractTextResourceEditor } from '@codingame/monaco-vscode-523730aa-81e6-55d7-9916-87ad537fe087-common/vscode/vs/workbench/browser/parts/editor/textResourceEditor';
10
11
  import { CONTEXT_OUTPUT_SCROLL_LOCK, OUTPUT_VIEW_ID, CONTEXT_IN_OUTPUT } from 'vscode/vscode/vs/workbench/services/output/common/output';
11
12
  import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
12
13
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
13
14
  import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
14
15
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
15
- import { ViewPane } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
16
+ import { CursorChangeReason } from 'vscode/vscode/vs/editor/common/cursorEvents';
17
+ import { ViewPane } from '@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane';
16
18
  import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
17
19
  import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
18
20
  import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
19
- import { TextResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/textResourceEditorInput';
21
+ import { TextResourceEditorInput } from '@codingame/monaco-vscode-0139c6af-2375-559c-af57-b738f2fd6d8e-common/vscode/vs/workbench/common/editor/textResourceEditorInput';
20
22
  import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
21
23
  import { Dimension } from 'vscode/vscode/vs/base/browser/dom';
22
24
  import { createCancelablePromise } from 'vscode/vscode/vs/base/common/async';
23
25
  import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
24
26
  import { ResourceContextKey } from 'vscode/vscode/vs/workbench/common/contextkeys';
25
27
  import { ServiceCollection } from 'vscode/vscode/vs/platform/instantiation/common/serviceCollection';
26
- import { computeEditorAriaLabel } from 'vscode/vscode/vs/workbench/browser/editor';
28
+ import { computeEditorAriaLabel } from '@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/browser/editor';
27
29
  import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
28
30
 
29
31
  let OutputViewPane = class OutputViewPane extends ViewPane {
@@ -33,7 +35,7 @@ let OutputViewPane = class OutputViewPane extends ViewPane {
33
35
  super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
34
36
  this.editorPromise = null;
35
37
  this.scrollLockContextKey = CONTEXT_OUTPUT_SCROLL_LOCK.bindTo(this.contextKeyService);
36
- const editorInstantiationService = this._register(instantiationService.createChild(( (new ServiceCollection([IContextKeyService, this.scopedContextKeyService])))));
38
+ const editorInstantiationService = this._register(instantiationService.createChild(( new ServiceCollection([IContextKeyService, this.scopedContextKeyService]))));
37
39
  this.editor = this._register(editorInstantiationService.createInstance(OutputEditor));
38
40
  this._register(this.editor.onTitleAreaUpdate(() => {
39
41
  this.updateTitle(this.editor.getTitle());
@@ -65,7 +67,7 @@ let OutputViewPane = class OutputViewPane extends ViewPane {
65
67
  }
66
68
  }));
67
69
  this._register(codeEditor.onDidChangeCursorPosition((e) => {
68
- if (e.reason !== 3 ) {
70
+ if (e.reason !== CursorChangeReason.Explicit) {
69
71
  return;
70
72
  }
71
73
  if (!this.configurationService.getValue('output.smartScroll.enabled')) {
@@ -81,7 +83,7 @@ let OutputViewPane = class OutputViewPane extends ViewPane {
81
83
  }
82
84
  layoutBody(height, width) {
83
85
  super.layoutBody(height, width);
84
- this.editor.layout(( (new Dimension(width, height))));
86
+ this.editor.layout(( new Dimension(width, height)));
85
87
  }
86
88
  onDidChangeVisibility(visible) {
87
89
  this.editor.setVisible(visible);
@@ -104,21 +106,21 @@ let OutputViewPane = class OutputViewPane extends ViewPane {
104
106
  this.editorPromise = null;
105
107
  }
106
108
  createInput(channel) {
107
- return this.instantiationService.createInstance(TextResourceEditorInput, channel.uri, ( localize(6150, "{0} - Output", channel.label)), ( localize(6151, "Output channel for '{0}'", channel.label)), undefined, undefined);
109
+ return this.instantiationService.createInstance(TextResourceEditorInput, channel.uri, ( localize(7866, "{0} - Output", channel.label)), ( localize(7867, "Output channel for '{0}'", channel.label)), undefined, undefined);
108
110
  }
109
111
  };
110
- OutputViewPane = ( (__decorate([
111
- ( (__param(1, IKeybindingService))),
112
- ( (__param(2, IContextMenuService))),
113
- ( (__param(3, IConfigurationService))),
114
- ( (__param(4, IContextKeyService))),
115
- ( (__param(5, IViewDescriptorService))),
116
- ( (__param(6, IInstantiationService))),
117
- ( (__param(7, IOpenerService))),
118
- ( (__param(8, IThemeService))),
119
- ( (__param(9, ITelemetryService))),
120
- ( (__param(10, IHoverService)))
121
- ], OutputViewPane)));
112
+ OutputViewPane = ( __decorate([
113
+ ( __param(1, IKeybindingService)),
114
+ ( __param(2, IContextMenuService)),
115
+ ( __param(3, IConfigurationService)),
116
+ ( __param(4, IContextKeyService)),
117
+ ( __param(5, IViewDescriptorService)),
118
+ ( __param(6, IInstantiationService)),
119
+ ( __param(7, IOpenerService)),
120
+ ( __param(8, IThemeService)),
121
+ ( __param(9, ITelemetryService)),
122
+ ( __param(10, IHoverService))
123
+ ], OutputViewPane));
122
124
  let OutputEditor = class OutputEditor extends AbstractTextResourceEditor {
123
125
  constructor(telemetryService, instantiationService, storageService, configurationService, textResourceConfigurationService, themeService, editorGroupService, editorService, fileService) {
124
126
  super(OUTPUT_VIEW_ID, editorGroupService.activeGroup , telemetryService, instantiationService, storageService, textResourceConfigurationService, themeService, editorGroupService, editorService, fileService);
@@ -129,7 +131,7 @@ let OutputEditor = class OutputEditor extends AbstractTextResourceEditor {
129
131
  return OUTPUT_VIEW_ID;
130
132
  }
131
133
  getTitle() {
132
- return ( localize(6152, "Output"));
134
+ return localize(7868, "Output");
133
135
  }
134
136
  getConfigurationOverrides(configuration) {
135
137
  const options = super.getConfigurationOverrides(configuration);
@@ -163,7 +165,7 @@ let OutputEditor = class OutputEditor extends AbstractTextResourceEditor {
163
165
  return options;
164
166
  }
165
167
  getAriaLabel() {
166
- return this.input ? this.input.getAriaLabel() : ( localize(6153, "Output panel"));
168
+ return this.input ? this.input.getAriaLabel() : ( localize(7869, "Output panel"));
167
169
  }
168
170
  computeAriaLabel() {
169
171
  return this.input ? computeEditorAriaLabel(this.input, undefined, undefined, this.editorGroupService.count) : this.getAriaLabel();
@@ -199,16 +201,16 @@ let OutputEditor = class OutputEditor extends AbstractTextResourceEditor {
199
201
  }
200
202
  }
201
203
  };
202
- OutputEditor = ( (__decorate([
203
- ( (__param(0, ITelemetryService))),
204
- ( (__param(1, IInstantiationService))),
205
- ( (__param(2, IStorageService))),
206
- ( (__param(3, IConfigurationService))),
207
- ( (__param(4, ITextResourceConfigurationService))),
208
- ( (__param(5, IThemeService))),
209
- ( (__param(6, IEditorGroupsService))),
210
- ( (__param(7, IEditorService))),
211
- ( (__param(8, IFileService)))
212
- ], OutputEditor)));
204
+ OutputEditor = ( __decorate([
205
+ ( __param(0, ITelemetryService)),
206
+ ( __param(1, IInstantiationService)),
207
+ ( __param(2, IStorageService)),
208
+ ( __param(3, IConfigurationService)),
209
+ ( __param(4, ITextResourceConfigurationService)),
210
+ ( __param(5, IThemeService)),
211
+ ( __param(6, IEditorGroupsService)),
212
+ ( __param(7, IEditorService)),
213
+ ( __param(8, IFileService))
214
+ ], OutputEditor));
213
215
 
214
216
  export { OutputViewPane };
@@ -0,0 +1,71 @@
1
+ import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
2
+ import { ITextModel } from "vscode/vscode/vs/editor/common/model";
3
+ import { IEditorWorkerService } from "vscode/vscode/vs/editor/common/services/editorWorker";
4
+ import { Event } from "vscode/vscode/vs/base/common/event";
5
+ import { URI } from "vscode/vscode/vs/base/common/uri";
6
+ import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
7
+ import { IModelService } from "vscode/vscode/vs/editor/common/services/model";
8
+ import { ILanguageSelection } from "vscode/vscode/vs/editor/common/languages/language";
9
+ import { Disposable, IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
10
+ import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
11
+ import { OutputChannelUpdateMode } from "vscode/vscode/vs/workbench/services/output/common/output";
12
+ export interface IOutputChannelModel extends IDisposable {
13
+ readonly onDispose: Event<void>;
14
+ append(output: string): void;
15
+ update(mode: OutputChannelUpdateMode, till: number | undefined, immediate: boolean): void;
16
+ loadModel(): Promise<ITextModel>;
17
+ clear(): void;
18
+ replace(value: string): void;
19
+ }
20
+ export declare class FileOutputChannelModel extends Disposable implements IOutputChannelModel {
21
+ private readonly modelUri;
22
+ private readonly language;
23
+ private readonly file;
24
+ private readonly fileService;
25
+ private readonly modelService;
26
+ private readonly editorWorkerService;
27
+ private readonly _onDispose;
28
+ readonly onDispose: Event<void>;
29
+ private readonly fileHandler;
30
+ private etag;
31
+ private loadModelPromise;
32
+ private model;
33
+ private modelUpdateInProgress;
34
+ private readonly modelUpdateCancellationSource;
35
+ private readonly appendThrottler;
36
+ private replacePromise;
37
+ private startOffset;
38
+ private endOffset;
39
+ constructor(modelUri: URI, language: ILanguageSelection, file: URI, fileService: IFileService, modelService: IModelService, logService: ILogService, editorWorkerService: IEditorWorkerService);
40
+ append(message: string): void;
41
+ replace(message: string): void;
42
+ clear(): void;
43
+ update(mode: OutputChannelUpdateMode, till: number | undefined, immediate: boolean): void;
44
+ loadModel(): Promise<ITextModel>;
45
+ private createModel;
46
+ private doUpdate;
47
+ private clearContent;
48
+ private appendContent;
49
+ private replaceContent;
50
+ private getReplaceEdits;
51
+ private doUpdateModel;
52
+ protected cancelModelUpdate(): void;
53
+ private getContentToUpdate;
54
+ private onDidContentChange;
55
+ protected isVisible(): boolean;
56
+ dispose(): void;
57
+ }
58
+ export declare class DelegatedOutputChannelModel extends Disposable implements IOutputChannelModel {
59
+ private readonly instantiationService;
60
+ private readonly fileService;
61
+ private readonly _onDispose;
62
+ readonly onDispose: Event<void>;
63
+ private readonly outputChannelModel;
64
+ constructor(id: string, modelUri: URI, language: ILanguageSelection, outputDir: Promise<URI>, instantiationService: IInstantiationService, fileService: IFileService);
65
+ private createOutputChannelModel;
66
+ append(output: string): void;
67
+ update(mode: OutputChannelUpdateMode, till: number | undefined, immediate: boolean): void;
68
+ loadModel(): Promise<ITextModel>;
69
+ clear(): void;
70
+ replace(value: string): void;
71
+ }
@@ -1,4 +1,5 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
3
4
  import { joinPath } from 'vscode/vscode/vs/base/common/resources';
4
5
  import { IEditorWorkerService } from 'vscode/vscode/vs/editor/common/services/editorWorker';
@@ -0,0 +1,16 @@
1
+ import { IWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/common/environmentService.service";
2
+ import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
3
+ import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
4
+ import { IOutputChannelModel } from "./outputChannelModel.js";
5
+ import { URI } from "vscode/vscode/vs/base/common/uri";
6
+ import { ILanguageSelection } from "vscode/vscode/vs/editor/common/languages/language";
7
+ export declare class OutputChannelModelService {
8
+ private readonly fileService;
9
+ private readonly instantiationService;
10
+ readonly _serviceBrand: undefined;
11
+ private readonly outputLocation;
12
+ constructor(fileService: IFileService, instantiationService: IInstantiationService, environmentService: IWorkbenchEnvironmentService);
13
+ createOutputChannelModel(id: string, modelUri: URI, language: ILanguageSelection, file?: URI): IOutputChannelModel;
14
+ private _outputDir;
15
+ private get outputDir();
16
+ }
@@ -1,4 +1,6 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
3
+ import 'vscode/vscode/vs/platform/instantiation/common/extensions';
2
4
  import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
3
5
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
4
6
  import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
@@ -0,0 +1,19 @@
1
+ import { ILink } from "vscode/vscode/vs/editor/common/languages";
2
+ import { URI } from "vscode/vscode/vs/base/common/uri";
3
+ import { IRequestHandler, IWorkerServer } from "vscode/vscode/vs/base/common/worker/simpleWorker";
4
+ export interface IResourceCreator {
5
+ toResource: (folderRelativePath: string) => URI | null;
6
+ }
7
+ export declare class OutputLinkComputer implements IRequestHandler {
8
+ _requestHandlerBrand: any;
9
+ private readonly workerTextModelSyncServer;
10
+ private patterns;
11
+ constructor(workerServer: IWorkerServer);
12
+ $setWorkspaceFolders(workspaceFolders: string[]): void;
13
+ private computePatterns;
14
+ private getModel;
15
+ $computeLinks(uri: string): ILink[];
16
+ static createPatterns(workspaceFolder: URI): RegExp[];
17
+ static detectLinks(line: string, lineIndex: number, patterns: RegExp[], resourceCreator: IResourceCreator): ILink[];
18
+ }
19
+ export declare function create(workerServer: IWorkerServer): OutputLinkComputer;
@@ -1,3 +1,4 @@
1
+
1
2
  import { URI } from 'vscode/vscode/vs/base/common/uri';
2
3
  import { toSlashes } from 'vscode/vscode/vs/base/common/extpath';
3
4
  import { joinPath } from 'vscode/vscode/vs/base/common/resources';
@@ -1,4 +1,5 @@
1
+
1
2
  import { create } from './outputLinkComputer.js';
2
- import { bootstrapSimpleWorker } from 'vscode/vscode/vs/base/common/worker/simpleWorkerBootstrap';
3
+ import { bootstrapSimpleWorker } from '@codingame/monaco-vscode-695440c8-a687-5594-b476-bbc7b36bafe9-common/vscode/vs/base/common/worker/simpleWorkerBootstrap';
3
4
 
4
5
  bootstrapSimpleWorker(create);
package/worker.js CHANGED
@@ -1 +1,2 @@
1
- import './workers/outputLinkComputer.worker.js';
1
+
2
+ import './vscode/src/vs/workbench/contrib/output/common/outputLinkComputerMain.js';
package/output.js DELETED
@@ -1,17 +0,0 @@
1
- import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
2
- import { OutputService } from './vscode/src/vs/workbench/contrib/output/browser/outputServices.js';
3
- import { IOutputService } from 'vscode/vscode/vs/workbench/services/output/common/output.service';
4
- import { OutputChannelModelService } from './vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.js';
5
- import { IOutputChannelModelService } from 'vscode/vscode/vs/workbench/contrib/output/common/outputChannelModelService.service';
6
- import getServiceOverride$1 from '@codingame/monaco-vscode-log-service-override';
7
- import './vscode/src/vs/workbench/contrib/output/browser/output.contribution.js';
8
-
9
- function getServiceOverride(logLevel) {
10
- return {
11
- ...getServiceOverride$1(logLevel),
12
- [( IOutputService.toString())]: new SyncDescriptor(OutputService, [], true),
13
- [( IOutputChannelModelService.toString())]: new SyncDescriptor(OutputChannelModelService, [], true)
14
- };
15
- }
16
-
17
- export { getServiceOverride as default };
@@ -1 +0,0 @@
1
- import '../vscode/src/vs/workbench/contrib/output/common/outputLinkComputerMain.js';