@codingame/monaco-vscode-language-detection-worker-service-override 1.85.6 → 2.0.0-v2.1
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/languageDetectionWorker.js +1 -1
- package/package.json +4 -5
- package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +13 -13
- package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionSimpleWorker.js +2 -2
- package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionWorkerServiceImpl.js +15 -15
- package/workers/languageDetection.worker.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SyncDescriptor } from '
|
|
1
|
+
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
2
2
|
import { LanguageDetectionService } from './vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionWorkerServiceImpl.js';
|
|
3
3
|
import { ILanguageDetectionService } from 'vscode/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService';
|
|
4
4
|
import { registerAssets } from 'vscode/assets';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-language-detection-worker-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-v2.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git
|
|
12
|
+
"url": "git@github.com:CodinGame/monaco-vscode-api.git"
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"private": false,
|
|
@@ -18,9 +18,8 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
22
|
-
"@vscode/vscode-languagedetection": "1.0.21"
|
|
23
|
-
"monaco-editor": "0.45.0"
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@2.0.0-v2.1",
|
|
22
|
+
"@vscode/vscode-languagedetection": "1.0.21"
|
|
24
23
|
},
|
|
25
24
|
"exports": {
|
|
26
25
|
".": {
|
package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { DisposableStore } from '
|
|
3
|
-
import { getCodeEditor } from '
|
|
4
|
-
import { localizeWithPath } from '
|
|
5
|
-
import { Registry } from '
|
|
2
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { getCodeEditor } from 'vscode/vscode/vs/editor/browser/editorBrowser';
|
|
4
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
5
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
6
6
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
7
7
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
8
8
|
import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar';
|
|
9
9
|
import { ILanguageDetectionService, LanguageDetectionLanguageEventSource } from 'vscode/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService';
|
|
10
|
-
import { ThrottledDelayer } from '
|
|
11
|
-
import { ILanguageService } from '
|
|
12
|
-
import { IKeybindingService } from '
|
|
13
|
-
import { registerAction2, Action2 } from '
|
|
14
|
-
import { INotificationService } from '
|
|
15
|
-
import { ContextKeyExpr } from '
|
|
10
|
+
import { ThrottledDelayer } from 'vscode/vscode/vs/base/common/async';
|
|
11
|
+
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
12
|
+
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
13
|
+
import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
14
|
+
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
15
|
+
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
16
16
|
import { NOTEBOOK_EDITOR_EDITABLE } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
17
|
-
import { EditorContextKeys } from '
|
|
18
|
-
import { Schemas } from '
|
|
19
|
-
import { IConfigurationService } from '
|
|
17
|
+
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
18
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
19
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
20
20
|
|
|
21
21
|
var LanguageDetectionStatusContribution_1;
|
|
22
22
|
const detectLanguageCommandId = 'editor.detectLanguage';
|
package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionSimpleWorker.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModelOperations } from '@vscode/vscode-languagedetection';
|
|
2
|
-
import { StopWatch } from '
|
|
3
|
-
import { EditorSimpleWorker } from '
|
|
2
|
+
import { StopWatch } from 'vscode/vscode/vs/base/common/stopwatch';
|
|
3
|
+
import { EditorSimpleWorker } from 'vscode/vscode/vs/editor/common/services/editorSimpleWorker';
|
|
4
4
|
|
|
5
5
|
function create(host) {
|
|
6
6
|
return ( new LanguageDetectionSimpleWorker(host, null));
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Disposable } from '
|
|
2
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
3
|
import { LanguageDetectionStatsId } from 'vscode/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService';
|
|
4
|
-
import { FileAccess, Schemas, nodeModulesPath, nodeModulesAsarPath } from '
|
|
4
|
+
import { FileAccess, Schemas, nodeModulesPath, nodeModulesAsarPath } from 'vscode/vscode/vs/base/common/network';
|
|
5
5
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
6
|
-
import { IConfigurationService } from '
|
|
7
|
-
import { ILanguageService } from '
|
|
8
|
-
import { URI } from '
|
|
9
|
-
import { isWeb } from '
|
|
10
|
-
import { IModelService } from '
|
|
11
|
-
import { SimpleWorkerClient } from '
|
|
12
|
-
import { ITelemetryService } from '
|
|
13
|
-
import { EditorWorkerClient, EditorWorkerHost } from '
|
|
14
|
-
import { ILanguageConfigurationService } from '
|
|
6
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
7
|
+
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
8
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
9
|
+
import { isWeb } from 'vscode/vscode/vs/base/common/platform';
|
|
10
|
+
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
11
|
+
import { SimpleWorkerClient } from 'vscode/vscode/vs/base/common/worker/simpleWorker';
|
|
12
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
13
|
+
import { EditorWorkerClient, EditorWorkerHost } from 'vscode/vscode/vs/editor/browser/services/editorWorkerService';
|
|
14
|
+
import { ILanguageConfigurationService } from 'vscode/vscode/vs/editor/common/languages/languageConfigurationRegistry';
|
|
15
15
|
import { IDiagnosticsService } from 'vscode/vscode/vs/platform/diagnostics/common/diagnostics';
|
|
16
|
-
import { IWorkspaceContextService } from '
|
|
16
|
+
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
17
17
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
18
|
-
import { IStorageService } from '
|
|
19
|
-
import { LRUCache } from '
|
|
20
|
-
import { ILogService } from '
|
|
18
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
19
|
+
import { LRUCache } from 'vscode/vscode/vs/base/common/map';
|
|
20
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
21
21
|
|
|
22
22
|
var LanguageDetectionService_1;
|
|
23
23
|
const TOP_LANG_COUNTS = 12;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { create } from '../vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionSimpleWorker.js';
|
|
2
|
-
import { SimpleWorkerServer } from '
|
|
2
|
+
import { SimpleWorkerServer } from 'vscode/vscode/vs/base/common/worker/simpleWorker';
|
|
3
3
|
|
|
4
4
|
const simpleWorker = new SimpleWorkerServer((msg) => {
|
|
5
5
|
globalThis.postMessage(msg);
|