@codingame/monaco-vscode-base-service-override 26.1.2 → 26.2.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/index.js +8 -0
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -41,6 +41,9 @@ import { UserAttentionService } from './vscode/src/vs/workbench/services/userAtt
|
|
|
41
41
|
import { EditorWorkerService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/editorWorkerService';
|
|
42
42
|
import { IRenameSymbolTrackerService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/renameSymbolTrackerService.service';
|
|
43
43
|
import { RenameSymbolTrackerService } from './vscode/src/vs/workbench/contrib/inlineCompletions/browser/renameSymbolTrackerService.js';
|
|
44
|
+
import { EditorMarkdownCodeBlockRenderer } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/markdownRenderer/browser/editorMarkdownCodeBlockRenderer';
|
|
45
|
+
import { registerServiceInitializeParticipant } from '@codingame/monaco-vscode-api/lifecycle';
|
|
46
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
44
47
|
|
|
45
48
|
let BrowserPathServiceOverride = class BrowserPathServiceOverride extends AbstractPathService {
|
|
46
49
|
constructor(remoteAgentService, environmentService, contextService) {
|
|
@@ -52,6 +55,11 @@ BrowserPathServiceOverride = __decorate([
|
|
|
52
55
|
__param(1, IWorkbenchEnvironmentService),
|
|
53
56
|
__param(2, IWorkspaceContextService)
|
|
54
57
|
], BrowserPathServiceOverride);
|
|
58
|
+
registerServiceInitializeParticipant(async (accessor) => {
|
|
59
|
+
const markdownRendererService = accessor.get(IMarkdownRendererService);
|
|
60
|
+
const instantiationService = accessor.get(IInstantiationService);
|
|
61
|
+
markdownRendererService.setDefaultCodeBlockRenderer(instantiationService.createInstance(EditorMarkdownCodeBlockRenderer));
|
|
62
|
+
});
|
|
55
63
|
function getServiceOverride() {
|
|
56
64
|
return {
|
|
57
65
|
[IRequestService.toString()]: new SyncDescriptor(BrowserRequestService, [], true),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-base-service-override",
|
|
3
|
-
"version": "26.1
|
|
3
|
+
"version": "26.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - base service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "26.1
|
|
18
|
+
"@codingame/monaco-vscode-api": "26.2.1"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|