@codingame/monaco-vscode-base-service-override 9.0.0 → 9.0.2

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/base.js CHANGED
@@ -28,6 +28,8 @@ import { ITrustedDomainService } from 'vscode/vscode/vs/workbench/contrib/url/br
28
28
  import { TrustedDomainService } from 'vscode/vscode/vs/workbench/contrib/url/browser/trustedDomainService';
29
29
  import { LabelService } from './vscode/src/vs/workbench/services/label/common/labelService.js';
30
30
  import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label.service';
31
+ import { IEditorWorkerService } from 'vscode/vscode/vs/editor/common/services/editorWorker';
32
+ import { WorkbenchEditorWorkerService } from './vscode/src/vs/workbench/contrib/codeEditor/browser/workbenchEditorWorkerService.js';
31
33
  import { getEnvironmentOverride } from 'vscode/workbench';
32
34
 
33
35
  let BrowserPathServiceOverride = class BrowserPathServiceOverride extends AbstractPathService {
@@ -53,7 +55,8 @@ function getServiceOverride() {
53
55
  [( IWorkingCopyFileService.toString())]: new SyncDescriptor(WorkingCopyFileService, [], false),
54
56
  [( IPathService.toString())]: new SyncDescriptor(BrowserPathServiceOverride, [], true),
55
57
  [( ITrustedDomainService.toString())]: new SyncDescriptor(TrustedDomainService, [], true),
56
- [( ILabelService.toString())]: new SyncDescriptor(LabelService, [], true)
58
+ [( ILabelService.toString())]: new SyncDescriptor(LabelService, [], true),
59
+ [( IEditorWorkerService.toString())]: new SyncDescriptor(WorkbenchEditorWorkerService, [], true)
57
60
  };
58
61
  }
59
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-base-service-override",
3
- "version": "9.0.0",
3
+ "version": "9.0.2",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,6 +26,6 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@9.0.0"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@9.0.2"
30
30
  }
31
31
  }
