@codingame/monaco-vscode-api 1.79.3-next.2 → 1.79.3-next.4
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/dist/createApi.js +24 -0
- package/dist/custom-fetch.js +35 -0
- package/dist/default-extensions/bat.js +1 -2
- package/dist/default-extensions/clojure.js +1 -2
- package/dist/default-extensions/coffeescript.js +1 -2
- package/dist/default-extensions/cpp.js +1 -2
- package/dist/default-extensions/csharp.js +1 -2
- package/dist/default-extensions/css.js +1 -2
- package/dist/default-extensions/dart.js +1 -2
- package/dist/default-extensions/diff.js +1 -2
- package/dist/default-extensions/docker.js +1 -2
- package/dist/default-extensions/fsharp.js +1 -2
- package/dist/default-extensions/go.js +1 -2
- package/dist/default-extensions/groovy.js +1 -2
- package/dist/default-extensions/handlebars.js +1 -2
- package/dist/default-extensions/hlsl.js +1 -2
- package/dist/default-extensions/html.js +1 -2
- package/dist/default-extensions/ini.js +1 -2
- package/dist/default-extensions/java.js +1 -2
- package/dist/default-extensions/javascript.js +1 -2
- package/dist/default-extensions/json.js +1 -2
- package/dist/default-extensions/julia.js +1 -2
- package/dist/default-extensions/latex.js +1 -2
- package/dist/default-extensions/less.js +1 -2
- package/dist/default-extensions/log.js +1 -2
- package/dist/default-extensions/lua.js +1 -2
- package/dist/default-extensions/make.js +1 -2
- package/dist/default-extensions/markdown-basics.js +1 -2
- package/dist/default-extensions/objective-c.js +1 -2
- package/dist/default-extensions/perl.js +1 -2
- package/dist/default-extensions/php.js +1 -2
- package/dist/default-extensions/powershell.js +1 -2
- package/dist/default-extensions/pug.js +1 -2
- package/dist/default-extensions/python.js +1 -2
- package/dist/default-extensions/r.js +1 -2
- package/dist/default-extensions/razor.js +1 -2
- package/dist/default-extensions/references-view.js +1 -2
- package/dist/default-extensions/ruby.js +1 -2
- package/dist/default-extensions/rust.js +1 -2
- package/dist/default-extensions/scss.js +1 -2
- package/dist/default-extensions/search-result.js +1 -2
- package/dist/default-extensions/shaderlab.js +1 -2
- package/dist/default-extensions/shellscript.js +1 -2
- package/dist/default-extensions/sql.js +1 -2
- package/dist/default-extensions/swift.js +1 -2
- package/dist/default-extensions/theme-abyss.js +1 -2
- package/dist/default-extensions/theme-defaults.js +1 -2
- package/dist/default-extensions/theme-kimbie-dark.js +1 -2
- package/dist/default-extensions/theme-monokai-dimmed.js +1 -2
- package/dist/default-extensions/theme-monokai.js +1 -2
- package/dist/default-extensions/theme-quietlight.js +1 -2
- package/dist/default-extensions/theme-red.js +1 -2
- package/dist/default-extensions/theme-seti.js +1 -2
- package/dist/default-extensions/theme-solarized-dark.js +1 -2
- package/dist/default-extensions/theme-solarized-light.js +1 -2
- package/dist/default-extensions/theme-tomorrow-night-blue.js +1 -2
- package/dist/default-extensions/typescript-basics.js +1 -2
- package/dist/default-extensions/vb.js +1 -2
- package/dist/default-extensions/xml.js +1 -2
- package/dist/default-extensions/yaml.js +1 -2
- package/dist/extensions.d.ts +3 -19
- package/dist/extensions.d2.ts +1 -1
- package/dist/extensions.js +31 -116
- package/dist/extensionsRegistry.d.ts +1 -1
- package/dist/override/vs/workbench/api/common/extHost.api.impl.js +5 -0
- package/dist/rollup-extension-directory-plugin.d.ts +1 -2
- package/dist/rollup-extension-directory-plugin.js +2 -4
- package/dist/rollup-vsix-plugin.d.ts +1 -2
- package/dist/rollup-vsix-plugin.js +2 -4
- package/dist/service-override/configuration.d.ts +1 -1
- package/dist/service-override/editor.d.ts +2 -2
- package/dist/service-override/files.d.ts +3 -3
- package/dist/service-override/keybindings.js +4 -1
- package/dist/service-override/languages.d.ts +1 -1
- package/dist/service-override/terminal.d.ts +2 -2
- package/dist/service-override/views.d.ts +3 -3
- package/dist/services.d.ts +1 -1
- package/dist/views.d.ts +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadDecorations.js +100 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadExtensionService.js +73 -1
- package/dist/vscode/vs/workbench/api/common/extHostRequireInterceptor.js +248 -0
- package/dist/vscode/vs/workbench/api/worker/extHostExtensionService.js +114 -0
- package/dist/vscode/vs/workbench/services/commands/common/commandService.js +77 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extensions.js +14 -1
- package/dist/vscode-services/extHost.js +10 -16
- package/dist/vscode-services/missing-services.js +20 -1
- package/package.json +3 -2
- package/dist/extension-tools-05ce2858.js +0 -25937
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
2
|
+
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
2
3
|
import { getGalleryExtensionId, getExtensionId } from '../../../../platform/extensionManagement/common/extensionManagementUtil.js';
|
|
3
4
|
import { ExtensionIdentifier } from 'monaco-editor/esm/vs/platform/extensions/common/extensions.js';
|
|
4
5
|
import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
6
|
+
const nullExtensionDescription = ( Object.freeze({
|
|
7
|
+
identifier: ( new ExtensionIdentifier('nullExtensionDescription')),
|
|
8
|
+
name: 'Null Extension Description',
|
|
9
|
+
version: '0.0.0',
|
|
10
|
+
publisher: 'vscode',
|
|
11
|
+
engines: { vscode: '' },
|
|
12
|
+
extensionLocation: ( URI.parse('void:location')),
|
|
13
|
+
isBuiltin: false,
|
|
14
|
+
targetPlatform: "undefined" ,
|
|
15
|
+
isUserBuiltin: false,
|
|
16
|
+
isUnderDevelopment: false,
|
|
17
|
+
}));
|
|
5
18
|
const IExtensionService = ( createDecorator('extensionService'));
|
|
6
19
|
class MissingExtensionDependency {
|
|
7
20
|
constructor(dependency) {
|
|
@@ -66,4 +79,4 @@ class NullExtensionService {
|
|
|
66
79
|
canAddExtension() { return false; }
|
|
67
80
|
canRemoveExtension() { return false; }
|
|
68
81
|
}
|
|
69
|
-
export { IExtensionService, MissingExtensionDependency, NullExtensionService, checkProposedApiEnabled, isProposedApiEnabled, toExtension, toExtensionDescription };
|
|
82
|
+
export { IExtensionService, MissingExtensionDependency, NullExtensionService, checkProposedApiEnabled, isProposedApiEnabled, nullExtensionDescription, toExtension, toExtensionDescription };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { __decorate, __param } from '../node_modules/tslib/tslib.es6.js';
|
|
2
|
-
import './missing-services.js';
|
|
3
2
|
import { IExtHostCommands, ExtHostCommands } from '../vscode/vs/workbench/api/common/extHostCommands.js';
|
|
4
3
|
import { IExtHostRpcService, ExtHostRpcService } from '../vscode/vs/workbench/api/common/extHostRpcService.js';
|
|
5
4
|
import { LogLevel, ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
@@ -28,7 +27,7 @@ import { ExtHostLanguageFeatures } from '../vscode/vs/workbench/api/common/extHo
|
|
|
28
27
|
import { IExtHostConfiguration, ExtHostConfiguration } from '../vscode/vs/workbench/api/common/extHostConfiguration.js';
|
|
29
28
|
import { IExtHostDebugService, WorkerExtHostDebugService } from '../vscode/vs/workbench/api/common/extHostDebugService.js';
|
|
30
29
|
import { IExtHostVariableResolverProvider, ExtHostVariableResolverProviderService } from '../vscode/vs/workbench/api/common/extHostVariableResolverService.js';
|
|
31
|
-
import { IHostUtils, IExtHostExtensionService
|
|
30
|
+
import { IHostUtils, IExtHostExtensionService } from '../vscode/vs/workbench/api/common/extHostExtensionService.js';
|
|
32
31
|
import { IExtensionStoragePaths, ExtensionStoragePaths } from '../vscode/vs/workbench/api/common/extHostStoragePaths.js';
|
|
33
32
|
import { IExtHostTunnelService, ExtHostTunnelService } from '../vscode/vs/workbench/api/common/extHostTunnelService.js';
|
|
34
33
|
import { IExtHostLocalizationService, ExtHostLocalizationService } from '../vscode/vs/workbench/api/common/extHostLocalizationService.js';
|
|
@@ -41,7 +40,6 @@ import { IExtHostInitDataService } from '../vscode/vs/workbench/api/common/extHo
|
|
|
41
40
|
import { UIKind } from '../vscode/vs/workbench/services/extensions/common/extensionHostProtocol.js';
|
|
42
41
|
import { IExtHostTerminalService } from '../vscode/vs/workbench/api/common/extHostTerminalService.js';
|
|
43
42
|
import { IExtHostDecorations, ExtHostDecorations } from '../vscode/vs/workbench/api/common/extHostDecorations.js';
|
|
44
|
-
import { ExtensionRuntime } from '../vscode/vs/workbench/api/common/extHostTypes.js';
|
|
45
43
|
import { ExtHostFileSystem } from '../vscode/vs/workbench/api/common/extHostFileSystem.js';
|
|
46
44
|
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
47
45
|
import { ExtHostDocumentSaveParticipant } from '../vscode/vs/workbench/api/common/extHostDocumentSaveParticipant.js';
|
|
@@ -56,6 +54,7 @@ import { ExtHostStatusBar } from '../vscode/vs/workbench/api/common/extHostStatu
|
|
|
56
54
|
import { ExtHostTheming } from '../vscode/vs/workbench/api/common/extHostTheming.js';
|
|
57
55
|
import { ExtHostTerminalService } from '../vscode/vs/workbench/api/node/extHostTerminalService.js';
|
|
58
56
|
import { IExtHostSearch, ExtHostSearch } from '../vscode/vs/workbench/api/common/extHostSearch.js';
|
|
57
|
+
import { ExtHostExtensionService } from '../vscode/vs/workbench/api/worker/extHostExtensionService.js';
|
|
59
58
|
import '../vscode/vs/workbench/api/browser/mainThreadLocalization.js';
|
|
60
59
|
import '../vscode/vs/workbench/api/browser/mainThreadCommands.js';
|
|
61
60
|
import '../vscode/vs/workbench/api/browser/mainThreadWindow.js';
|
|
@@ -85,9 +84,11 @@ import '../vscode/vs/workbench/api/browser/mainThreadTheming.js';
|
|
|
85
84
|
import '../vscode/vs/workbench/api/browser/mainThreadTerminalService.js';
|
|
86
85
|
import '../vscode/vs/workbench/api/browser/mainThreadEditorTabs.js';
|
|
87
86
|
import '../vscode/vs/workbench/api/browser/mainThreadSearch.js';
|
|
87
|
+
import '../vscode/vs/workbench/api/browser/mainThreadDecorations.js';
|
|
88
88
|
import * as errors from 'monaco-editor/esm/vs/base/common/errors.js';
|
|
89
89
|
import { Barrier } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
90
90
|
import { IExtHostManagedSockets } from '../vscode/vs/workbench/api/common/extHostManagedSockets.js';
|
|
91
|
+
import { IExtensionService } from '../vscode/vs/workbench/services/extensions/common/extensions.js';
|
|
91
92
|
import { unsupported } from '../tools.js';
|
|
92
93
|
const original = MainThreadMessageService.prototype.$showMessage;
|
|
93
94
|
MainThreadMessageService.prototype.$showMessage = function (severity, message, options, commands) {
|
|
@@ -181,20 +182,12 @@ registerSingleton(IExtHostConsumerFileSystem, ExtHostConsumerFileSystem, 0 );
|
|
|
181
182
|
registerSingleton(IExtensionStoragePaths, ExtensionStoragePaths, 0 );
|
|
182
183
|
registerSingleton(IExtHostLocalizationService, ExtHostLocalizationService, 1 );
|
|
183
184
|
registerSingleton(IExtHostDocumentsAndEditors, ExtHostDocumentsAndEditors, 0 );
|
|
184
|
-
class
|
|
185
|
-
constructor() {
|
|
186
|
-
super(...arguments);
|
|
187
|
-
this.extensionRuntime = ExtensionRuntime.Webworker;
|
|
188
|
-
this._getEntryPoint = () => undefined;
|
|
189
|
-
this._loadCommonJSModule = unsupported;
|
|
190
|
-
this.$setRemoteEnvironment = unsupported;
|
|
191
|
-
}
|
|
192
|
-
async _beforeAlmostReadyToRunExtensions() { }
|
|
185
|
+
class _ExtHostExtensionService extends ExtHostExtensionService {
|
|
193
186
|
getExtensionRegistries() {
|
|
194
187
|
return { mine: this._myRegistry, all: this._globalRegistry };
|
|
195
188
|
}
|
|
196
189
|
}
|
|
197
|
-
registerSingleton(IExtHostExtensionService,
|
|
190
|
+
registerSingleton(IExtHostExtensionService, _ExtHostExtensionService, 0 );
|
|
198
191
|
registerSingleton(IExtHostConfiguration, ExtHostConfiguration, 0 );
|
|
199
192
|
registerSingleton(IExtHostTunnelService, ExtHostTunnelService, 0 );
|
|
200
193
|
registerSingleton(IExtHostFileSystemInfo, ExtHostFileSystemInfo, 0 );
|
|
@@ -253,7 +246,9 @@ const mainContext = {
|
|
|
253
246
|
dispose() {
|
|
254
247
|
rpcProtocol.dispose();
|
|
255
248
|
},
|
|
256
|
-
_setExtensionHostProxy() {
|
|
249
|
+
_setExtensionHostProxy(proxy) {
|
|
250
|
+
StandaloneServices.get(IExtensionService).setExtensionHostProxy(proxy);
|
|
251
|
+
},
|
|
257
252
|
_setAllMainProxyIdentifiers() { }
|
|
258
253
|
};
|
|
259
254
|
async function createExtHostServices() {
|
|
@@ -304,8 +299,7 @@ async function createExtHostServices() {
|
|
|
304
299
|
const extHostMessageService = new ExtHostMessageService(rpcProtocol, logService);
|
|
305
300
|
ExtHostApiCommands.register(extHostCommands);
|
|
306
301
|
const namedCustomers = ExtHostCustomersRegistry.getNamedCustomers();
|
|
307
|
-
for (
|
|
308
|
-
const [id, ctor] = namedCustomers[i];
|
|
302
|
+
for (const [id, ctor] of namedCustomers) {
|
|
309
303
|
try {
|
|
310
304
|
const instance = instantiationService.createInstance(ctor, mainContext);
|
|
311
305
|
rpcProtocol.set(id, instance);
|
|
@@ -125,6 +125,7 @@ import { ICanonicalUriService } from '../vscode/vs/platform/workspace/common/can
|
|
|
125
125
|
import { IExtensionStatusBarItemService, ExtensionStatusBarItemService } from '../vscode/vs/workbench/api/browser/statusBarExtensionPoint.js';
|
|
126
126
|
import { IWorkbenchAssignmentService } from '../vscode/vs/workbench/services/assignment/common/assignmentService.js';
|
|
127
127
|
import { IChatService } from '../vscode/vs/workbench/contrib/chat/common/chatService.js';
|
|
128
|
+
import { IEmbedderTerminalService } from '../vscode/vs/workbench/services/terminal/common/embedderTerminalService.js';
|
|
128
129
|
import { unsupported } from '../tools.js';
|
|
129
130
|
class NullLoggerService extends AbstractLoggerService {
|
|
130
131
|
constructor() {
|
|
@@ -445,7 +446,18 @@ registerSingleton(ILanguageDetectionService, class LanguageDetectionService {
|
|
|
445
446
|
return undefined;
|
|
446
447
|
}
|
|
447
448
|
}, 0 );
|
|
448
|
-
|
|
449
|
+
class SimpleExtensionService extends NullExtensionService {
|
|
450
|
+
async activateByEvent(activationEvent, activationKind = 0 ) {
|
|
451
|
+
await this.extensionHostProxy.activateByEvent(activationEvent, activationKind);
|
|
452
|
+
}
|
|
453
|
+
setExtensionHostProxy(_extensionHostProxy) {
|
|
454
|
+
this.extensionHostProxy = _extensionHostProxy;
|
|
455
|
+
}
|
|
456
|
+
async deltaExtensions(extensionsDelta) {
|
|
457
|
+
await this.extensionHostProxy.deltaExtensions(extensionsDelta);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
registerSingleton(IExtensionService, SimpleExtensionService, 0 );
|
|
449
461
|
registerSingleton(IKeyboardLayoutService, class KeyboardLayoutService {
|
|
450
462
|
constructor() {
|
|
451
463
|
this.onDidChangeKeyboardLayout = Event.None;
|
|
@@ -1502,3 +1514,10 @@ registerSingleton(IChatService, class ChatService {
|
|
|
1502
1514
|
this.notifyUserAction = unsupported;
|
|
1503
1515
|
}
|
|
1504
1516
|
}, 1 );
|
|
1517
|
+
registerSingleton(IEmbedderTerminalService, class EmbedderTerminalService {
|
|
1518
|
+
constructor() {
|
|
1519
|
+
this.onDidCreateTerminal = Event.None;
|
|
1520
|
+
this.createTerminal = unsupported;
|
|
1521
|
+
}
|
|
1522
|
+
}, 1 );
|
|
1523
|
+
export { SimpleExtensionService };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "1.79.3-next.
|
|
3
|
+
"version": "1.79.3-next.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor",
|
|
6
6
|
"keywords": [],
|
|
@@ -258,6 +258,7 @@
|
|
|
258
258
|
"@octokit/rest": "^19.0.11",
|
|
259
259
|
"@rollup/plugin-commonjs": "^25.0.1",
|
|
260
260
|
"@rollup/plugin-dynamic-import-vars": "^2.0.3",
|
|
261
|
+
"@rollup/plugin-inject": "^5.0.3",
|
|
261
262
|
"@rollup/plugin-json": "^6.0.0",
|
|
262
263
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
263
264
|
"@rollup/plugin-replace": "^5.0.2",
|
|
@@ -301,11 +302,11 @@
|
|
|
301
302
|
"vscode-textmate": "^9.0.0",
|
|
302
303
|
"xterm": "5.2.1",
|
|
303
304
|
"xterm-addon-canvas": "0.4.0",
|
|
305
|
+
"xterm-addon-image": "0.4.1",
|
|
304
306
|
"xterm-addon-search": "0.12.0",
|
|
305
307
|
"xterm-addon-serialize": "0.10.0",
|
|
306
308
|
"xterm-addon-unicode11": "0.5.0",
|
|
307
309
|
"xterm-addon-webgl": "0.15.0",
|
|
308
|
-
"xterm-addon-image": "0.4.1",
|
|
309
310
|
"yauzl": "^2.10.0"
|
|
310
311
|
},
|
|
311
312
|
"overrides": {
|