@codingame/monaco-vscode-api 3.1.1 → 3.2.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/README.md +1 -1
- package/_virtual/semver.js +2 -0
- package/api.js +1 -1
- package/external/vscode-marked/lib/marked.esm.js +2199 -0
- package/external/vscode-semver/semver.js +983 -0
- package/missing-services.js +34 -7
- package/package.json +8 -10
- package/services.d.ts +4 -3
- package/services.js +5 -6
- package/vscode/src/vs/base/browser/markdownRenderer.js +11 -11
- package/vscode/src/vs/editor/editor.api.d.ts +9072 -8018
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +3 -3
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +2 -2
- package/vscode/src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +7 -7
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +1 -1
- package/workbench.d.ts +8 -0
- package/workbench.js +7 -2
- package/workers/editor.worker.js +1 -1
- package/external/@xterm/addon-canvas/typings/addon-canvas.d.ts +0 -38
- package/external/@xterm/addon-image/typings/addon-image.d.ts +0 -115
- package/external/@xterm/addon-search/typings/addon-search.d.ts +0 -141
- package/external/@xterm/addon-serialize/typings/addon-serialize.d.ts +0 -100
- package/external/@xterm/addon-unicode11/typings/addon-unicode11.d.ts +0 -9
- package/external/@xterm/addon-webgl/typings/addon-webgl.d.ts +0 -43
- package/external/@xterm/xterm/typings/xterm.d.ts +0 -1825
- package/vscode/src/vs/workbench/services/path/browser/pathService.js +0 -34
package/missing-services.js
CHANGED
|
@@ -7,7 +7,7 @@ import { IUriIdentityService } from './vscode/src/vs/platform/uriIdentity/common
|
|
|
7
7
|
import { ITextFileService } from './vscode/src/vs/workbench/services/textfile/common/textfiles.js';
|
|
8
8
|
import { IFileService } from './vscode/src/vs/platform/files/common/files.js';
|
|
9
9
|
import { IEditorGroupsService } from './vscode/src/vs/workbench/services/editor/common/editorGroupsService.js';
|
|
10
|
-
import {
|
|
10
|
+
import { IWorkingCopyFileService } from './vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.js';
|
|
11
11
|
import { IPathService } from './vscode/src/vs/workbench/services/path/common/pathService.js';
|
|
12
12
|
import { registerSingleton } from './vscode/src/vs/platform/instantiation/common/extensions.js';
|
|
13
13
|
import { IProductService } from './vscode/src/vs/platform/product/common/productService.js';
|
|
@@ -42,7 +42,6 @@ import { IViewDescriptorService } from './vscode/src/vs/workbench/common/views.j
|
|
|
42
42
|
import { IHistoryService } from './vscode/src/vs/workbench/services/history/common/history.js';
|
|
43
43
|
import { ITaskService } from './vscode/src/vs/workbench/contrib/tasks/common/taskService.js';
|
|
44
44
|
import { IConfigurationResolverService } from './vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js';
|
|
45
|
-
import { BrowserPathService } from './vscode/src/vs/workbench/services/path/browser/pathService.js';
|
|
46
45
|
import { IRemoteAgentService } from './vscode/src/vs/workbench/services/remote/common/remoteAgentService.js';
|
|
47
46
|
import { ICustomEndpointTelemetryService } from './vscode/src/vs/platform/telemetry/common/telemetry.js';
|
|
48
47
|
import { NullEndpointTelemetryService } from './vscode/src/vs/platform/telemetry/common/telemetryUtils.js';
|
|
@@ -194,8 +193,8 @@ import { IExtensionFeaturesManagementService } from './vscode/src/vs/workbench/s
|
|
|
194
193
|
import { IEditorPaneService } from './vscode/src/vs/workbench/services/editor/common/editorPaneService.js';
|
|
195
194
|
import { IWorkspaceIdentityService } from './vscode/src/vs/workbench/services/workspaces/common/workspaceIdentityService.js';
|
|
196
195
|
import { IDefaultLogLevelsService } from './vscode/src/vs/workbench/contrib/logs/common/defaultLogLevels.js';
|
|
197
|
-
import { getBuiltInExtensionTranslationsUris } from './l10n.js';
|
|
198
196
|
import { unsupported } from './tools.js';
|
|
197
|
+
import { getBuiltInExtensionTranslationsUris } from './l10n.js';
|
|
199
198
|
import { IFileDialogService } from './vscode/src/vs/platform/dialogs/common/dialogs.js';
|
|
200
199
|
var _a;
|
|
201
200
|
registerSingleton(ILoggerService, class NullLoggerService extends AbstractLoggerService {
|
|
@@ -525,13 +524,41 @@ registerSingleton(ITitleService, class TitleService {
|
|
|
525
524
|
}
|
|
526
525
|
updateProperties() { }
|
|
527
526
|
}, 0 );
|
|
528
|
-
registerSingleton(IWorkingCopyFileService, WorkingCopyFileService
|
|
529
|
-
|
|
527
|
+
registerSingleton(IWorkingCopyFileService, class WorkingCopyFileService {
|
|
528
|
+
constructor() {
|
|
529
|
+
this.onWillRunWorkingCopyFileOperation = Event.None;
|
|
530
|
+
this.onDidFailWorkingCopyFileOperation = Event.None;
|
|
531
|
+
this.onDidRunWorkingCopyFileOperation = Event.None;
|
|
532
|
+
this.addFileOperationParticipant = unsupported;
|
|
533
|
+
this.hasSaveParticipants = false;
|
|
534
|
+
this.addSaveParticipant = unsupported;
|
|
535
|
+
this.runSaveParticipants = unsupported;
|
|
536
|
+
this.create = unsupported;
|
|
537
|
+
this.createFolder = unsupported;
|
|
538
|
+
this.move = unsupported;
|
|
539
|
+
this.copy = unsupported;
|
|
540
|
+
this.delete = unsupported;
|
|
541
|
+
this.registerWorkingCopyProvider = unsupported;
|
|
542
|
+
this.getDirty = () => [];
|
|
543
|
+
}
|
|
544
|
+
}, 0 );
|
|
545
|
+
registerSingleton(IPathService, class PathService {
|
|
546
|
+
constructor() {
|
|
547
|
+
this.defaultUriScheme = 'file';
|
|
548
|
+
this.fileURI = unsupported;
|
|
549
|
+
this.userHome = unsupported;
|
|
550
|
+
this.hasValidBasename = unsupported;
|
|
551
|
+
this.resolvedUserHome = undefined;
|
|
552
|
+
}
|
|
553
|
+
get path() {
|
|
554
|
+
return unsupported();
|
|
555
|
+
}
|
|
556
|
+
}, 1 );
|
|
530
557
|
registerSingleton(IProductService, class ProductService {
|
|
531
558
|
constructor() {
|
|
532
559
|
this._serviceBrand = undefined;
|
|
533
|
-
this.version = "1.87.
|
|
534
|
-
this.commit = "1.87.
|
|
560
|
+
this.version = "1.87.2";
|
|
561
|
+
this.commit = "1.87.2";
|
|
535
562
|
this.quality = 'oss';
|
|
536
563
|
this.nameShort = 'Code - OSS Dev';
|
|
537
564
|
this.nameLong = 'Code - OSS Dev';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "VSCode public API plugged on the monaco editor",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": {
|
|
@@ -94,14 +94,12 @@
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
"dependencies": {
|
|
97
|
-
"vscode-
|
|
98
|
-
"vscode-
|
|
99
|
-
"@codingame/monaco-vscode-
|
|
100
|
-
"@codingame/monaco-vscode-
|
|
101
|
-
"@codingame/monaco-vscode-
|
|
102
|
-
"@codingame/monaco-vscode-
|
|
103
|
-
"@codingame/monaco-vscode-
|
|
104
|
-
"@codingame/monaco-vscode-host-service-override": "3.1.1",
|
|
105
|
-
"@codingame/monaco-vscode-base-service-override": "3.1.1"
|
|
97
|
+
"@codingame/monaco-vscode-files-service-override": "3.2.0",
|
|
98
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "3.2.0",
|
|
99
|
+
"@codingame/monaco-vscode-extensions-service-override": "3.2.0",
|
|
100
|
+
"@codingame/monaco-vscode-environment-service-override": "3.2.0",
|
|
101
|
+
"@codingame/monaco-vscode-layout-service-override": "3.2.0",
|
|
102
|
+
"@codingame/monaco-vscode-host-service-override": "3.2.0",
|
|
103
|
+
"@codingame/monaco-vscode-base-service-override": "3.2.0"
|
|
106
104
|
}
|
|
107
105
|
}
|
package/services.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export { IColorTheme, IThemeService } from './vscode/src/vs/platform/theme/commo
|
|
|
14
14
|
export { ICodeEditorService } from './vscode/src/vs/editor/browser/services/codeEditorService.js';
|
|
15
15
|
export { IConfigurationChangeEvent, IConfigurationService } from './vscode/src/vs/platform/configuration/common/configuration.js';
|
|
16
16
|
export { INeverShowAgainOptions, INotification, INotificationActions, INotificationHandle, INotificationProgress, INotificationProgressProperties, INotificationProperties, INotificationService, IPromptChoice, IPromptChoiceWithMenu, IPromptOptions, IStatusMessageOptions, NeverShowAgainScope, NoOpNotification, NoOpProgress, NotificationMessage, NotificationPriority, NotificationsFilter } from './vscode/src/vs/platform/notification/common/notification.js';
|
|
17
|
-
export { IStorageService
|
|
17
|
+
export { IStorageService } from './vscode/src/vs/platform/storage/common/storage.js';
|
|
18
18
|
export { ITextModelContentProvider, ITextModelService } from './vscode/src/vs/editor/common/services/resolverService.js';
|
|
19
19
|
import { WorkbenchContributionInstantiation } from './vscode/src/vs/workbench/common/contributions.js';
|
|
20
20
|
export { ILazyWorkbenchContributionInstantiation, IOnEditorWorkbenchContributionInstantiation, WorkbenchPhase } from './vscode/src/vs/workbench/common/contributions.js';
|
|
@@ -33,11 +33,12 @@ export { IModelService } from './vscode/src/vs/editor/common/services/model.js';
|
|
|
33
33
|
export { ITelemetryService } from './vscode/src/vs/platform/telemetry/common/telemetry.js';
|
|
34
34
|
export { IWorkspaceTrustEnablementService, IWorkspaceTrustManagementService, IWorkspaceTrustRequestService, IWorkspaceTrustUriInfo } from './vscode/src/vs/platform/workspace/common/workspaceTrust.js';
|
|
35
35
|
export { DialogType, IBaseDialogOptions, ICheckbox, ICheckboxResult, IConfirmDialogArgs, IConfirmation, IConfirmationResult, ICustomDialogMarkdown, ICustomDialogOptions, IDialogArgs, IDialogHandler, IDialogResult, IDialogService, IFileDialogService, IInput, IInputDialogArgs, IInputElement, IInputResult, IPrompt, IPromptBaseButton, IPromptButton, IPromptCancelButton, IPromptDialogArgs, IPromptResult, IPromptResultWithCancel, IPromptWithCustomCancel, IPromptWithDefaultCancel } from './vscode/src/vs/platform/dialogs/common/dialogs.js';
|
|
36
|
+
export { StorageScope, StorageTarget } from 'vscode/src/vs/platform/storage/common/storage';
|
|
36
37
|
import { IEditorOverrideServices } from './vscode/src/vs/editor/standalone/browser/standaloneServices.js';
|
|
37
38
|
export { StandaloneServices } from './vscode/src/vs/editor/standalone/browser/standaloneServices.js';
|
|
38
39
|
export { IProductService } from './vscode/src/vs/platform/product/common/productService.js';
|
|
39
40
|
import { IWorkbenchConstructionOptions } from './vscode/src/vs/workbench/browser/web.api.js';
|
|
40
|
-
import {
|
|
41
|
+
import { EnvironmentOverride } from './workbench.js';
|
|
41
42
|
export { SyncDescriptor } from './vscode/src/vs/platform/instantiation/common/descriptors.js';
|
|
42
43
|
export { IBulkEditService } from './vscode/src/vs/editor/browser/services/bulkEditService.js';
|
|
43
44
|
export { IFileService } from './vscode/src/vs/platform/files/common/files.js';
|
|
@@ -81,7 +82,7 @@ export { IStatusbarService } from './vscode/src/vs/workbench/services/statusbar/
|
|
|
81
82
|
export { ITitleService } from './vscode/src/vs/workbench/services/title/browser/titleService.js';
|
|
82
83
|
export { IBannerService } from './vscode/src/vs/workbench/services/banner/browser/bannerService.js';
|
|
83
84
|
|
|
84
|
-
declare function initialize(overrides: IEditorOverrideServices, container?: HTMLElement, configuration?: IWorkbenchConstructionOptions,
|
|
85
|
+
declare function initialize(overrides: IEditorOverrideServices, container?: HTMLElement, configuration?: IWorkbenchConstructionOptions, env?: EnvironmentOverride): Promise<void>;
|
|
85
86
|
declare function getService<T>(identifier: ServiceIdentifier<T>): Promise<T>;
|
|
86
87
|
declare function createInstance<Ctor extends new (...args: any[]) => any, R extends InstanceType<Ctor>>(ctor: Ctor, ...args: GetLeadingNonServiceArgs<ConstructorParameters<Ctor>>): Promise<R>;
|
|
87
88
|
declare function createInstanceSync<Ctor extends new (...args: any[]) => any, R extends InstanceType<Ctor>>(ctor: Ctor, ...args: GetLeadingNonServiceArgs<ConstructorParameters<Ctor>>): R;
|
package/services.js
CHANGED
|
@@ -145,14 +145,14 @@ export { IBannerService } from './vscode/src/vs/workbench/services/banner/browse
|
|
|
145
145
|
export { IWorkspaceTrustEnablementService, IWorkspaceTrustManagementService, IWorkspaceTrustRequestService } from './vscode/src/vs/platform/workspace/common/workspaceTrust.js';
|
|
146
146
|
export { IKeybindingService } from './vscode/src/vs/platform/keybinding/common/keybinding.js';
|
|
147
147
|
export { IDialogService, IFileDialogService } from './vscode/src/vs/platform/dialogs/common/dialogs.js';
|
|
148
|
-
async function initialize(overrides, container = document.body, configuration = {},
|
|
148
|
+
async function initialize(overrides, container = document.body, configuration = {}, env) {
|
|
149
149
|
checkServicesNotInitialized();
|
|
150
|
-
initialize$1(container, configuration);
|
|
150
|
+
initialize$1(container, configuration, env);
|
|
151
151
|
const instantiationService = StandaloneServices.initialize({
|
|
152
152
|
[( IProductService.toString())]: mixin({
|
|
153
|
-
version: "1.87.
|
|
153
|
+
version: "1.87.2",
|
|
154
154
|
quality: 'oss',
|
|
155
|
-
commit: "1.87.
|
|
155
|
+
commit: "1.87.2",
|
|
156
156
|
nameShort: 'Code - OSS Dev',
|
|
157
157
|
nameLong: 'Code - OSS Dev',
|
|
158
158
|
applicationName: 'code-oss',
|
|
@@ -161,8 +161,7 @@ async function initialize(overrides, container = document.body, configuration =
|
|
|
161
161
|
reportIssueUrl: 'https://github.com/microsoft/vscode/issues/new',
|
|
162
162
|
licenseName: 'MIT',
|
|
163
163
|
licenseUrl: 'https://github.com/microsoft/vscode/blob/main/LICENSE.txt',
|
|
164
|
-
serverApplicationName: 'code-server-oss'
|
|
165
|
-
...productConfiguration
|
|
164
|
+
serverApplicationName: 'code-server-oss'
|
|
166
165
|
}, configuration.productConfiguration ?? {}),
|
|
167
166
|
...getServiceOverride(),
|
|
168
167
|
...getServiceOverride$1(),
|
|
@@ -12,7 +12,7 @@ import { markdownEscapeEscapedIcons } from '../common/iconLabels.js';
|
|
|
12
12
|
import { defaultGenerator } from '../common/idGenerator.js';
|
|
13
13
|
import { Lazy } from '../common/lazy.js';
|
|
14
14
|
import { DisposableStore } from '../common/lifecycle.js';
|
|
15
|
-
import
|
|
15
|
+
import marked_1 from '../../../../../external/vscode-marked/lib/marked.esm.js';
|
|
16
16
|
import { parse } from '../common/marshalling.js';
|
|
17
17
|
import { Schemas, FileAccess } from '../common/network.js';
|
|
18
18
|
import { cloneAndChange } from '../common/objects.js';
|
|
@@ -105,7 +105,7 @@ function renderMarkdown(markdown, options = {}, markedOptions = {}) {
|
|
|
105
105
|
}
|
|
106
106
|
return ( uri.toString());
|
|
107
107
|
};
|
|
108
|
-
const renderer = new
|
|
108
|
+
const renderer = new marked_1.Renderer();
|
|
109
109
|
renderer.image = defaultMarkedRenderers.image;
|
|
110
110
|
renderer.link = defaultMarkedRenderers.link;
|
|
111
111
|
renderer.paragraph = defaultMarkedRenderers.paragraph;
|
|
@@ -188,15 +188,15 @@ function renderMarkdown(markdown, options = {}, markedOptions = {}) {
|
|
|
188
188
|
let renderedMarkdown;
|
|
189
189
|
if (options.fillInIncompleteTokens) {
|
|
190
190
|
const opts = {
|
|
191
|
-
...
|
|
191
|
+
...marked_1.defaults,
|
|
192
192
|
...markedOptions
|
|
193
193
|
};
|
|
194
|
-
const tokens =
|
|
194
|
+
const tokens = marked_1.lexer(value, opts);
|
|
195
195
|
const newTokens = fillInIncompleteTokens(tokens);
|
|
196
|
-
renderedMarkdown =
|
|
196
|
+
renderedMarkdown = marked_1.parser(newTokens, opts);
|
|
197
197
|
}
|
|
198
198
|
else {
|
|
199
|
-
renderedMarkdown =
|
|
199
|
+
renderedMarkdown = marked_1.parse(value, markedOptions);
|
|
200
200
|
}
|
|
201
201
|
if (markdown.supportThemeIcons) {
|
|
202
202
|
const elements = renderLabelWithIcons(renderedMarkdown);
|
|
@@ -401,7 +401,7 @@ function renderMarkdownAsPlaintext(markdown) {
|
|
|
401
401
|
if (value.length > 100000) {
|
|
402
402
|
value = `${value.substr(0, 100000)}…`;
|
|
403
403
|
}
|
|
404
|
-
const html =
|
|
404
|
+
const html = marked_1.parse(value, { renderer: plainTextRenderer.value }).replace(/&(#\d+|[a-zA-Z]+);/g, m => unescapeInfo.get(m) ?? m);
|
|
405
405
|
return ( sanitizeRenderedMarkdown({ isTrusted: false }, html).toString());
|
|
406
406
|
}
|
|
407
407
|
const unescapeInfo = ( new Map([
|
|
@@ -413,7 +413,7 @@ const unescapeInfo = ( new Map([
|
|
|
413
413
|
['>', '>'],
|
|
414
414
|
]));
|
|
415
415
|
const plainTextRenderer = ( new Lazy(() => {
|
|
416
|
-
const renderer = new
|
|
416
|
+
const renderer = new marked_1.Renderer();
|
|
417
417
|
renderer.code = (code) => {
|
|
418
418
|
return code;
|
|
419
419
|
};
|
|
@@ -556,7 +556,7 @@ function fillInIncompleteTokens(tokens) {
|
|
|
556
556
|
}
|
|
557
557
|
function completeCodeBlock(tokens, leader) {
|
|
558
558
|
const mergedRawText = mergeRawTokenText(tokens);
|
|
559
|
-
return
|
|
559
|
+
return marked_1.lexer(mergedRawText + `\n${leader}`);
|
|
560
560
|
}
|
|
561
561
|
function completeCodespan(token) {
|
|
562
562
|
return completeWithString(token, '`');
|
|
@@ -584,7 +584,7 @@ function completeDoubleUnderscore(tokens) {
|
|
|
584
584
|
}
|
|
585
585
|
function completeWithString(tokens, closingString) {
|
|
586
586
|
const mergedRawText = mergeRawTokenText(Array.isArray(tokens) ? tokens : [tokens]);
|
|
587
|
-
return
|
|
587
|
+
return marked_1.lexer(mergedRawText + closingString)[0];
|
|
588
588
|
}
|
|
589
589
|
function completeTable(tokens) {
|
|
590
590
|
const mergedRawText = mergeRawTokenText(tokens);
|
|
@@ -615,7 +615,7 @@ function completeTable(tokens) {
|
|
|
615
615
|
const prefixText = hasSeparatorRow ? lines.slice(0, -1).join('\n') : mergedRawText;
|
|
616
616
|
const line1EndsInPipe = !!prefixText.match(/\|\s*$/);
|
|
617
617
|
const newRawText = prefixText + (line1EndsInPipe ? '' : '|') + `\n|${' --- |'.repeat(numCols)}`;
|
|
618
|
-
return
|
|
618
|
+
return marked_1.lexer(newRawText);
|
|
619
619
|
}
|
|
620
620
|
return undefined;
|
|
621
621
|
}
|