@@ -0,0 +1,24 @@
1
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
+ import { WorkerDescriptor } from 'vscode/vscode/vs/base/browser/defaultWorkerFactory';
3
+ import { EditorWorkerService } from 'vscode/vscode/vs/editor/browser/services/editorWorkerService';
4
+ import { ILanguageConfigurationService } from 'vscode/vscode/vs/editor/common/languages/languageConfigurationRegistry';
5
+ import { ILanguageFeaturesService } from 'vscode/vscode/vs/editor/common/services/languageFeatures';
6
+ import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
7
+ import { ITextResourceConfigurationService } from 'vscode/vscode/vs/editor/common/services/textResourceConfiguration';
8
+ import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
9
+
10
+ let WorkbenchEditorWorkerService = class WorkbenchEditorWorkerService extends EditorWorkerService {
11
+ constructor(modelService, configurationService, logService, languageConfigurationService, languageFeaturesService) {
12
+ const workerDescriptor = ( new WorkerDescriptor('vs/editor/common/services/editorSimpleWorker', 'TextEditorWorker'));
13
+ super(workerDescriptor, modelService, configurationService, logService, languageConfigurationService, languageFeaturesService);
14
+ }
15
+ };
16
+ WorkbenchEditorWorkerService = ( __decorate([
17
+ ( __param(0, IModelService)),
18
+ ( __param(1, ITextResourceConfigurationService)),
19
+ ( __param(2, ILogService)),
20
+ ( __param(3, ILanguageConfigurationService)),
21
+ ( __param(4, ILanguageFeaturesService))
22
+ ], WorkbenchEditorWorkerService));
23
+
24
+ export { WorkbenchEditorWorkerService };
@@ -107,7 +107,7 @@ let JSONEditingService = class JSONEditingService {
107
107
  switch (error) {
108
108
  case JSONEditingErrorCode.ERROR_INVALID_FILE: {
109
109
  return ( localize(
110
- 1026,
110
+ 858,
111
111
  "Unable to write into the file. Please open the file to correct errors/warnings in the file and try again."
112
112
  ));
113
113
  }
@@ -159,7 +159,7 @@ class DecorationStyles {
159
159
  const strikethrough = ( (data.some(d => d.strikethrough)));
160
160
  if (onlyChildren) {
161
161
  badgeClassName = rule.bubbleBadgeClassName;
162
- tooltip = ( localize(1027, "Contains emphasized items"));
162
+ tooltip = ( localize(859, "Contains emphasized items"));
163
163
  }
164
164
  return {
165
165
  labelClassName,
@@ -31,7 +31,7 @@ import { firstOrDefault } from 'vscode/vscode/vs/base/common/arrays';
31
31
  const resourceLabelFormattersExtPoint = ExtensionsRegistry.registerExtensionPoint({
32
32
  extensionPoint: 'resourceLabelFormatters',
33
33
  jsonSchema: {
34
- description: ( localize(1028, 'Contributes resource label formatting rules.')),
34
+ description: ( localize(860, 'Contributes resource label formatting rules.')),
35
35
  type: 'array',
36
36
  items: {
37
37
  type: 'object',
@@ -40,52 +40,52 @@ const resourceLabelFormattersExtPoint = ExtensionsRegistry.registerExtensionPoin
40
40
  scheme: {
41
41
  type: 'string',
42
42
  description: ( localize(
43
- 1029,
43
+ 861,
44
44
  'URI scheme on which to match the formatter on. For example "file". Simple glob patterns are supported.'
45
45
  )),
46
46
  },
47
47
  authority: {
48
48
  type: 'string',
49
49
  description: ( localize(
50
- 1030,
50
+ 862,
51
51
  'URI authority on which to match the formatter on. Simple glob patterns are supported.'
52
52
  )),
53
53
  },
54
54
  formatting: {
55
- description: ( localize(1031, "Rules for formatting uri resource labels.")),
55
+ description: ( localize(863, "Rules for formatting uri resource labels.")),
56
56
  type: 'object',
57
57
  properties: {
58
58
  label: {
59
59
  type: 'string',
60
60
  description: ( localize(
61
- 1032,
61
+ 864,
62
62
  "Label rules to display. For example: myLabel:/${path}. ${path}, ${scheme}, ${authority} and ${authoritySuffix} are supported as variables."
63
63
  ))
64
64
  },
65
65
  separator: {
66
66
  type: 'string',
67
67
  description: ( localize(
68
- 1033,
68
+ 865,
69
69
  "Separator to be used in the uri label display. '/' or '\' as an example."
70
70
  ))
71
71
  },
72
72
  stripPathStartingSeparator: {
73
73
  type: 'boolean',
74
74
  description: ( localize(
75
- 1034,
75
+ 866,
76
76
  "Controls whether `${path}` substitutions should have starting separator characters stripped."
77
77
  ))
78
78
  },
79
79
  tildify: {
80
80
  type: 'boolean',
81
81
  description: ( localize(
82
- 1035,
82
+ 867,
83
83
  "Controls if the start of the uri label should be tildified when possible."
84
84
  ))
85
85
  },
86
86
  workspaceSuffix: {
87
87
  type: 'string',
88
- description: ( localize(1036, "Suffix appended to the workspace label."))
88
+ description: ( localize(868, "Suffix appended to the workspace label."))
89
89
  }
90
90
  }
91
91
  }
@@ -264,10 +264,10 @@ let LabelService = class LabelService extends Disposable {
264
264
  }
265
265
  doGetWorkspaceLabel(workspaceUri, options) {
266
266
  if (isUntitledWorkspace(workspaceUri, this.environmentService)) {
267
- return ( localize(1037, "Untitled (Workspace)"));
267
+ return ( localize(869, "Untitled (Workspace)"));
268
268
  }
269
269
  if (isTemporaryWorkspace(workspaceUri)) {
270
- return ( localize(1038, "Workspace"));
270
+ return ( localize(870, "Workspace"));
271
271
  }
272
272
  let filename = basename(workspaceUri);
273
273
  if (filename.endsWith(WORKSPACE_EXTENSION)) {
@@ -280,14 +280,14 @@ let LabelService = class LabelService extends Disposable {
280
280
  break;
281
281
  case Verbosity.LONG:
282
282
  label = ( localize(
283
- 1039,
283
+ 871,
284
284
  "{0} (Workspace)",
285
285
  this.getUriLabel(joinPath(dirname(workspaceUri), filename))
286
286
  ));
287
287
  break;
288
288
  case Verbosity.MEDIUM:
289
289
  default:
290
- label = ( localize(1040, "{0} (Workspace)", filename));
290
+ label = ( localize(872, "{0} (Workspace)", filename));
291
291
  break;
292
292
  }
293
293
  if (options?.verbose === Verbosity.SHORT) {