@codingame/monaco-vscode-language-detection-worker-service-override 14.0.5 → 15.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-language-detection-worker-service-override",
3
- "version": "14.0.5",
3
+ "version": "15.0.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - language-detection-worker service-override",
6
6
  "keywords": [],
@@ -15,10 +15,10 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-695440c8-a687-5594-b476-bbc7b36bafe9-common": "14.0.5",
19
- "@codingame/monaco-vscode-771c2e6d-0284-5ac1-be73-7176085eedc5-common": "14.0.5",
20
- "@codingame/monaco-vscode-a17f5129-e16c-5dac-857e-dcd91bfeffa2-common": "14.0.5",
21
- "@codingame/monaco-vscode-api": "14.0.5",
18
+ "@codingame/monaco-vscode-52bb4d5b-ba1a-57fd-9bee-b28824214eac-common": "15.0.0",
19
+ "@codingame/monaco-vscode-695440c8-a687-5594-b476-bbc7b36bafe9-common": "15.0.0",
20
+ "@codingame/monaco-vscode-aff8bc9b-c6f8-578f-9c8a-f70d14f9c13c-common": "15.0.0",
21
+ "@codingame/monaco-vscode-api": "15.0.0",
22
22
  "@vscode/vscode-languagedetection": "npm:@codingame/vscode-languagedetection@1.0.23"
23
23
  },
24
24
  "main": "index.js",
@@ -29,15 +29,15 @@
29
29
  "default": "./index.js"
30
30
  },
31
31
  "./vscode/*": {
32
- "default": "./vscode/src/*.js",
33
- "types": "./vscode/src/*.d.ts"
32
+ "types": "./vscode/src/*.d.ts",
33
+ "default": "./vscode/src/*.js"
34
34
  },
35
35
  "./worker": {
36
36
  "default": "./worker.js"
37
37
  },
38
38
  "./*": {
39
- "default": "./*.js",
40
- "types": "./*.d.ts"
39
+ "types": "./*.d.ts",
40
+ "default": "./*.js"
41
41
  }
42
42
  },
