@codingame/monaco-vscode-api 5.0.0 → 5.1.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/api.js +1 -1
- package/lifecycle.js +4 -2
- package/missing-services.js +8 -2
- package/package.json +8 -8
- package/service-override/tools/editor.js +3 -3
- package/service-override/tools/views.d.ts +2 -1
- package/service-override/tools/views.js +8 -0
- package/services.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +3 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +2 -1
package/api.js
CHANGED
package/lifecycle.js
CHANGED
|
@@ -33,6 +33,10 @@ async function startup(instantiationService) {
|
|
|
33
33
|
await instantiationService.invokeFunction(async (accessor) => {
|
|
34
34
|
await Promise.all(( serviceInitializePreParticipants.map(participant => participant(accessor))));
|
|
35
35
|
});
|
|
36
|
+
await instantiationService.invokeFunction(async (accessor) => {
|
|
37
|
+
setHoverDelegateFactory((placement, enableInstantHover) => instantiationService.createInstance(WorkbenchHoverDelegate, placement, enableInstantHover, {}));
|
|
38
|
+
setBaseLayerHoverDelegate(accessor.get(IHoverService));
|
|
39
|
+
});
|
|
36
40
|
await instantiationService.invokeFunction(async (accessor) => {
|
|
37
41
|
const lifecycleService = accessor.get(ILifecycleService);
|
|
38
42
|
await Promise.all(( serviceInitializeParticipants.map(participant => participant(accessor))));
|
|
@@ -45,8 +49,6 @@ async function startup(instantiationService) {
|
|
|
45
49
|
serviceInitializedEmitter.fire();
|
|
46
50
|
void instantiationService.invokeFunction(async (accessor) => {
|
|
47
51
|
const lifecycleService = accessor.get(ILifecycleService);
|
|
48
|
-
setHoverDelegateFactory((placement, enableInstantHover) => instantiationService.createInstance(WorkbenchHoverDelegate, placement, enableInstantHover, {}));
|
|
49
|
-
setBaseLayerHoverDelegate(accessor.get(IHoverService));
|
|
50
52
|
( Registry.as(Extensions.Workbench)).start(accessor);
|
|
51
53
|
( Registry.as(EditorExtensions.EditorFactory)).start(accessor);
|
|
52
54
|
layoutEmitter.fire(accessor);
|
package/missing-services.js
CHANGED
|
@@ -205,6 +205,7 @@ import { IWorkspaceIdentityService } from './vscode/src/vs/workbench/services/wo
|
|
|
205
205
|
import { NullExtensionService } from './vscode/src/vs/workbench/services/extensions/common/extensions.js';
|
|
206
206
|
import { toUserDataProfile } from './vscode/src/vs/platform/userDataProfile/common/userDataProfile.js';
|
|
207
207
|
import { ILanguageModelStatsService } from './vscode/src/vs/workbench/contrib/chat/common/languageModelStats.service.js';
|
|
208
|
+
import { IAccessibleViewInformationService } from './vscode/src/vs/workbench/services/accessibility/common/accessibleViewInformationService.service.js';
|
|
208
209
|
import { getExtensionIdProvidingCurrentLocale, getBuiltInExtensionTranslationsUris } from './l10n.js';
|
|
209
210
|
import { unsupported } from './tools.js';
|
|
210
211
|
var _a;
|
|
@@ -573,8 +574,8 @@ registerSingleton(IPathService, class PathService {
|
|
|
573
574
|
registerSingleton(IProductService, class ProductService {
|
|
574
575
|
constructor() {
|
|
575
576
|
this._serviceBrand = undefined;
|
|
576
|
-
this.version = "1.89.
|
|
577
|
-
this.commit = "
|
|
577
|
+
this.version = "1.89.1";
|
|
578
|
+
this.commit = "dc96b837cf6bb4af9cd736aa3af08cf8279f7685";
|
|
578
579
|
this.quality = 'oss';
|
|
579
580
|
this.nameShort = 'Code - OSS Dev';
|
|
580
581
|
this.nameLong = 'Code - OSS Dev';
|
|
@@ -2201,6 +2202,11 @@ registerSingleton(IAccessibleViewService, class AccessibleViewService {
|
|
|
2201
2202
|
this.getLastPosition = unsupported;
|
|
2202
2203
|
}
|
|
2203
2204
|
}, 1 );
|
|
2205
|
+
registerSingleton(IAccessibleViewInformationService, class AccessibleViewInformationService {
|
|
2206
|
+
constructor() {
|
|
2207
|
+
this.hasShownAccessibleView = () => false;
|
|
2208
|
+
}
|
|
2209
|
+
}, 1 );
|
|
2204
2210
|
registerSingleton(IWorkbenchExtensionManagementService, class WorkbenchExtensionManagementService {
|
|
2205
2211
|
constructor() {
|
|
2206
2212
|
this.onDidEnableExtensions = Event.None;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "VSCode public API plugged on the monaco editor",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": {
|
|
@@ -99,12 +99,12 @@
|
|
|
99
99
|
"dependencies": {
|
|
100
100
|
"@vscode/iconv-lite-umd": "0.7.0",
|
|
101
101
|
"jschardet": "3.0.0",
|
|
102
|
-
"@codingame/monaco-vscode-extensions-service-override": "5.
|
|
103
|
-
"@codingame/monaco-vscode-files-service-override": "5.
|
|
104
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "5.
|
|
105
|
-
"@codingame/monaco-vscode-environment-service-override": "5.
|
|
106
|
-
"@codingame/monaco-vscode-layout-service-override": "5.
|
|
107
|
-
"@codingame/monaco-vscode-host-service-override": "5.
|
|
108
|
-
"@codingame/monaco-vscode-base-service-override": "5.
|
|
102
|
+
"@codingame/monaco-vscode-extensions-service-override": "5.1.0",
|
|
103
|
+
"@codingame/monaco-vscode-files-service-override": "5.1.0",
|
|
104
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "5.1.0",
|
|
105
|
+
"@codingame/monaco-vscode-environment-service-override": "5.1.0",
|
|
106
|
+
"@codingame/monaco-vscode-layout-service-override": "5.1.0",
|
|
107
|
+
"@codingame/monaco-vscode-host-service-override": "5.1.0",
|
|
108
|
+
"@codingame/monaco-vscode-base-service-override": "5.1.0"
|
|
109
109
|
}
|
|
110
110
|
}
|
|
@@ -499,7 +499,7 @@ let MonacoDelegateEditorGroupsService = class MonacoDelegateEditorGroupsService
|
|
|
499
499
|
this._onDidChangeActiveGroup.fire(this.activeGroup);
|
|
500
500
|
}
|
|
501
501
|
};
|
|
502
|
-
const
|
|
502
|
+
const removeActiveGroup = (editor) => {
|
|
503
503
|
if (!emptyDelegate && this.activeGroupOverride === this.additionalGroups.find(group => group.editor === editor)) {
|
|
504
504
|
updateActiveGroup(undefined);
|
|
505
505
|
}
|
|
@@ -514,11 +514,11 @@ let MonacoDelegateEditorGroupsService = class MonacoDelegateEditorGroupsService
|
|
|
514
514
|
window.clearTimeout(timeout);
|
|
515
515
|
timeout = window.setTimeout(() => {
|
|
516
516
|
timeout = undefined;
|
|
517
|
-
|
|
517
|
+
removeActiveGroup(editor);
|
|
518
518
|
}, 100);
|
|
519
519
|
};
|
|
520
520
|
editor.onDidDispose(() => {
|
|
521
|
-
|
|
521
|
+
removeActiveGroup(editor);
|
|
522
522
|
});
|
|
523
523
|
editor.onDidFocusEditorText(onEditorFocused);
|
|
524
524
|
editor.onDidFocusEditorWidget(onEditorFocused);
|
|
@@ -7,7 +7,7 @@ import { Event } from '../../vscode/src/vs/base/common/event.js';
|
|
|
7
7
|
import { DomScrollableElement } from '../../vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js';
|
|
8
8
|
import { CancellationToken } from '../../vscode/src/vs/base/common/cancellation.js';
|
|
9
9
|
import { URI } from '../../vscode/src/vs/base/common/uri.js';
|
|
10
|
-
import { IEditorOptions } from '../../vscode/src/vs/platform/editor/common/editor.js';
|
|
10
|
+
import { IEditorOptions, IResourceEditorInput } from '../../vscode/src/vs/platform/editor/common/editor.js';
|
|
11
11
|
import { Parts, Position } from '../../vscode/src/vs/workbench/services/layout/browser/layoutService.js';
|
|
12
12
|
import { Codicon } from '../../vscode/src/vs/base/common/codicons.js';
|
|
13
13
|
import { RegisteredEditorInfo, RegisteredEditorOptions, EditorInputFactoryObject } from '../../vscode/src/vs/workbench/services/editor/common/editorResolverService.js';
|
|
@@ -61,6 +61,7 @@ declare abstract class SimpleEditorInput extends EditorInput {
|
|
|
61
61
|
getDescription(verbosity?: Verbosity): string;
|
|
62
62
|
isDirty(): boolean;
|
|
63
63
|
setDirty(dirty: boolean): void;
|
|
64
|
+
toUntyped(): IResourceEditorInput | undefined;
|
|
64
65
|
}
|
|
65
66
|
declare function registerEditorPane<Services extends BrandedService[]>(typeId: string, name: string, ctor: new (group: IEditorGroup, ...services: Services) => EditorPane, inputCtors: (new (...args: any[]) => EditorInput)[]): IDisposable;
|
|
66
67
|
declare function registerEditor(globPattern: string, editorInfo: RegisteredEditorInfo, editorOptions: RegisteredEditorOptions, factory: EditorInputFactoryObject): IDisposable;
|
|
@@ -144,6 +144,14 @@ class SimpleEditorInput extends EditorInput {
|
|
|
144
144
|
this.dirty = dirty;
|
|
145
145
|
this._onDidChangeDirty.fire();
|
|
146
146
|
}
|
|
147
|
+
toUntyped() {
|
|
148
|
+
if (this.resource == null) {
|
|
149
|
+
return undefined;
|
|
150
|
+
}
|
|
151
|
+
return {
|
|
152
|
+
resource: this.resource
|
|
153
|
+
};
|
|
154
|
+
}
|
|
147
155
|
}
|
|
148
156
|
function registerEditorPane(typeId, name, ctor, inputCtors) {
|
|
149
157
|
return ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ctor, typeId, name), ( inputCtors.map(ctor => new SyncDescriptor(ctor))));
|
package/services.js
CHANGED
|
@@ -183,9 +183,9 @@ async function initialize(overrides, container = document.body, configuration =
|
|
|
183
183
|
initialize$1(container, configuration, env);
|
|
184
184
|
const instantiationService = StandaloneServices.initialize({
|
|
185
185
|
[( IProductService.toString())]: mixin({
|
|
186
|
-
version: "1.89.
|
|
186
|
+
version: "1.89.1",
|
|
187
187
|
quality: 'stable',
|
|
188
|
-
commit: "
|
|
188
|
+
commit: "dc96b837cf6bb4af9cd736aa3af08cf8279f7685",
|
|
189
189
|
nameShort: 'Code - OSS',
|
|
190
190
|
nameLong: 'Code - OSS',
|
|
191
191
|
applicationName: 'code-oss',
|
|
@@ -281,6 +281,9 @@ let AbstractTreeView = class AbstractTreeView extends Disposable {
|
|
|
281
281
|
}
|
|
282
282
|
set dataProvider(dataProvider) {
|
|
283
283
|
if (dataProvider) {
|
|
284
|
+
if (this.visible) {
|
|
285
|
+
this.activate();
|
|
286
|
+
}
|
|
284
287
|
const self = this;
|
|
285
288
|
this._dataProvider = new (class {
|
|
286
289
|
constructor() {
|
package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { IExtensionManagementService } from '../../../../platform/extensionManag
|
|
|
4
4
|
import { InstallExtensionOnServerEvent, UninstallExtensionOnServerEvent, DidUninstallExtensionOnServerEvent, DidChangeProfileForServerEvent, IResourceExtension, EnablementState, ScanOptions, IScannedExtension, DidChangeProfileEvent } from './extensionManagement.js';
|
|
5
5
|
import { IExtension, IExtensionManifest, ExtensionType } from '../../../../platform/extensions/common/extensions.js';
|
|
6
6
|
import { URI } from '../../../../base/common/uri.js';
|
|
7
|
-
import { InstallExtensionResult, ILocalExtension,
|
|
7
|
+
import { InstallExtensionResult, ILocalExtension, IGalleryExtension, InstallOptions, Metadata } from '../../../../platform/extensionManagement/common/extensionManagement.js';
|
|
8
8
|
|
|
9
9
|
declare const IProfileAwareExtensionManagementService: ServiceIdentifier<IProfileAwareExtensionManagementService>;
|
|
10
10
|
interface IProfileAwareExtensionManagementService extends IExtensionManagementService {
|
|
@@ -21,6 +21,7 @@ interface IWorkbenchExtensionManagementService extends IProfileAwareExtensionMan
|
|
|
21
21
|
onDidEnableExtensions: Event<IExtension[]>;
|
|
22
22
|
getExtensions(locations: URI[]): Promise<IResourceExtension[]>;
|
|
23
23
|
getInstalledWorkspaceExtensions(includeInvalid: boolean): Promise<ILocalExtension[]>;
|
|
24
|
+
canInstall(extension: IGalleryExtension | IResourceExtension): Promise<boolean>;
|
|
24
25
|
installVSIX(location: URI, manifest: IExtensionManifest, installOptions?: InstallOptions): Promise<ILocalExtension>;
|
|
25
26
|
installFromLocation(location: URI): Promise<ILocalExtension>;
|
|
26
27
|
installResourceExtension(extension: IResourceExtension, installOptions: InstallOptions): Promise<ILocalExtension>;
|