@codingame/monaco-vscode-editor-service-override 2.0.3-improve-modularity.1 → 2.0.3
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/editor.js +1 -8
- package/package.json +2 -2
package/editor.js
CHANGED
|
@@ -4,11 +4,8 @@ import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
|
4
4
|
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
5
5
|
import { CodeEditorService } from 'vscode/vscode/vs/workbench/services/editor/browser/codeEditorService';
|
|
6
6
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
7
|
-
import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
|
|
8
7
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
9
8
|
import { ITextEditorService, TextEditorService } from 'vscode/vscode/vs/workbench/services/textfile/common/textEditorService';
|
|
10
|
-
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
11
|
-
import { FILE_EDITOR_INPUT_ID } from 'vscode/vscode/vs/workbench/contrib/files/common/files';
|
|
12
9
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
13
10
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
14
11
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
@@ -16,6 +13,7 @@ import { DEFAULT_EDITOR_PART_OPTIONS } from 'vscode/vscode/vs/workbench/browser/
|
|
|
16
13
|
import { MonacoEditorService, MonacoDelegateEditorGroupsService } from './tools/editor.js';
|
|
17
14
|
import { unsupported } from './tools.js';
|
|
18
15
|
import 'vscode/vscode/vs/workbench/browser/parts/editor/editor.autosave.contribution';
|
|
16
|
+
import 'vscode/vscode/vs/workbench/contrib/files/browser/files.fileEditorFactory.contribution';
|
|
19
17
|
|
|
20
18
|
class EmptyEditorGroup {
|
|
21
19
|
constructor() {
|
|
@@ -205,11 +203,6 @@ let MonacoEditorGroupsService = class MonacoEditorGroupsService extends MonacoDe
|
|
|
205
203
|
MonacoEditorGroupsService = __decorate([
|
|
206
204
|
( __param(0, IInstantiationService))
|
|
207
205
|
], MonacoEditorGroupsService);
|
|
208
|
-
( Registry.as(EditorExtensions.EditorFactory)).registerFileEditorFactory({
|
|
209
|
-
typeId: FILE_EDITOR_INPUT_ID,
|
|
210
|
-
createFileEditor: unsupported,
|
|
211
|
-
isFileEditor: (obj) => false
|
|
212
|
-
});
|
|
213
206
|
function getServiceOverride(openEditor) {
|
|
214
207
|
return {
|
|
215
208
|
[( ICodeEditorService.toString())]: new SyncDescriptor(CodeEditorService, undefined, true),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-editor-service-override",
|
|
3
|
-
"version": "2.0.3
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@2.0.3
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@2.0.3",
|
|
22
22
|
"vscode-marked": "npm:marked@=3.0.2"
|
|
23
23
|
}
|
|
24
24
|
}
|