@codingame/monaco-vscode-api 1.76.6 → 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.
Files changed (33) hide show
  1. package/dist/audioCue.js +28 -2
  2. package/dist/configuration2.js +1 -1
  3. package/dist/debug.js +1 -1
  4. package/dist/files.js +1 -1
  5. package/dist/missing-services.js +1 -1
  6. package/dist/monaco.js +1 -1
  7. package/dist/polyfill.js +17 -42
  8. package/dist/snippetsService.js +1 -1
  9. package/dist/textFileEditorModel.js +1 -1
  10. package/dist/textmate.js +11 -7
  11. package/package.json +2 -1
  12. package/dist/assets/break-6b46c048.mp3 +0 -0
  13. package/dist/assets/diffLineDeleted-26945eb8.mp3 +0 -0
  14. package/dist/assets/diffLineInserted-8f202889.mp3 +0 -0
  15. package/dist/assets/diffLineModified-fb126694.mp3 +0 -0
  16. package/dist/assets/error-b93c2a76.mp3 +0 -0
  17. package/dist/assets/foldedAreas-a6b54171.mp3 +0 -0
  18. package/dist/assets/quickFixes-dc7d1e73.mp3 +0 -0
  19. package/dist/assets/taskCompleted-f0dd8e18.mp3 +0 -0
  20. package/dist/assets/taskFailed-5494702a.mp3 +0 -0
  21. package/dist/assets/terminalBell-ff9df1e1.mp3 +0 -0
  22. package/dist/assets/warning-2687e2e7.mp3 +0 -0
  23. /package/dist/assets/{break-6b46c048-6b46c048.mp3 → break.mp3} +0 -0
  24. /package/dist/assets/{diffLineDeleted-26945eb8-26945eb8.mp3 → diffLineDeleted.mp3} +0 -0
  25. /package/dist/assets/{diffLineInserted-8f202889-8f202889.mp3 → diffLineInserted.mp3} +0 -0
  26. /package/dist/assets/{diffLineModified-fb126694-fb126694.mp3 → diffLineModified.mp3} +0 -0
  27. /package/dist/assets/{error-b93c2a76-b93c2a76.mp3 → error.mp3} +0 -0
  28. /package/dist/assets/{foldedAreas-a6b54171-a6b54171.mp3 → foldedAreas.mp3} +0 -0
  29. /package/dist/assets/{quickFixes-dc7d1e73-dc7d1e73.mp3 → quickFixes.mp3} +0 -0
  30. /package/dist/assets/{taskCompleted-f0dd8e18-f0dd8e18.mp3 → taskCompleted.mp3} +0 -0
  31. /package/dist/assets/{taskFailed-5494702a-5494702a.mp3 → taskFailed.mp3} +0 -0
  32. /package/dist/assets/{terminalBell-ff9df1e1-ff9df1e1.mp3 → terminalBell.mp3} +0 -0
  33. /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);
