@codingame/monaco-vscode-log-service-override 5.2.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-log-service-override",
3
- "version": "5.2.0",
3
+ "version": "6.0.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,7 +26,7 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@5.2.0",
30
- "@codingame/monaco-vscode-environment-service-override": "5.2.0"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@6.0.0",
30
+ "@codingame/monaco-vscode-environment-service-override": "6.0.0"
31
31
  }
32
32
  }
@@ -2,7 +2,7 @@ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { ThrottledDelayer } from 'vscode/vscode/vs/base/common/async';
3
3
  import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
4
4
  import { joinPath, dirname, basename } from 'vscode/vscode/vs/base/common/resources';
5
- import { ByteSize, whenProviderRegistered } from 'vscode/vscode/vs/platform/files/common/files';
5
+ import { ByteSize, FileOperationResult, whenProviderRegistered } from 'vscode/vscode/vs/platform/files/common/files';
6
6
  import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
7
7
  import { BufferLogger } from 'vscode/vscode/vs/platform/log/common/bufferLog';
8
8
  import { AbstractMessageLogger, LogLevel, AbstractLoggerService } from 'vscode/vscode/vs/platform/log/common/log';
@@ -41,7 +41,7 @@ let FileLogger = class FileLogger extends AbstractMessageLogger {
41
41
  await this.fileService.createFile(this.resource);
42
42
  }
43
43
  catch (error) {
44
- if (error.fileOperationResult !== 3 ) {
44
+ if (error.fileOperationResult !== FileOperationResult.FILE_MODIFIED_SINCE) {
45
45
  throw error;
46
46
  }
47
47
  }
@@ -2,11 +2,12 @@ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { getLogLevel, LogLevelToString, parseLogLevel } from 'vscode/vscode/vs/platform/log/common/log';
3
3
  import { ILogService, ILoggerService } from 'vscode/vscode/vs/platform/log/common/log.service';
4
4
  import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
5
- import { toFileOperationResult } from 'vscode/vscode/vs/platform/files/common/files';
5
+ import { toFileOperationResult, FileOperationResult } from 'vscode/vscode/vs/platform/files/common/files';
6
6
  import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
7
7
  import { IJSONEditingService } from 'vscode/vscode/vs/workbench/services/configuration/common/jsonEditing.service';
8
8
  import { isUndefined, isString } from 'vscode/vscode/vs/base/common/types';
9
9
  import { EXTENSION_IDENTIFIER_WITH_LOG_REGEX } from '@codingame/monaco-vscode-environment-service-override/vscode/vs/platform/environment/common/environmentService';
10
+ import 'vscode/vscode/vs/platform/instantiation/common/extensions';
10
11
  import { parse } from 'vscode/vscode/vs/base/common/json';
11
12
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
12
13
  import { Emitter } from 'vscode/vscode/vs/base/common/event';
@@ -127,7 +128,7 @@ let DefaultLogLevelsService = class DefaultLogLevelsService extends Disposable {
127
128
  return isString(argv['log-level']) ? [argv['log-level']] : Array.isArray(argv['log-level']) ? argv['log-level'] : [];
128
129
  }
129
130
  catch (error) {
130
- if (toFileOperationResult(error) !== 1 ) {
131
+ if (toFileOperationResult(error) !== FileOperationResult.FILE_NOT_FOUND) {
131
132
  this.logService.error(error);
132
133
  }
133
134
  }
@@ -12,6 +12,7 @@ import { IOutputService } from 'vscode/vscode/vs/workbench/services/output/commo
12
12
  import { Disposable, DisposableMap, DisposableStore, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
13
13
  import { CONTEXT_LOG_LEVEL, LogLevelToString, isLogLevel } from 'vscode/vscode/vs/platform/log/common/log';
14
14
  import { ILogService, ILoggerService } from 'vscode/vscode/vs/platform/log/common/log.service';
15
+ import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
15
16
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
16
17
  import { Event } from 'vscode/vscode/vs/base/common/event';
17
18
  import { showWindowLogActionId, windowLogId } from 'vscode/vscode/vs/workbench/services/log/common/logConstants';
@@ -214,5 +215,5 @@ let LogLevelMigration = class LogLevelMigration {
214
215
  LogLevelMigration = ( (__decorate([
215
216
  ( (__param(0, IDefaultLogLevelsService)))
216
217
  ], LogLevelMigration)));
217
- ( (Registry.as(Extensions$1.Workbench))).registerWorkbenchContribution(LogOutputChannels, 3 );
218
- ( (Registry.as(Extensions$1.Workbench))).registerWorkbenchContribution(LogLevelMigration, 4 );
218
+ ( (Registry.as(Extensions$1.Workbench))).registerWorkbenchContribution(LogOutputChannels, LifecyclePhase.Restored);
219
+ ( (Registry.as(Extensions$1.Workbench))).registerWorkbenchContribution(LogLevelMigration, LifecyclePhase.Eventually);
@@ -168,7 +168,7 @@ SetLogLevelAction = SetLogLevelAction_1 = ( (__decorate([
168
168
  placeHolder: ( localizeWithPath(_moduleId, 11, "Select Session"))
169
169
  });
170
170
  if (sessionResult) {
171
- const logFileResult = await this.quickInputService.pick(this.getLogFiles(( (URI.parse(sessionResult.id)))).then(logFiles => ( (logFiles.map(s => ({
171
+ const logFileResult = await this.quickInputService.pick(this.getLogFiles(( (URI.parse(sessionResult.id)))).then(logFiles => ( (logFiles.map((s) => ({
172
172
  id: ( (s.toString())),
173
173
  label: basename(s)
174
174
  }))))), {