@codingame/monaco-vscode-log-service-override 2.2.2 → 3.1.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/log.js CHANGED
@@ -10,10 +10,11 @@ import { localizeWithPath } from 'vscode/vscode/vs/nls';
10
10
  import { windowLogId } from 'vscode/vscode/vs/workbench/services/log/common/logConstants';
11
11
  import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
12
12
  import { toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
13
+ import { IDefaultLogLevelsService, DefaultLogLevelsService } from 'vscode/vscode/vs/workbench/contrib/logs/common/defaultLogLevels';
13
14
  import getServiceOverride$1 from '@codingame/monaco-vscode-environment-service-override';
14
15
  import { logsPath } from 'vscode/workbench';
15
- import './vscode/src/vs/workbench/contrib/logs/common/logs.contribution.js';
16
16
  import { checkServicesNotInitialized } from 'vscode/lifecycle';
17
+ import './vscode/src/vs/workbench/contrib/logs/common/logs.contribution.js';
17
18
 
18
19
  let _FileLoggerService = class _FileLoggerService extends FileLoggerService {
19
20
  constructor(logLevel, fileService, environmentService) {
@@ -39,7 +40,8 @@ function getServiceOverride(logLevel) {
39
40
  return {
40
41
  ...getServiceOverride$1(),
41
42
  [( ILoggerService.toString())]: new SyncDescriptor(_FileLoggerService, [logLevel], true),
42
- [( ILogService.toString())]: new SyncDescriptor(_LogService, [], true)
43
+ [( ILogService.toString())]: new SyncDescriptor(_LogService, [], true),
44
+ [( IDefaultLogLevelsService.toString())]: new SyncDescriptor(DefaultLogLevelsService, [], true)
43
45
  };
44
46
  }
45
47
  function registerAdditionalLogger(logger) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-log-service-override",
3
- "version": "2.2.2",
3
+ "version": "3.1.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -18,8 +18,8 @@
18
18
  "module": "index.js",
19
19
  "types": "index.d.ts",
20
20
  "dependencies": {
21
- "vscode": "npm:@codingame/monaco-vscode-api@2.2.2",
21
+ "vscode": "npm:@codingame/monaco-vscode-api@3.1.0",
22
22
  "vscode-marked": "npm:marked@=3.0.2",
23
- "@codingame/monaco-vscode-environment-service-override": "2.2.2"
23
+ "@codingame/monaco-vscode-environment-service-override": "3.1.0"
24
24
  }
25
25
  }
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
2
+ import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
3
3
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
4
4
  import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
5
5
  import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
@@ -14,7 +14,7 @@ import { Event } from 'vscode/vscode/vs/base/common/event';
14
14
  import { showWindowLogActionId, windowLogId } from 'vscode/vscode/vs/workbench/services/log/common/logConstants';
15
15
  import { createCancelablePromise, timeout } from 'vscode/vscode/vs/base/common/async';
16
16
  import { isCancellationError, getErrorMessage, CancellationError } from 'vscode/vscode/vs/base/common/errors';
17
- import { IDefaultLogLevelsService } from './defaultLogLevels.js';
17
+ import { IDefaultLogLevelsService } from 'vscode/vscode/vs/workbench/contrib/logs/common/defaultLogLevels';
18
18
  import { ContextKeyExpr, IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
19
19
  import { CounterSet } from 'vscode/vscode/vs/base/common/map';
20
20
  import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity';
@@ -37,11 +37,11 @@ registerAction2(class extends Action2 {
37
37
  constructor() {
38
38
  super({
39
39
  id: 'workbench.action.setDefaultLogLevel',
40
- title: { value: ( localizeWithPath(
40
+ title: ( localize2WithPath(
41
41
  'vs/workbench/contrib/logs/common/logs.contribution',
42
42
  'setDefaultLogLevel',
43
43
  "Set Default Log Level"
44
- )), original: 'Set Default Log Level' },
44
+ )),
45
45
  category: Categories.Developer,
46
46
  });
47
47
  }
@@ -191,11 +191,11 @@ let LogOutputChannels = class LogOutputChannels extends Disposable {
191
191
  constructor() {
192
192
  super({
193
193
  id: showWindowLogActionId,
194
- title: { value: ( localizeWithPath(
194
+ title: ( localize2WithPath(
195
195
  'vs/workbench/contrib/logs/common/logs.contribution',
196
196
  'show window log',
197
197
  "Show Window Log"
198
- )), original: 'Show Window Log' },
198
+ )),
199
199
  category: Categories.Developer,
200
200
  f1: true
201
201
  });
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
2
+ import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
3
3
  import { Action } from 'vscode/vscode/vs/base/common/actions';
4
4
  import { isLogLevel, LogLevel, ILoggerService } from 'vscode/vscode/vs/platform/log/common/log';
5
5
  import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
@@ -7,18 +7,18 @@ import { URI } from 'vscode/vscode/vs/base/common/uri';
7
7
  import { basename, dirname, isEqual } from 'vscode/vscode/vs/base/common/resources';
8
8
  import { IOutputService } from 'vscode/vscode/vs/workbench/services/output/common/output';
9
9
  import { telemetryLogId, extensionTelemetryLogChannelId } from 'vscode/vscode/vs/platform/telemetry/common/telemetryUtils';
10
- import { IDefaultLogLevelsService } from './defaultLogLevels.js';
10
+ import { IDefaultLogLevelsService } from 'vscode/vscode/vs/workbench/contrib/logs/common/defaultLogLevels';
11
11
  import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
12
12
  import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
13
13
  import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
14
14
 
15
15
  let SetLogLevelAction = class SetLogLevelAction extends Action {
16
16
  static { this.ID = 'workbench.action.setLogLevel'; }
17
- static { this.TITLE = { value: ( localizeWithPath(
17
+ static { this.TITLE = ( localize2WithPath(
18
18
  'vs/workbench/contrib/logs/common/logsActions',
19
19
  'setLogLevel',
20
20
  "Set Log Level..."
21
- )), original: 'Set Log Level...' }; }
21
+ )); }
22
22
  constructor(id, label, quickInputService, loggerService, outputService, defaultLogLevelsService) {
23
23
  super(id, label);
24
24
  this.quickInputService = quickInputService;
@@ -183,11 +183,11 @@ SetLogLevelAction = ( __decorate([
183
183
  ], SetLogLevelAction));
184
184
  (class OpenWindowSessionLogFileAction extends Action {
185
185
  static { this.ID = 'workbench.action.openSessionLogFile'; }
186
- static { this.TITLE = { value: ( localizeWithPath(
186
+ static { this.TITLE = ( localize2WithPath(
187
187
  'vs/workbench/contrib/logs/common/logsActions',
188
188
  'openSessionLogFile',
189
189
  "Open Window Log File (Session)..."
190
- )), original: 'Open Window Log File (Session)...' }; }
190
+ )); }
191
191
  constructor(id, label, environmentService, fileService, quickInputService, editorService) {
192
192
  super(id, label);
193
193
  this.environmentService = environmentService;
@@ -1,5 +0,0 @@
1
- import { createDecorator } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
2
-
3
- const IDefaultLogLevelsService = ( createDecorator('IDefaultLogLevelsService'));
4
-
5
- export { IDefaultLogLevelsService };