@@ -1,4 +1,4 @@
1
- import { X as parseTree, Y as findNodeAtLocation, Z as createScanner } from './polyfill.js';
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, T as disposeIfDisposable, P as Position, o as onServicesInitialized, w as withUndefinedAsNull, p as parse, V as visit, f as flatten, W as decodeBase64, e as encodeBase64 } from './polyfill.js';
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 { y as bufferToReadable, z as bufferToStream, B as consumeStream, C as insert, D as isReadableStream, E as peekStream, F as peekReadable, G as streamToBuffer, H as transform, J as isReadableBufferedStream, K as listenStream, L as bufferedStreamToBuffer, M as readableToBuffer, O as newWriteableBufferStream, Q as newWriteableStream } from './polyfill.js';
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';
@@ -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, $ as uniqueFilter, R as Range$1, _ as isStringArray, m as mapArrayOrNot } from './polyfill.js';
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 { a0 as distinct } from './polyfill.js';
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
@@ -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 { SnippetParser } from 'monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetParser.js';
50
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';
@@ -1028,22 +1015,18 @@ class Themable extends Disposable {
1028
1015
  const Extensions = {
1029
1016
  JSONContribution: 'base.contributions.json'
1030
1017
  };
1031
- const fileUrls = {
1032
- 'vscode-oniguruma/../onig.wasm': _onigWasm,
1033
- 'vs/platform/audioCues/browser/media/break.mp3': _break,
1034
- 'vs/platform/audioCues/browser/media/diffLineDeleted.mp3': _diffLineDeleted,
1035
- 'vs/platform/audioCues/browser/media/diffLineInserted.mp3': _diffLineInserted,
1036
- 'vs/platform/audioCues/browser/media/diffLineModified.mp3': _diffLineModified,
1037
- 'vs/platform/audioCues/browser/media/error.mp3': _error,
1038
- 'vs/platform/audioCues/browser/media/foldedAreas.mp3': _foldedAreas,
1039
- 'vs/platform/audioCues/browser/media/quickFixes.mp3': _quickFixes,
1040
- 'vs/platform/audioCues/browser/media/taskCompleted.mp3': _taskCompleted,
1041
- 'vs/platform/audioCues/browser/media/taskFailed.mp3': _taskFailed,
1042
- 'vs/platform/audioCues/browser/media/terminalBell.mp3': _terminalBell,
1043
- 'vs/platform/audioCues/browser/media/warning.mp3': _warning
1044
- };
1045
- var require = {
1046
- 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
1047
1030
  };
1048
1031
  var Schemas;
1049
1032
  ( ((function(Schemas) {
@@ -1145,7 +1128,7 @@ const nodeModulesAsarPath = 'vs/../../node_modules.asar';
1145
1128
  const nodeModulesAsarUnpackedPath = 'vs/../../node_modules.asar.unpacked';
1146
1129
  class FileAccessImpl {
1147
1130
  asBrowserUri(resourcePath) {
1148
- const uri = this.toUri(resourcePath, require);
1131
+ const uri = this.toUri(resourcePath, customRequire);
1149
1132
  return this.uriToBrowserUri(uri);
1150
1133
  }
1151
1134
  uriToBrowserUri(uri) {
@@ -1167,7 +1150,7 @@ class FileAccessImpl {
1167
1150
  return uri;
1168
1151
  }
1169
1152
  asFileUri(resourcePath) {
1170
- const uri = this.toUri(resourcePath, require);
1153
+ const uri = this.toUri(resourcePath, customRequire);
1171
1154
  return this.uriToFileUri(uri);
1172
1155
  }
1173
1156
  uriToFileUri(uri) {
@@ -14475,14 +14458,6 @@ StandaloneServices.initialize = (overrides) => {
14475
14458
  return instantiationService;
14476
14459
  };
14477
14460
  var _a, _b, _c;
14478
- if (SnippetParser.prototype.text == null) {
14479
- SnippetParser.prototype.text = function (value) {
14480
- return ( this.parse(value).toString());
14481
- };
14482
- }
14483
- else {
14484
- console.warn('Useless polyfill: SnippetParser');
14485
- }
14486
14461
  function polyfillPrototypeSimple(a, b) {
14487
14462
  const entries = Object.getOwnPropertyDescriptors(b);
14488
14463
  if (( Object.keys(Object.getOwnPropertyDescriptors(a))).length === ( Object.keys(entries)).length) {
@@ -14538,8 +14513,8 @@ polyfillPrototypeSimple(QuickInputService$1.prototype, QuickInputService.prototy
14538
14513
  const keydinbingsRegistry = ( Registry.as(Extensions$3.EditorModes));
14539
14514
  polyfillPrototypeSimple(keydinbingsRegistry.constructor.prototype, KeybindingsRegistryImpl.prototype);
14540
14515
  TextModel.prototype.equalsTextBuffer = function (other) {
14541
- this._assertNotDisposed();
14542
- return this._buffer.equals(other);
14516
+ this['_assertNotDisposed']();
14517
+ return this['_buffer'].equals(other);
14543
14518
  };
14544
14519
  Object.defineProperty(ListView$1.prototype, 'onDidChangeContentHeight', {
14545
14520
  get() {
@@ -14652,4 +14627,4 @@ onServicesInitialized(() => {
14652
14627
  workspaceContextService.onDidChangeWorkbenchState ?? (workspaceContextService.onDidChangeWorkbenchState = Event.None);
14653
14628
  workspaceContextService.getWorkbenchState ?? ((workspaceContextService.getWorkbenchState = () => 1) );
14654
14629
  });
14655
- export { uniqueFilter as $, AsyncReferenceCollection as A, consumeStream as B, insert as C, isReadableStream as D, peekStream as E, peekReadable as F, streamToBuffer as G, transform as H, IPolicyService as I, isReadableBufferedStream as J, listenStream as K, bufferedStreamToBuffer as L, readableToBuffer as M, NotImplementedError as N, newWriteableBufferStream as O, Position as P, newWriteableStream as Q, Range as R, Selection as S, disposeIfDisposable as T, UserSettings as U, visit as V, decodeBase64 as W, parseTree as X, findNodeAtLocation as Y, createScanner as Z, isStringArray as _, disposed as a, distinct as a0, 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, nodeModulesAsarPath as x, bufferToReadable as y, bufferToStream as z };
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 };
@@ -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 { _ as isStringArray, p as parse, j as getNodeType, R as Range } from './polyfill.js';
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, K as listenStream, Q as newWriteableStream } from './polyfill.js';
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.6",
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