@codingame/monaco-vscode-api 1.76.5 → 1.76.7
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/audioCue.js +28 -2
- package/dist/configuration2.js +1 -1
- package/dist/debug.js +1 -1
- package/dist/files.js +1 -1
- package/dist/missing-services.js +1 -1
- package/dist/monaco.js +1 -1
- package/dist/polyfill.js +128 -44
- package/dist/snippetsService.js +1 -1
- package/dist/textFileEditorModel.js +1 -1
- package/dist/textmate.js +11 -7
- package/package.json +2 -1
- package/dist/assets/break-6b46c048.mp3 +0 -0
- package/dist/assets/diffLineDeleted-26945eb8.mp3 +0 -0
- package/dist/assets/diffLineInserted-8f202889.mp3 +0 -0
- package/dist/assets/diffLineModified-fb126694.mp3 +0 -0
- package/dist/assets/error-b93c2a76.mp3 +0 -0
- package/dist/assets/foldedAreas-a6b54171.mp3 +0 -0
- package/dist/assets/quickFixes-dc7d1e73.mp3 +0 -0
- package/dist/assets/taskCompleted-f0dd8e18.mp3 +0 -0
- package/dist/assets/taskFailed-5494702a.mp3 +0 -0
- package/dist/assets/terminalBell-ff9df1e1.mp3 +0 -0
- package/dist/assets/warning-2687e2e7.mp3 +0 -0
- /package/dist/assets/{break-6b46c048-6b46c048.mp3 → break.mp3} +0 -0
- /package/dist/assets/{diffLineDeleted-26945eb8-26945eb8.mp3 → diffLineDeleted.mp3} +0 -0
- /package/dist/assets/{diffLineInserted-8f202889-8f202889.mp3 → diffLineInserted.mp3} +0 -0
- /package/dist/assets/{diffLineModified-fb126694-fb126694.mp3 → diffLineModified.mp3} +0 -0
- /package/dist/assets/{error-b93c2a76-b93c2a76.mp3 → error.mp3} +0 -0
- /package/dist/assets/{foldedAreas-a6b54171-a6b54171.mp3 → foldedAreas.mp3} +0 -0
- /package/dist/assets/{quickFixes-dc7d1e73-dc7d1e73.mp3 → quickFixes.mp3} +0 -0
- /package/dist/assets/{taskCompleted-f0dd8e18-f0dd8e18.mp3 → taskCompleted.mp3} +0 -0
- /package/dist/assets/{taskFailed-5494702a-5494702a.mp3 → taskFailed.mp3} +0 -0
- /package/dist/assets/{terminalBell-ff9df1e1-ff9df1e1.mp3 → terminalBell.mp3} +0 -0
- /package/dist/assets/{warning-2687e2e7-2687e2e7.mp3 → warning.mp3} +0 -0
package/dist/audioCue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as onServicesInitialized } from './polyfill.js';
|
|
1
|
+
import { o as onServicesInitialized, x as registerAssets } from './polyfill.js';
|
|
2
2
|
import { bS as IPreferencesService } from './missing-services.js';
|
|
3
3
|
import { _ as __decorate, a as __param, I as IEditorService, u as IDebugService } from './services2.js';
|
|
4
4
|
import { Disposable, DisposableStore, toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
@@ -11,6 +11,17 @@ import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configurati
|
|
|
11
11
|
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
12
12
|
import { FoldingController } from 'monaco-editor/esm/vs/editor/contrib/folding/browser/folding.js';
|
|
13
13
|
import { GhostTextController } from 'monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostTextController.js';
|
|
14
|
+
import break_mp3 from "./assets/break.mp3";
|
|
15
|
+
import diffLineDeleted_mp3 from "./assets/diffLineDeleted.mp3";
|
|
16
|
+
import diffLineInserted_mp3 from "./assets/diffLineInserted.mp3";
|
|
17
|
+
import diffLineModified_mp3 from "./assets/diffLineModified.mp3";
|
|
18
|
+
import error_mp3 from "./assets/error.mp3";
|
|
19
|
+
import foldedAreas_mp3 from "./assets/foldedAreas.mp3";
|
|
20
|
+
import quickFixes_mp3 from "./assets/quickFixes.mp3";
|
|
21
|
+
import taskCompleted_mp3 from "./assets/taskCompleted.mp3";
|
|
22
|
+
import taskFailed_mp3 from "./assets/taskFailed.mp3";
|
|
23
|
+
import terminalBell_mp3 from "./assets/terminalBell.mp3";
|
|
24
|
+
import warning_mp3 from "./assets/warning.mp3";
|
|
14
25
|
import { registerAction2, Action2 } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
|
|
15
26
|
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
16
27
|
import { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
|
|
@@ -516,7 +527,7 @@ let AudioCueService = class AudioCueService extends Disposable {
|
|
|
516
527
|
return;
|
|
517
528
|
}
|
|
518
529
|
this.playingSounds.add(sound);
|
|
519
|
-
const url = ( (FileAccess.asBrowserUri(`vs/platform/audioCues/browser/media/${sound.fileName}`).toString(true)));
|
|
530
|
+
const url = ( (( (FileAccess.asBrowserUri(`vs/platform/audioCues/browser/media/${sound.fileName}`))).toString(true)));
|
|
520
531
|
try {
|
|
521
532
|
await playAudio(url, this.getVolumeInPercent() / 100);
|
|
522
533
|
}
|
|
@@ -944,6 +955,20 @@ AudioCueLineDebuggerContribution = ( (__decorate([
|
|
|
944
955
|
( (__param(0, IDebugService))),
|
|
945
956
|
( (__param(1, IAudioCueService)))
|
|
946
957
|
], AudioCueLineDebuggerContribution)));
|
|
958
|
+
var audioAssets = Object.freeze({
|
|
959
|
+
__proto__: null,
|
|
960
|
+
vs_platform_audioCues_browser_media_break_mp3: break_mp3,
|
|
961
|
+
vs_platform_audioCues_browser_media_diffLineDeleted_mp3: diffLineDeleted_mp3,
|
|
962
|
+
vs_platform_audioCues_browser_media_diffLineInserted_mp3: diffLineInserted_mp3,
|
|
963
|
+
vs_platform_audioCues_browser_media_diffLineModified_mp3: diffLineModified_mp3,
|
|
964
|
+
vs_platform_audioCues_browser_media_error_mp3: error_mp3,
|
|
965
|
+
vs_platform_audioCues_browser_media_foldedAreas_mp3: foldedAreas_mp3,
|
|
966
|
+
vs_platform_audioCues_browser_media_quickFixes_mp3: quickFixes_mp3,
|
|
967
|
+
vs_platform_audioCues_browser_media_taskCompleted_mp3: taskCompleted_mp3,
|
|
968
|
+
vs_platform_audioCues_browser_media_taskFailed_mp3: taskFailed_mp3,
|
|
969
|
+
vs_platform_audioCues_browser_media_terminalBell_mp3: terminalBell_mp3,
|
|
970
|
+
vs_platform_audioCues_browser_media_warning_mp3: warning_mp3
|
|
971
|
+
});
|
|
947
972
|
class ShowAudioCueHelp extends Action2 {
|
|
948
973
|
constructor() {
|
|
949
974
|
super({
|
|
@@ -1134,6 +1159,7 @@ const audioCueFeatureBase = {
|
|
|
1134
1159
|
}
|
|
1135
1160
|
});
|
|
1136
1161
|
registerAction2(ShowAudioCueHelp);
|
|
1162
|
+
registerAssets(audioAssets);
|
|
1137
1163
|
function initialize(instantiationService) {
|
|
1138
1164
|
setTimeout(() => {
|
|
1139
1165
|
instantiationService.createInstance(AudioCueLineFeatureContribution);
|
package/dist/configuration2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Y as parseTree, Z as findNodeAtLocation, _ as createScanner } from './polyfill.js';
|
|
2
2
|
function format(documentText, range, options) {
|
|
3
3
|
let initialIndentLevel;
|
|
4
4
|
let formatText;
|
package/dist/debug.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n, R as Range,
|
|
1
|
+
import { n, R as Range, V as disposeIfDisposable, P as Position, o as onServicesInitialized, w as withUndefinedAsNull, p as parse, W as visit, f as flatten, X as decodeBase64, e as encodeBase64 } from './polyfill.js';
|
|
2
2
|
import { c7 as IViewsService, bp as IExtensionService, c8 as ViewContainerLocationToString, c9 as defaultViewIcon, ca as NumberBadge, cb as IConfigurationResolverService, cc as AbstractEditorInput, bO as isEditorInput, cd as EditorResourceAccessor, bL as ILifecycleService, ce as IViewDescriptorService, cf as IHistoryService, bS as IPreferencesService, cg as ICustomEndpointTelemetryService, ch as ITaskService, ci as IExtensionHostDebugService, cj as IActivityService, br as IWorkspaceTrustRequestService, c as cleanRemoteAuthority, ck as Extensions$3, cl as SideBySideEditor, cm as ITunnelService } from './missing-services.js';
|
|
3
3
|
import { _ as __decorate, a4 as BREAKPOINTS_VIEW_ID, a5 as CONTEXT_DEBUGGERS_AVAILABLE, u as IDebugService, a6 as CONTEXT_BREAKPOINT_ITEM_TYPE, a7 as CONTEXT_BREAKPOINTS_EXIST, a8 as CONTEXT_IN_DEBUG_MODE, a9 as CONTEXT_BREAKPOINT_SUPPORTS_CONDITION, I as IEditorService, aa as BREAKPOINT_EDITOR_CONTRIBUTION_ID, ab as CONTEXT_DISASSEMBLY_VIEW_FOCUS, ac as CONTEXT_JUMP_TO_CURSOR_SUPPORTED, ad as CONTEXT_DEBUG_STATE, ae as CONTEXT_STEP_INTO_TARGETS_SUPPORTED, af as CONTEXT_FOCUSED_SESSION_IS_ATTACH, ag as REPL_VIEW_ID, ah as CONTEXT_BREAKPOINTS_FOCUSED, ai as CONTEXT_WATCH_EXPRESSIONS_FOCUSED, aj as CONTEXT_VARIABLES_FOCUSED, ak as CONTEXT_EXPRESSION_SELECTED, al as CONTEXT_BREAKPOINT_INPUT_FOCUSED, am as VIEWLET_ID$1, an as CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED, ao as CONTEXT_SUSPEND_DEBUGGEE_SUPPORTED, i as SIDE_GROUP, ap as VARIABLES_VIEW_ID, aq as EDITOR_CONTRIBUTION_ID, ar as INTERNAL_CONSOLE_OPTIONS_SCHEMA, as as DEBUG_MEMORY_SCHEME, E as Emitter, a as __param, at as DEBUG_SCHEME, A as ACTIVE_GROUP, au as CALLSTACK_VIEW_ID, av as CONTEXT_DEBUG_TYPE, aw as CONTEXT_HAS_DEBUGGED, ax as CONTEXT_DEBUG_UX, ay as getStateLabel, az as debuggerDisabledMessage, aA as CONTEXT_STEP_BACK_SUPPORTED, aB as CONTEXT_MULTI_SESSION_DEBUG, aC as CONTEXT_BREAKPOINT_WIDGET_VISIBLE, aD as CONTEXT_IN_BREAKPOINT_WIDGET, aE as CONTEXT_EXCEPTION_WIDGET_VISIBLE, aF as CONTEXT_DEBUG_EXTENSION_AVAILABLE, l as ITextFileService, j as IUriIdentityService, aG as CONTEXT_DEBUG_CONFIGURATION_TYPE, D as DebugConfigurationProviderTriggerKind, n as IFileService, f as FileType, h as FilePermission, a2 as createFileSystemProviderError, t as IHostService, k as IPaneCompositePartService, e as IProductService, o as IWorkbenchEnvironmentService, aH as CONTEXT_LOADED_SCRIPTS_SUPPORTED, aI as CONTEXT_RESTART_FRAME_SUPPORTED, aJ as CONTEXT_SET_VARIABLE_SUPPORTED, aK as CONTEXT_SET_EXPRESSION_SUPPORTED, aL as CONTEXT_DISASSEMBLE_REQUEST_SUPPORTED, aM as CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE, r as IPathService, y as ISnippetsService, aN as CONTEXT_DEBUG_PROTOCOL_VARIABLE_MENU_CONTEXT, aO as CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, aP as CONTEXT_CAN_VIEW_MEMORY, aQ as CONTEXT_VARIABLE_IS_READONLY, F as FileSystemProviderErrorCode, aR as DebuggerString } from './services2.js';
|
|
4
4
|
import { C as CancellationTokenSource } from './cancellation.js';
|
package/dist/files.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as __decorate, E as Emitter, a as __param, T as TextFileOperationError, K as toBufferOrReadable, l as ITextFileService, I as IEditorService, n as IFileService, q as IWorkingCopyFileService, j as IUriIdentityService, o as IWorkbenchEnvironmentService, r as IPathService, e as IProductService, L as stringToSnapshot, m as mark, M as FileChangesEvent, v as FileOperationError, O as hasOpenReadWriteCloseCapability, P as hasReadWriteCapability, Q as hasFileReadStreamCapability, x as toFileSystemProviderErrorCode, F as FileSystemProviderErrorCode, R as ensureFileSystemProviderError, f as FileType, h as FilePermission, U as etag, V as FileOperationEvent, W as toFileOperationResult, X as ETAG_DISABLED, Y as hasFileAtomicReadCapability, Z as NotModifiedSinceFileOperationError, $ as TooLargeFileOperationError, a0 as hasFileFolderCopyCapability, a1 as hasFileCloneCapability, a2 as createFileSystemProviderError, a3 as FileSystemProviderError } from './services2.js';
|
|
2
|
-
import {
|
|
2
|
+
import { z as bufferToReadable, B as bufferToStream, C as consumeStream, D as insert, E as isReadableStream, F as peekStream, G as peekReadable, H as streamToBuffer, J as transform, K as isReadableBufferedStream, L as listenStream, M as bufferedStreamToBuffer, O as readableToBuffer, Q as newWriteableBufferStream, T as newWriteableStream } from './polyfill.js';
|
|
3
3
|
import { b$ as SaveSourceRegistry, c0 as IWorkingCopyBackupService, I as IWorkingCopyService, bP as ILanguageDetectionService, c1 as IUntitledTextEditorService, bL as ILifecycleService, c2 as IFileDialogService, c3 as IFilesConfigurationService, c4 as IElevatedFileService, c5 as IDecorationsService, u as unsupported, D as Disposable$1 } from './missing-services.js';
|
|
4
4
|
import { C as CancellationTokenSource } from './cancellation.js';
|
|
5
5
|
import { VSBuffer } from 'monaco-editor/esm/vs/base/common/buffer.js';
|
package/dist/missing-services.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as __decorate, aU as AutoSaveConfiguration, I as IEditorService, k as IPaneCompositePartService, j as IUriIdentityService, E as Emitter, l as ITextFileService, n as IFileService, d as IEditorGroupsService, o as IWorkbenchEnvironmentService, q as IWorkingCopyFileService, r as IPathService, S as Services, e as IProductService, s as ILanguageStatusService, t as IHostService, J as IUserDataProfilesService, y as ISnippetsService, u as IDebugService, aV as IRemoteAgentService, b as __classPrivateFieldSet, c as __classPrivateFieldGet, w as refineServiceDecorator, aW as AbstractPathService, a as __param, aX as HotExitConfiguration, F as FileSystemProviderErrorCode, aY as markAsFileSystemProviderError } from './services2.js';
|
|
2
|
-
import { I as IPolicyService, f as flatten,
|
|
2
|
+
import { I as IPolicyService, f as flatten, a0 as uniqueFilter, R as Range$1, $ as isStringArray, m as mapArrayOrNot } from './polyfill.js';
|
|
3
3
|
import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
4
4
|
import { compare, nextCharLength, compareIgnoreCase } from 'monaco-editor/esm/vs/base/common/strings.js';
|
|
5
5
|
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
package/dist/monaco.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as __decorate, a as __param } from './services2.js';
|
|
2
2
|
export { C as ContextKeyExprType } from './services2.js';
|
|
3
|
-
import {
|
|
3
|
+
import { a1 as distinct } from './polyfill.js';
|
|
4
4
|
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js';
|
|
5
5
|
export { registerColor } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
6
6
|
import { c as createInjectedClass } from './injection.js';
|
package/dist/polyfill.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VSBuffer as VSBuffer$1 } from 'monaco-editor/esm/vs/base/common/buffer.js';
|
|
2
|
-
import { Disposable, DisposableMap as DisposableMap$1, toDisposable, dispose as dispose$1, DisposableStore, MutableDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
2
|
+
import { Disposable, DisposableMap as DisposableMap$1, toDisposable, dispose as dispose$1, combinedDisposable, DisposableStore, MutableDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
3
3
|
import { onUnexpectedError, ErrorHandler as ErrorHandler$1, illegalArgument, isCancellationError, BugIndicatingError } from 'monaco-editor/esm/vs/base/common/errors.js';
|
|
4
4
|
import { registerThemingParticipant, Themable as Themable$1, IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
|
|
5
5
|
import { ProgressBar as ProgressBar$1 } from 'monaco-editor/esm/vs/base/browser/ui/progressbar/progressbar.js';
|
|
@@ -46,23 +46,10 @@ import { Gesture, EventType } from 'monaco-editor/esm/vs/base/browser/touch.js';
|
|
|
46
46
|
import { Color as Color$1, RGBA as RGBA$1 } from 'monaco-editor/esm/vs/base/common/color.js';
|
|
47
47
|
import { LogService as LogService$1 } from 'monaco-editor/esm/vs/platform/log/common/logService.js';
|
|
48
48
|
import { MultiplexLogger, ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
49
|
-
import {
|
|
50
|
-
import { Keybinding as Keybinding$1, KeyCodeChord as KeyCodeChord$1 } from 'monaco-editor/esm/vs/base/common/keybindings.js';
|
|
49
|
+
import { Keybinding as Keybinding$1, KeyCodeChord as KeyCodeChord$1, decodeKeybinding } from 'monaco-editor/esm/vs/base/common/keybindings.js';
|
|
51
50
|
import { Iterable } from 'monaco-editor/esm/vs/base/common/iterator.js';
|
|
52
51
|
import { once } from 'monaco-editor/esm/vs/base/common/functional.js';
|
|
53
52
|
import { Schemas as Schemas$1, FileAccess as FileAccess$1 } from 'monaco-editor/esm/vs/base/common/network.js';
|
|
54
|
-
import _onigWasm from 'vscode-oniguruma/release/onig.wasm';
|
|
55
|
-
import _break from "./assets/break-6b46c048-6b46c048.mp3";
|
|
56
|
-
import _diffLineDeleted from "./assets/diffLineDeleted-26945eb8-26945eb8.mp3";
|
|
57
|
-
import _diffLineInserted from "./assets/diffLineInserted-8f202889-8f202889.mp3";
|
|
58
|
-
import _diffLineModified from "./assets/diffLineModified-fb126694-fb126694.mp3";
|
|
59
|
-
import _error from "./assets/error-b93c2a76-b93c2a76.mp3";
|
|
60
|
-
import _foldedAreas from "./assets/foldedAreas-a6b54171-a6b54171.mp3";
|
|
61
|
-
import _quickFixes from "./assets/quickFixes-dc7d1e73-dc7d1e73.mp3";
|
|
62
|
-
import _taskCompleted from "./assets/taskCompleted-f0dd8e18-f0dd8e18.mp3";
|
|
63
|
-
import _taskFailed from "./assets/taskFailed-5494702a-5494702a.mp3";
|
|
64
|
-
import _terminalBell from "./assets/terminalBell-ff9df1e1-ff9df1e1.mp3";
|
|
65
|
-
import _warning from "./assets/warning-2687e2e7-2687e2e7.mp3";
|
|
66
53
|
import { AsyncDataTree as AsyncDataTree$1 } from 'monaco-editor/esm/vs/base/browser/ui/tree/asyncDataTree.js';
|
|
67
54
|
import { TreeMouseEventTarget, TreeError, WeakMapper } from 'monaco-editor/esm/vs/base/browser/ui/tree/tree.js';
|
|
68
55
|
import { ObjectTree } from 'monaco-editor/esm/vs/base/browser/ui/tree/objectTree.js';
|
|
@@ -138,6 +125,7 @@ import { QuickInputController } from 'monaco-editor/esm/vs/platform/quickinput/b
|
|
|
138
125
|
import { CancellationToken } from 'monaco-editor/esm/vs/base/common/cancellation.js';
|
|
139
126
|
import { defaultInputBoxStyles, defaultToggleStyles, defaultCountBadgeStyles, defaultButtonStyles, defaultProgressBarStyles, defaultKeybindingLabelStyles, getListStyles } from 'monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js';
|
|
140
127
|
import { ILayoutService } from 'monaco-editor/esm/vs/platform/layout/browser/layoutService.js';
|
|
128
|
+
import { Extensions as Extensions$3 } from 'monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js';
|
|
141
129
|
import { GhostTextController } from 'monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostTextController.js';
|
|
142
130
|
import { getSingletonServiceDescriptors } from 'monaco-editor/esm/vs/platform/instantiation/common/extensions.js';
|
|
143
131
|
import { ILabelService } from 'monaco-editor/esm/vs/platform/label/common/label.js';
|
|
@@ -1027,22 +1015,18 @@ class Themable extends Disposable {
|
|
|
1027
1015
|
const Extensions = {
|
|
1028
1016
|
JSONContribution: 'base.contributions.json'
|
|
1029
1017
|
};
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
'vs/platform/audioCues/browser/media/warning.mp3': _warning
|
|
1043
|
-
};
|
|
1044
|
-
var require = {
|
|
1045
|
-
toUrl: (id) => fileUrls[id]
|
|
1018
|
+
let assetUrls = {};
|
|
1019
|
+
function registerAssets(assets) {
|
|
1020
|
+
assetUrls = {
|
|
1021
|
+
...assetUrls,
|
|
1022
|
+
...assets
|
|
1023
|
+
};
|
|
1024
|
+
}
|
|
1025
|
+
function toUrl(name) {
|
|
1026
|
+
return assetUrls[name] ?? assetUrls[name.replace(/[/.]/g, '_')];
|
|
1027
|
+
}
|
|
1028
|
+
const customRequire = {
|
|
1029
|
+
toUrl
|
|
1046
1030
|
};
|
|
1047
1031
|
var Schemas;
|
|
1048
1032
|
( ((function(Schemas) {
|
|
@@ -1144,7 +1128,7 @@ const nodeModulesAsarPath = 'vs/../../node_modules.asar';
|
|
|
1144
1128
|
const nodeModulesAsarUnpackedPath = 'vs/../../node_modules.asar.unpacked';
|
|
1145
1129
|
class FileAccessImpl {
|
|
1146
1130
|
asBrowserUri(resourcePath) {
|
|
1147
|
-
const uri = this.toUri(resourcePath,
|
|
1131
|
+
const uri = this.toUri(resourcePath, customRequire);
|
|
1148
1132
|
return this.uriToBrowserUri(uri);
|
|
1149
1133
|
}
|
|
1150
1134
|
uriToBrowserUri(uri) {
|
|
@@ -1166,7 +1150,7 @@ class FileAccessImpl {
|
|
|
1166
1150
|
return uri;
|
|
1167
1151
|
}
|
|
1168
1152
|
asFileUri(resourcePath) {
|
|
1169
|
-
const uri = this.toUri(resourcePath,
|
|
1153
|
+
const uri = this.toUri(resourcePath, customRequire);
|
|
1170
1154
|
return this.uriToFileUri(uri);
|
|
1171
1155
|
}
|
|
1172
1156
|
uriToFileUri(uri) {
|
|
@@ -3365,6 +3349,112 @@ function compareConfigurationContents(to, from) {
|
|
|
3365
3349
|
}
|
|
3366
3350
|
return { added, removed, updated };
|
|
3367
3351
|
}
|
|
3352
|
+
class KeybindingsRegistryImpl {
|
|
3353
|
+
constructor() {
|
|
3354
|
+
this._coreKeybindings = ( (new LinkedList()));
|
|
3355
|
+
this._extensionKeybindings = [];
|
|
3356
|
+
this._cachedMergedKeybindings = null;
|
|
3357
|
+
}
|
|
3358
|
+
static bindToCurrentPlatform(kb) {
|
|
3359
|
+
if (OS === 1 ) {
|
|
3360
|
+
if (kb && kb.win) {
|
|
3361
|
+
return kb.win;
|
|
3362
|
+
}
|
|
3363
|
+
}
|
|
3364
|
+
else if (OS === 2 ) {
|
|
3365
|
+
if (kb && kb.mac) {
|
|
3366
|
+
return kb.mac;
|
|
3367
|
+
}
|
|
3368
|
+
}
|
|
3369
|
+
else {
|
|
3370
|
+
if (kb && kb.linux) {
|
|
3371
|
+
return kb.linux;
|
|
3372
|
+
}
|
|
3373
|
+
}
|
|
3374
|
+
return kb;
|
|
3375
|
+
}
|
|
3376
|
+
registerKeybindingRule(rule) {
|
|
3377
|
+
const actualKb = KeybindingsRegistryImpl.bindToCurrentPlatform(rule);
|
|
3378
|
+
const result = ( (new DisposableStore()));
|
|
3379
|
+
if (actualKb && actualKb.primary) {
|
|
3380
|
+
const kk = decodeKeybinding(actualKb.primary, OS);
|
|
3381
|
+
if (kk) {
|
|
3382
|
+
result.add(this._registerDefaultKeybinding(kk, rule.id, rule.args, rule.weight, 0, rule.when));
|
|
3383
|
+
}
|
|
3384
|
+
}
|
|
3385
|
+
if (actualKb && Array.isArray(actualKb.secondary)) {
|
|
3386
|
+
for (let i = 0, len = actualKb.secondary.length; i < len; i++) {
|
|
3387
|
+
const k = actualKb.secondary[i];
|
|
3388
|
+
const kk = decodeKeybinding(k, OS);
|
|
3389
|
+
if (kk) {
|
|
3390
|
+
result.add(this._registerDefaultKeybinding(kk, rule.id, rule.args, rule.weight, -i - 1, rule.when));
|
|
3391
|
+
}
|
|
3392
|
+
}
|
|
3393
|
+
}
|
|
3394
|
+
return result;
|
|
3395
|
+
}
|
|
3396
|
+
setExtensionKeybindings(rules) {
|
|
3397
|
+
const result = [];
|
|
3398
|
+
let keybindingsLen = 0;
|
|
3399
|
+
for (const rule of rules) {
|
|
3400
|
+
if (rule.keybinding) {
|
|
3401
|
+
result[keybindingsLen++] = {
|
|
3402
|
+
keybinding: rule.keybinding,
|
|
3403
|
+
command: rule.id,
|
|
3404
|
+
commandArgs: rule.args,
|
|
3405
|
+
when: rule.when,
|
|
3406
|
+
weight1: rule.weight,
|
|
3407
|
+
weight2: 0,
|
|
3408
|
+
extensionId: rule.extensionId || null,
|
|
3409
|
+
isBuiltinExtension: rule.isBuiltinExtension || false
|
|
3410
|
+
};
|
|
3411
|
+
}
|
|
3412
|
+
}
|
|
3413
|
+
this._extensionKeybindings = result;
|
|
3414
|
+
this._cachedMergedKeybindings = null;
|
|
3415
|
+
}
|
|
3416
|
+
registerCommandAndKeybindingRule(desc) {
|
|
3417
|
+
return combinedDisposable(this.registerKeybindingRule(desc), CommandsRegistry.registerCommand(desc));
|
|
3418
|
+
}
|
|
3419
|
+
_registerDefaultKeybinding(keybinding, commandId, commandArgs, weight1, weight2, when) {
|
|
3420
|
+
const remove = this._coreKeybindings.push({
|
|
3421
|
+
keybinding: keybinding,
|
|
3422
|
+
command: commandId,
|
|
3423
|
+
commandArgs: commandArgs,
|
|
3424
|
+
when: when,
|
|
3425
|
+
weight1: weight1,
|
|
3426
|
+
weight2: weight2,
|
|
3427
|
+
extensionId: null,
|
|
3428
|
+
isBuiltinExtension: false
|
|
3429
|
+
});
|
|
3430
|
+
this._cachedMergedKeybindings = null;
|
|
3431
|
+
return toDisposable(() => {
|
|
3432
|
+
remove();
|
|
3433
|
+
this._cachedMergedKeybindings = null;
|
|
3434
|
+
});
|
|
3435
|
+
}
|
|
3436
|
+
getDefaultKeybindings() {
|
|
3437
|
+
if (!this._cachedMergedKeybindings) {
|
|
3438
|
+
this._cachedMergedKeybindings = Array.from(this._coreKeybindings).concat(this._extensionKeybindings);
|
|
3439
|
+
this._cachedMergedKeybindings.sort(sorter);
|
|
3440
|
+
}
|
|
3441
|
+
return this._cachedMergedKeybindings.slice(0);
|
|
3442
|
+
}
|
|
3443
|
+
}
|
|
3444
|
+
function sorter(a, b) {
|
|
3445
|
+
if (a.weight1 !== b.weight1) {
|
|
3446
|
+
return a.weight1 - b.weight1;
|
|
3447
|
+
}
|
|
3448
|
+
if (a.command && b.command) {
|
|
3449
|
+
if (a.command < b.command) {
|
|
3450
|
+
return -1;
|
|
3451
|
+
}
|
|
3452
|
+
if (a.command > b.command) {
|
|
3453
|
+
return 1;
|
|
3454
|
+
}
|
|
3455
|
+
}
|
|
3456
|
+
return a.weight2 - b.weight2;
|
|
3457
|
+
}
|
|
3368
3458
|
const IWorkspaceContextService = ( (createDecorator('contextService')));
|
|
3369
3459
|
class WorkspaceFolder {
|
|
3370
3460
|
constructor(data,
|
|
@@ -14368,14 +14458,6 @@ StandaloneServices.initialize = (overrides) => {
|
|
|
14368
14458
|
return instantiationService;
|
|
14369
14459
|
};
|
|
14370
14460
|
var _a, _b, _c;
|
|
14371
|
-
if (SnippetParser.prototype.text == null) {
|
|
14372
|
-
SnippetParser.prototype.text = function (value) {
|
|
14373
|
-
return ( this.parse(value).toString());
|
|
14374
|
-
};
|
|
14375
|
-
}
|
|
14376
|
-
else {
|
|
14377
|
-
console.warn('Useless polyfill: SnippetParser');
|
|
14378
|
-
}
|
|
14379
14461
|
function polyfillPrototypeSimple(a, b) {
|
|
14380
14462
|
const entries = Object.getOwnPropertyDescriptors(b);
|
|
14381
14463
|
if (( Object.keys(Object.getOwnPropertyDescriptors(a))).length === ( Object.keys(entries)).length) {
|
|
@@ -14428,9 +14510,11 @@ polyfillPrototypeSimple(ListView$1.prototype, ListView.prototype);
|
|
|
14428
14510
|
polyfillPrototypeSimple(CallbackIterable$1.prototype, CallbackIterable.prototype);
|
|
14429
14511
|
polyfillPrototypeSimple(SelectActionViewItem$1.prototype, SelectActionViewItem.prototype);
|
|
14430
14512
|
polyfillPrototypeSimple(QuickInputService$1.prototype, QuickInputService.prototype);
|
|
14513
|
+
const keydinbingsRegistry = ( Registry.as(Extensions$3.EditorModes));
|
|
14514
|
+
polyfillPrototypeSimple(keydinbingsRegistry.constructor.prototype, KeybindingsRegistryImpl.prototype);
|
|
14431
14515
|
TextModel.prototype.equalsTextBuffer = function (other) {
|
|
14432
|
-
this
|
|
14433
|
-
return this
|
|
14516
|
+
this['_assertNotDisposed']();
|
|
14517
|
+
return this['_buffer'].equals(other);
|
|
14434
14518
|
};
|
|
14435
14519
|
Object.defineProperty(ListView$1.prototype, 'onDidChangeContentHeight', {
|
|
14436
14520
|
get() {
|
|
@@ -14543,4 +14627,4 @@ onServicesInitialized(() => {
|
|
|
14543
14627
|
workspaceContextService.onDidChangeWorkbenchState ?? (workspaceContextService.onDidChangeWorkbenchState = Event.None);
|
|
14544
14628
|
workspaceContextService.getWorkbenchState ?? ((workspaceContextService.getWorkbenchState = () => 1) );
|
|
14545
14629
|
});
|
|
14546
|
-
export {
|
|
14630
|
+
export { isStringArray as $, AsyncReferenceCollection as A, bufferToStream as B, consumeStream as C, insert as D, isReadableStream as E, peekStream as F, peekReadable as G, streamToBuffer as H, IPolicyService as I, transform as J, isReadableBufferedStream as K, listenStream as L, bufferedStreamToBuffer as M, NotImplementedError as N, readableToBuffer as O, Position as P, newWriteableBufferStream as Q, Range as R, Selection as S, newWriteableStream as T, UserSettings as U, disposeIfDisposable as V, visit as W, decodeBase64 as X, parseTree as Y, findNodeAtLocation as Z, createScanner as _, disposed as a, uniqueFilter as a0, distinct as a1, assertAllDefined as b, consoleExtensionMessageHandler as c, delta as d, encodeBase64 as e, flatten as f, ReferenceCollection as g, index as h, isUntitledWorkspace as i, getNodeType as j, NullPolicyService as k, NullPolicyConfiguration as l, mapArrayOrNot as m, n, onServicesInitialized as o, parse as p, PolicyConfiguration as q, readonly as r, setUnexpectedErrorHandler as s, toWorkspaceFolder as t, nodeModulesAsarUnpackedPath as u, nodeModulesPath as v, withUndefinedAsNull as w, registerAssets as x, nodeModulesAsarPath as y, bufferToReadable as z };
|
package/dist/snippetsService.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { y as ISnippetsService, _ as __decorate, a as __param, n as IFileService, l as ITextFileService } from './services2.js';
|
|
2
2
|
import * as monacoSuggest from 'monaco-editor/esm/vs/editor/contrib/suggest/browser/suggest.js';
|
|
3
3
|
import { bU as IUserDataProfileService, bL as ILifecycleService } from './missing-services.js';
|
|
4
|
-
import {
|
|
4
|
+
import { $ as isStringArray, p as parse, j as getNodeType, R as Range } from './polyfill.js';
|
|
5
5
|
import { extname as extname$1, basename as basename$1 } from 'monaco-editor/esm/vs/base/common/path.js';
|
|
6
6
|
import { Iterable } from 'monaco-editor/esm/vs/base/common/iterator.js';
|
|
7
7
|
import { isEqualOrParent, extname, basename, relativePath, joinPath } from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __decorate, E as Emitter, a as __param, X as ETAG_DISABLED, Z as NotModifiedSinceFileOperationError, n as IFileService, l as ITextFileService, r as IPathService } from './services2.js';
|
|
2
2
|
import { b$ as SaveSourceRegistry, c6 as LanguageDetectionLanguageEventSource, bP as ILanguageDetectionService, c0 as IWorkingCopyBackupService, I as IWorkingCopyService, c3 as IFilesConfigurationService, bp as IExtensionService } from './missing-services.js';
|
|
3
3
|
import { Disposable, combinedDisposable, MutableDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
4
|
-
import { R as Range, S as Selection, P as Position, w as withUndefinedAsNull,
|
|
4
|
+
import { R as Range, S as Selection, P as Position, w as withUndefinedAsNull, L as listenStream, T as newWriteableStream } from './polyfill.js';
|
|
5
5
|
import { ThrottledDelayer, timeout } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
6
6
|
import { PLAINTEXT_LANGUAGE_ID } from 'monaco-editor/esm/vs/editor/common/languages/modesRegistry.js';
|
|
7
7
|
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
package/dist/textmate.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as onServicesInitialized, u as nodeModulesAsarUnpackedPath, v as nodeModulesPath, x as nodeModulesAsarPath } from './polyfill.js';
|
|
1
|
+
import { o as onServicesInitialized, u as nodeModulesAsarUnpackedPath, v as nodeModulesPath, x as registerAssets, y as nodeModulesAsarPath } from './polyfill.js';
|
|
2
2
|
import { bW as ITextMateTokenizationService } from './missing-services.js';
|
|
3
3
|
import { E as Emitter, _ as __decorate, a as __param, o as IWorkbenchEnvironmentService } from './services2.js';
|
|
4
4
|
import { I as IExtensionResourceLoaderService } from './extensionResourceLoader.js';
|
|
@@ -34,6 +34,7 @@ import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
|
34
34
|
import { IProgressService } from 'monaco-editor/esm/vs/platform/progress/common/progress.js';
|
|
35
35
|
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
36
36
|
import { Color } from 'monaco-editor/esm/vs/base/common/color.js';
|
|
37
|
+
import _onigWasm from 'vscode-oniguruma/release/onig.wasm';
|
|
37
38
|
import { g as getServiceOverride$1 } from './files.js';
|
|
38
39
|
import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
|
39
40
|
class TextMateTokenizationSupport extends Disposable {
|
|
@@ -345,12 +346,12 @@ let TextMateWorkerHost = class TextMateWorkerHost {
|
|
|
345
346
|
const textmateMain = `${textmateLocation}/release/main.js`;
|
|
346
347
|
const onigurumaMain = `${onigurumaLocation}/release/main.js`;
|
|
347
348
|
const onigurumaWASM = `${onigurumaLocation}/release/onig.wasm`;
|
|
348
|
-
const uri = ( (FileAccess.asBrowserUri(textmateMain).toString(true)));
|
|
349
|
+
const uri = ( (( (FileAccess.asBrowserUri(textmateMain))).toString(true)));
|
|
349
350
|
const createData = {
|
|
350
351
|
grammarDefinitions: this._grammarDefinitions,
|
|
351
352
|
textmateMainUri: uri,
|
|
352
|
-
onigurumaMainUri: ( (FileAccess.asBrowserUri(onigurumaMain).toString(true))),
|
|
353
|
-
onigurumaWASMUri: ( (FileAccess.asBrowserUri(onigurumaWASM).toString(true))),
|
|
353
|
+
onigurumaMainUri: ( (( (FileAccess.asBrowserUri(onigurumaMain))).toString(true))),
|
|
354
|
+
onigurumaWASMUri: ( (( (FileAccess.asBrowserUri(onigurumaWASM))).toString(true))),
|
|
354
355
|
};
|
|
355
356
|
const worker = createWebWorker(this._modelService, this._languageConfigurationService, {
|
|
356
357
|
createData,
|
|
@@ -956,13 +957,13 @@ let TextMateTokenizationFeature = class TextMateTokenizationFeature extends Disp
|
|
|
956
957
|
}
|
|
957
958
|
async _loadVSCodeOnigurumaWASM() {
|
|
958
959
|
if (isWeb) {
|
|
959
|
-
const response = await fetch(( (FileAccess.asBrowserUri('vscode-oniguruma/../onig.wasm').toString(true))));
|
|
960
|
+
const response = await fetch(( (( (FileAccess.asBrowserUri('vscode-oniguruma/../onig.wasm'))).toString(true))));
|
|
960
961
|
return await response.arrayBuffer();
|
|
961
962
|
}
|
|
962
963
|
else {
|
|
963
964
|
const response = await fetch(this._environmentService.isBuilt
|
|
964
|
-
? ( (FileAccess.asBrowserUri(`${nodeModulesAsarUnpackedPath}/vscode-oniguruma/release/onig.wasm`).toString(true)))
|
|
965
|
-
: ( (FileAccess.asBrowserUri(`${nodeModulesPath}/vscode-oniguruma/release/onig.wasm`).toString(true))));
|
|
965
|
+
? ( (( (FileAccess.asBrowserUri(`${nodeModulesAsarUnpackedPath}/vscode-oniguruma/release/onig.wasm`))).toString(true)))
|
|
966
|
+
: ( (( (FileAccess.asBrowserUri(`${nodeModulesPath}/vscode-oniguruma/release/onig.wasm`))).toString(true))));
|
|
966
967
|
return response;
|
|
967
968
|
}
|
|
968
969
|
}
|
|
@@ -1075,6 +1076,9 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
|
|
|
1075
1076
|
}
|
|
1076
1077
|
return true;
|
|
1077
1078
|
}
|
|
1079
|
+
registerAssets({
|
|
1080
|
+
'vscode-oniguruma/../onig.wasm': _onigWasm
|
|
1081
|
+
});
|
|
1078
1082
|
function initialize(instantiationService) {
|
|
1079
1083
|
instantiationService.invokeFunction((accessor) => accessor.get(ITextMateTokenizationService));
|
|
1080
1084
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "1.76.
|
|
3
|
+
"version": "1.76.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor",
|
|
6
6
|
"keywords": [],
|
|
@@ -195,6 +195,7 @@
|
|
|
195
195
|
"rollup": "^3.20.2",
|
|
196
196
|
"rollup-plugin-dts": "^5.3.0",
|
|
197
197
|
"rollup-plugin-external-assets": "^3.0.1",
|
|
198
|
+
"rollup-plugin-glob-import": "^0.5.0",
|
|
198
199
|
"rollup-plugin-styles": "^4.0.0",
|
|
199
200
|
"semver": "^7.3.8",
|
|
200
201
|
"ts-node": "^10.9.1",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|