@codingame/monaco-vscode-output-service-override 5.3.0 → 6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-output-service-override",
3
- "version": "5.3.0",
3
+ "version": "6.0.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -29,7 +29,7 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "vscode": "npm:@codingame/monaco-vscode-api@5.3.0",
33
- "@codingame/monaco-vscode-log-service-override": "5.3.0"
32
+ "vscode": "npm:@codingame/monaco-vscode-api@6.0.0",
33
+ "@codingame/monaco-vscode-log-service-override": "6.0.0"
34
34
  }
35
35
  }
@@ -1,19 +1,21 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
3
- import { KeyChord } from 'vscode/vscode/vs/base/common/keyCodes';
3
+ import { KeyMod, KeyCode, KeyChord } from 'vscode/vscode/vs/base/common/keyCodes';
4
4
  import { ModesRegistry } from 'vscode/vscode/vs/editor/common/languages/modesRegistry';
5
5
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
6
6
  import { registerAction2, Action2, MenuId, MenuRegistry } from 'vscode/vscode/vs/platform/actions/common/actions';
7
- import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
7
+ import 'vscode/vscode/vs/platform/instantiation/common/extensions';
8
8
  import './outputServices.js';
9
9
  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
10
  import { IOutputService } from 'vscode/vscode/vs/workbench/services/output/common/output.service';
11
11
  import { OutputViewPane } from './outputView.js';
12
+ import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
12
13
  import { Extensions as Extensions$2 } from 'vscode/vscode/vs/workbench/common/contributions';
13
- import { Extensions } from 'vscode/vscode/vs/workbench/common/views';
14
+ import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
15
+ import { Extensions, ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
14
16
  import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
15
17
  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 { Extensions as Extensions$3, ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
17
19
  import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
18
20
  import { AUX_WINDOW_GROUP } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
19
21
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
@@ -53,7 +55,7 @@ const VIEW_CONTAINER = ( (Registry.as(Extensions.ViewContainersRegistry))).regis
53
55
  ))),
54
56
  storageId: OUTPUT_VIEW_ID,
55
57
  hideIfEmpty: true,
56
- }, 1 , { doNotRegisterOpenCommand: true });
58
+ }, ViewContainerLocation.Panel, { doNotRegisterOpenCommand: true });
57
59
  ( (Registry.as(Extensions.ViewsRegistry))).registerViews([{
58
60
  id: OUTPUT_VIEW_ID,
59
61
  name: ( localize2WithPath(_moduleId, 1, "Output")),
@@ -65,9 +67,9 @@ const VIEW_CONTAINER = ( (Registry.as(Extensions.ViewContainersRegistry))).regis
65
67
  id: 'workbench.action.output.toggleOutput',
66
68
  mnemonicTitle: ( localizeWithPath(_moduleId, 2, "&&Output")),
67
69
  keybindings: {
68
- primary: 2048 | 1024 | 51 ,
70
+ primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyU,
69
71
  linux: {
70
- primary: KeyChord(2048 | 41 , 2048 | 38 )
72
+ primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyCode.KeyH)
71
73
  }
72
74
  },
73
75
  order: 1,
@@ -508,7 +510,7 @@ OutputContribution = ( (__decorate([
508
510
  ( (__param(1, IEditorService))),
509
511
  ( (__param(2, IFilesConfigurationService)))
510
512
  ], OutputContribution)));
511
- ( (Registry.as(Extensions$2.Workbench))).registerWorkbenchContribution(OutputContribution, 3 );
513
+ ( (Registry.as(Extensions$2.Workbench))).registerWorkbenchContribution(OutputContribution, LifecyclePhase.Restored);
512
514
  ( (Registry.as(Extensions$3.Configuration))).registerConfiguration({
513
515
  id: 'output',
514
516
  order: 30,
@@ -523,7 +525,7 @@ OutputContribution = ( (__decorate([
523
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."
524
526
  )),
525
527
  default: true,
526
- scope: 3 ,
528
+ scope: ConfigurationScope.WINDOW,
527
529
  tags: ['output']
528
530
  }
529
531
  }
@@ -3,6 +3,7 @@ import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
3
3
  import { URI } from 'vscode/vscode/vs/base/common/uri';
4
4
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
5
5
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
6
+ import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
6
7
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
7
8
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
8
9
  import { OUTPUT_SCHEME, 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';
@@ -59,7 +60,7 @@ let OutputService = class OutputService extends Disposable {
59
60
  this.channels = ( new Map());
60
61
  this._onActiveOutputChannel = this._register(( new Emitter()));
61
62
  this.onActiveOutputChannel = this._onActiveOutputChannel.event;
62
- this.activeChannelIdInStorage = this.storageService.get(OUTPUT_ACTIVE_CHANNEL_KEY, 1 , '');
63
+ this.activeChannelIdInStorage = this.storageService.get(OUTPUT_ACTIVE_CHANNEL_KEY, StorageScope.WORKSPACE, '');
63
64
  this.activeOutputChannelContext = ACTIVE_OUTPUT_CHANNEL_CONTEXT.bindTo(contextKeyService);
64
65
  this.activeOutputChannelContext.set(this.activeChannelIdInStorage);
65
66
  this._register(this.onActiveOutputChannel(channel => this.activeOutputChannelContext.set(channel)));
@@ -181,10 +182,10 @@ let OutputService = class OutputService extends Disposable {
181
182
  this.setLevelIsDefaultContext();
182
183
  this.setLevelContext();
183
184
  if (this.activeChannel) {
184
- this.storageService.store(OUTPUT_ACTIVE_CHANNEL_KEY, this.activeChannel.id, 1 , 1 );
185
+ this.storageService.store(OUTPUT_ACTIVE_CHANNEL_KEY, this.activeChannel.id, StorageScope.WORKSPACE, StorageTarget.MACHINE);
185
186
  }
186
187
  else {
187
- this.storageService.remove(OUTPUT_ACTIVE_CHANNEL_KEY, 1 );
188
+ this.storageService.remove(OUTPUT_ACTIVE_CHANNEL_KEY, StorageScope.WORKSPACE);
188
189
  }
189
190
  }
190
191
  };
@@ -12,6 +12,7 @@ import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeServi
12
12
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
13
13
  import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
14
14
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
15
+ import { CursorChangeReason } from 'vscode/vscode/vs/editor/common/cursorEvents';
15
16
  import { ViewPane } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
16
17
  import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
17
18
  import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
@@ -66,7 +67,7 @@ let OutputViewPane = class OutputViewPane extends ViewPane {
66
67
  }
67
68
  }));
68
69
  this._register(codeEditor.onDidChangeCursorPosition((e) => {
69
- if (e.reason !== 3 ) {
70
+ if (e.reason !== CursorChangeReason.Explicit) {
70
71
  return;
71
72
  }
72
73
  if (!this.configurationService.getValue('output.smartScroll.enabled')) {
@@ -1,4 +1,5 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
+ import 'vscode/vscode/vs/platform/instantiation/common/extensions';
2
3
  import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
3
4
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
4
5
  import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';