43
43
  "typesVersions": {
@@ -9,16 +9,16 @@ import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench
9
9
  import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
10
10
  import { StatusbarAlignment } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/statusbar/browser/statusbar';
11
11
  import { IStatusbarService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/statusbar/browser/statusbar.service';
12
- import { LanguageDetectionLanguageEventSource } from '@codingame/monaco-vscode-a17f5129-e16c-5dac-857e-dcd91bfeffa2-common/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService';
12
+ import { LanguageDetectionLanguageEventSource } from '@codingame/monaco-vscode-aff8bc9b-c6f8-578f-9c8a-f70d14f9c13c-common/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService';
13
13
  import { ILanguageDetectionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.service';
14
14
  import { ThrottledDelayer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
15
- import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language';
15
+ import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service';
16
16
  import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
17
17
  import { registerAction2, Action2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
18
18
  import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
19
19
  import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
20
20
  import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
21
- import { NOTEBOOK_EDITOR_EDITABLE } from '@codingame/monaco-vscode-771c2e6d-0284-5ac1-be73-7176085eedc5-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
21
+ import { NOTEBOOK_EDITOR_EDITABLE } from '@codingame/monaco-vscode-52bb4d5b-ba1a-57fd-9bee-b28824214eac-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
22
22
  import { KeyCode, KeyMod } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
23
23
  import { EditorContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorContextKeys';
24
24
  import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
@@ -76,21 +76,21 @@ let LanguageDetectionStatusContribution = class LanguageDetectionStatusContribut
76
76
  const existing = editorModel.getLanguageId();
77
77
  if (lang && lang !== existing && skip[existing] !== lang) {
78
78
  const detectedName = this._languageService.getLanguageName(lang) || lang;
79
- let tooltip = ( localize(7094, "Accept Detected Language: {0}", detectedName));
79
+ let tooltip = ( localize(7178, "Accept Detected Language: {0}", detectedName));
80
80
  const keybinding = this._keybindingService.lookupKeybinding(detectLanguageCommandId);
81
81
  const label = keybinding?.getLabel();
82
82
  if (label) {
83
83
  tooltip += ` (${label})`;
84
84
  }
85
85
  const props = {
86
- name: ( localize(7095, "Language Detection")),
87
- ariaLabel: ( localize(7096, "Change to Detected Language: {0}", lang)),
86
+ name: ( localize(7179, "Language Detection")),
87
+ ariaLabel: ( localize(7180, "Change to Detected Language: {0}", lang)),
88
88
  tooltip,
89
89
  command: detectLanguageCommandId,
90
90
  text: '$(lightbulb-autofix)',
91
91
  };
92
92
  if (!this._combinedEntry) {
93
- this._combinedEntry = this._statusBarService.addEntry(props, LanguageDetectionStatusContribution_1._id, StatusbarAlignment.RIGHT, { id: 'status.editor.mode', alignment: StatusbarAlignment.RIGHT, compact: true });
93
+ this._combinedEntry = this._statusBarService.addEntry(props, LanguageDetectionStatusContribution_1._id, StatusbarAlignment.RIGHT, { location: { id: 'status.editor.mode', priority: 100.1 }, alignment: StatusbarAlignment.RIGHT, compact: true });
94
94
  }
95
95
  else {
96
96
  this._combinedEntry.update(props);
@@ -116,7 +116,7 @@ registerAction2(class extends Action2 {
116
116
  constructor() {
117
117
  super({
118
118
  id: detectLanguageCommandId,
119
- title: ( localize2(7097, "Detect Language from Content")),
119
+ title: ( localize2(7181, "Detect Language from Content")),
120
120
  f1: true,
121
121
  precondition: ( ContextKeyExpr.and(( NOTEBOOK_EDITOR_EDITABLE.toNegated()), EditorContextKeys.editorTextFocus)),
122
122
  keybinding: { primary: KeyCode.KeyD | KeyMod.Alt | KeyMod.Shift, weight: KeybindingWeight.WorkbenchContrib }
@@ -134,7 +134,7 @@ registerAction2(class extends Action2 {
134
134
  editor.getModel()?.setLanguage(lang, LanguageDetectionLanguageEventSource);
135
135
  }
136
136
  else {
137
- notificationService.warn(( localize(7098, "Unable to detect editor language")));
137
+ notificationService.warn(( localize(7182, "Unable to detect editor language")));
138
138
  }
139
139
  }
140
140
  }
@@ -2,9 +2,9 @@ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/l
2
2
  import { ILanguageDetectionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.service";
3
3
  import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
4
4
  import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
5
- import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language";
5
+ import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service";
6
6
  import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
7
- import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model";
7
+ import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service";
8
8
  import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
9
9
  import { IDiagnosticsService } from "@codingame/monaco-vscode-api/vscode/vs/platform/diagnostics/common/diagnostics.service";
10
10
  import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
@@ -1,16 +1,16 @@
1
1
 
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
3
  import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
4
- import { LanguageDetectionStatsId } from '@codingame/monaco-vscode-a17f5129-e16c-5dac-857e-dcd91bfeffa2-common/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService';
4
+ import { LanguageDetectionStatsId } from '@codingame/monaco-vscode-aff8bc9b-c6f8-578f-9c8a-f70d14f9c13c-common/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService';
5
5
  import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
6
6
  import { nodeModulesPath, FileAccess, Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
7
7
  import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
8
8
  import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
9
- import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language';
9
+ import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service';
10
10
  import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
11
11
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
12
12
  import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
13
- import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model';
13
+ import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service';
14
14
  import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
15
15
  import { IDiagnosticsService } from '@codingame/monaco-vscode-api/vscode/vs/platform/diagnostics/common/diagnostics.service';
16
16
  import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';