@codingame/monaco-vscode-api 1.76.0 → 1.76.1
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 +4 -1
- package/dist/api.js +1 -8
- package/dist/assets/break-6b46c048-6b46c048.mp3 +0 -0
- package/dist/assets/break-6b46c048.mp3 +0 -0
- package/dist/assets/diffLineDeleted-26945eb8-26945eb8.mp3 +0 -0
- package/dist/assets/diffLineDeleted-26945eb8.mp3 +0 -0
- package/dist/assets/diffLineInserted-8f202889-8f202889.mp3 +0 -0
- package/dist/assets/diffLineInserted-8f202889.mp3 +0 -0
- package/dist/assets/diffLineModified-fb126694-fb126694.mp3 +0 -0
- package/dist/assets/diffLineModified-fb126694.mp3 +0 -0
- package/dist/assets/error-b93c2a76-b93c2a76.mp3 +0 -0
- package/dist/assets/error-b93c2a76.mp3 +0 -0
- package/dist/assets/foldedAreas-a6b54171-a6b54171.mp3 +0 -0
- package/dist/assets/foldedAreas-a6b54171.mp3 +0 -0
- package/dist/assets/quickFixes-dc7d1e73-dc7d1e73.mp3 +0 -0
- package/dist/assets/quickFixes-dc7d1e73.mp3 +0 -0
- package/dist/assets/taskCompleted-f0dd8e18-f0dd8e18.mp3 +0 -0
- package/dist/assets/taskCompleted-f0dd8e18.mp3 +0 -0
- package/dist/assets/taskFailed-5494702a-5494702a.mp3 +0 -0
- package/dist/assets/taskFailed-5494702a.mp3 +0 -0
- package/dist/assets/terminalBell-ff9df1e1-ff9df1e1.mp3 +0 -0
- package/dist/assets/terminalBell-ff9df1e1.mp3 +0 -0
- package/dist/assets/warning-2687e2e7-2687e2e7.mp3 +0 -0
- package/dist/assets/warning-2687e2e7.mp3 +0 -0
- package/dist/audioCue.d.ts +22 -0
- package/dist/audioCue.js +1147 -0
- package/dist/button.js +325 -0
- package/dist/dialog.web.contribution.js +945 -0
- package/dist/dialogs.js +7 -960
- package/dist/extHost.js +1 -1
- package/dist/files.js +2 -1
- package/dist/layout.js +4 -325
- package/dist/missing-services.js +65 -1
- package/dist/modelEditor.js +21 -3
- package/dist/notifications.js +2 -1
- package/dist/polyfill.js +186 -2
- package/dist/services.d.ts +56 -1
- package/dist/services.js +1 -0
- package/dist/snippets.js +1 -1
- package/dist/textmate.d.ts +1 -1
- package/dist/textmate.js +5 -18
- package/dist/workbenchThemeService.js +1 -1
- package/dist/workspaceContext.js +2 -0
- package/package.json +10 -1
package/dist/polyfill.js
CHANGED
|
@@ -36,7 +36,7 @@ import { CombinedSpliceable } from 'monaco-editor/esm/vs/base/browser/ui/list/sp
|
|
|
36
36
|
import { ListView } from 'monaco-editor/esm/vs/base/browser/ui/list/listView.js';
|
|
37
37
|
import { ListError } from 'monaco-editor/esm/vs/base/browser/ui/list/list.js';
|
|
38
38
|
import { clamp } from 'monaco-editor/esm/vs/base/common/numbers.js';
|
|
39
|
-
import { isMacintosh } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
39
|
+
import { isNative, isWebWorker, globals, isMacintosh, isWeb } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
40
40
|
import { alert } from 'monaco-editor/esm/vs/base/browser/ui/aria/aria.js';
|
|
41
41
|
import { matchesPrefix } from 'monaco-editor/esm/vs/base/common/filters.js';
|
|
42
42
|
import { Gesture } from 'monaco-editor/esm/vs/base/browser/touch.js';
|
|
@@ -48,6 +48,20 @@ import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/com
|
|
|
48
48
|
import { Keybinding as Keybinding$1, KeyCodeChord as KeyCodeChord$1 } from 'monaco-editor/esm/vs/base/common/keybindings.js';
|
|
49
49
|
import { Iterable } from 'monaco-editor/esm/vs/base/common/iterator.js';
|
|
50
50
|
import { once } from 'monaco-editor/esm/vs/base/common/functional.js';
|
|
51
|
+
import { FileAccess as FileAccess$1 } from 'monaco-editor/esm/vs/base/common/network.js';
|
|
52
|
+
import _onigWasm from 'vscode-oniguruma/release/onig.wasm';
|
|
53
|
+
import _break from "./assets/break-6b46c048-6b46c048.mp3";
|
|
54
|
+
import _diffLineDeleted from "./assets/diffLineDeleted-26945eb8-26945eb8.mp3";
|
|
55
|
+
import _diffLineInserted from "./assets/diffLineInserted-8f202889-8f202889.mp3";
|
|
56
|
+
import _diffLineModified from "./assets/diffLineModified-fb126694-fb126694.mp3";
|
|
57
|
+
import _error from "./assets/error-b93c2a76-b93c2a76.mp3";
|
|
58
|
+
import _foldedAreas from "./assets/foldedAreas-a6b54171-a6b54171.mp3";
|
|
59
|
+
import _quickFixes from "./assets/quickFixes-dc7d1e73-dc7d1e73.mp3";
|
|
60
|
+
import _taskCompleted from "./assets/taskCompleted-f0dd8e18-f0dd8e18.mp3";
|
|
61
|
+
import _taskFailed from "./assets/taskFailed-5494702a-5494702a.mp3";
|
|
62
|
+
import _terminalBell from "./assets/terminalBell-ff9df1e1-ff9df1e1.mp3";
|
|
63
|
+
import _warning from "./assets/warning-2687e2e7-2687e2e7.mp3";
|
|
64
|
+
import { GhostTextController } from 'monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostTextController.js';
|
|
51
65
|
import { QuickInputController } from 'monaco-editor/esm/vs/platform/quickinput/browser/quickInput.js';
|
|
52
66
|
import { getSingletonServiceDescriptors } from 'monaco-editor/esm/vs/platform/instantiation/common/extensions.js';
|
|
53
67
|
import { ILabelService } from 'monaco-editor/esm/vs/platform/label/common/label.js';
|
|
@@ -857,6 +871,170 @@ class Themable extends Disposable {
|
|
|
857
871
|
const Extensions = {
|
|
858
872
|
JSONContribution: 'base.contributions.json'
|
|
859
873
|
};
|
|
874
|
+
const fileUrls = {
|
|
875
|
+
'vscode-oniguruma/../onig.wasm': _onigWasm,
|
|
876
|
+
'vs/platform/audioCues/browser/media/break.mp3': _break,
|
|
877
|
+
'vs/platform/audioCues/browser/media/diffLineDeleted.mp3': _diffLineDeleted,
|
|
878
|
+
'vs/platform/audioCues/browser/media/diffLineInserted.mp3': _diffLineInserted,
|
|
879
|
+
'vs/platform/audioCues/browser/media/diffLineModified.mp3': _diffLineModified,
|
|
880
|
+
'vs/platform/audioCues/browser/media/error.mp3': _error,
|
|
881
|
+
'vs/platform/audioCues/browser/media/foldedAreas.mp3': _foldedAreas,
|
|
882
|
+
'vs/platform/audioCues/browser/media/quickFixes.mp3': _quickFixes,
|
|
883
|
+
'vs/platform/audioCues/browser/media/taskCompleted.mp3': _taskCompleted,
|
|
884
|
+
'vs/platform/audioCues/browser/media/taskFailed.mp3': _taskFailed,
|
|
885
|
+
'vs/platform/audioCues/browser/media/terminalBell.mp3': _terminalBell,
|
|
886
|
+
'vs/platform/audioCues/browser/media/warning.mp3': _warning
|
|
887
|
+
};
|
|
888
|
+
var require = {
|
|
889
|
+
toUrl: (id) => fileUrls[id]
|
|
890
|
+
};
|
|
891
|
+
var Schemas;
|
|
892
|
+
( ((function(Schemas) {
|
|
893
|
+
Schemas.inMemory = 'inmemory';
|
|
894
|
+
Schemas.vscode = 'vscode';
|
|
895
|
+
Schemas.internal = 'private';
|
|
896
|
+
Schemas.walkThrough = 'walkThrough';
|
|
897
|
+
Schemas.walkThroughSnippet = 'walkThroughSnippet';
|
|
898
|
+
Schemas.http = 'http';
|
|
899
|
+
Schemas.https = 'https';
|
|
900
|
+
Schemas.file = 'file';
|
|
901
|
+
Schemas.mailto = 'mailto';
|
|
902
|
+
Schemas.untitled = 'untitled';
|
|
903
|
+
Schemas.data = 'data';
|
|
904
|
+
Schemas.command = 'command';
|
|
905
|
+
Schemas.vscodeRemote = 'vscode-remote';
|
|
906
|
+
Schemas.vscodeRemoteResource = 'vscode-remote-resource';
|
|
907
|
+
Schemas.vscodeUserData = 'vscode-userdata';
|
|
908
|
+
Schemas.vscodeCustomEditor = 'vscode-custom-editor';
|
|
909
|
+
Schemas.vscodeNotebookCell = 'vscode-notebook-cell';
|
|
910
|
+
Schemas.vscodeNotebookCellMetadata = 'vscode-notebook-cell-metadata';
|
|
911
|
+
Schemas.vscodeNotebookCellOutput = 'vscode-notebook-cell-output';
|
|
912
|
+
Schemas.vscodeInteractive = 'vscode-interactive';
|
|
913
|
+
Schemas.vscodeInteractiveInput = 'vscode-interactive-input';
|
|
914
|
+
Schemas.vscodeSettings = 'vscode-settings';
|
|
915
|
+
Schemas.vscodeWorkspaceTrust = 'vscode-workspace-trust';
|
|
916
|
+
Schemas.vscodeTerminal = 'vscode-terminal';
|
|
917
|
+
Schemas.webviewPanel = 'webview-panel';
|
|
918
|
+
Schemas.vscodeWebview = 'vscode-webview';
|
|
919
|
+
Schemas.extension = 'extension';
|
|
920
|
+
Schemas.vscodeFileResource = 'vscode-file';
|
|
921
|
+
Schemas.tmp = 'tmp';
|
|
922
|
+
Schemas.vsls = 'vsls';
|
|
923
|
+
Schemas.vscodeSourceControl = 'vscode-scm';
|
|
924
|
+
})(Schemas || (Schemas = {}))));
|
|
925
|
+
const connectionTokenQueryName = 'tkn';
|
|
926
|
+
class RemoteAuthoritiesImpl {
|
|
927
|
+
constructor() {
|
|
928
|
+
this._hosts = Object.create(null);
|
|
929
|
+
this._ports = Object.create(null);
|
|
930
|
+
this._connectionTokens = Object.create(null);
|
|
931
|
+
this._preferredWebSchema = 'http';
|
|
932
|
+
this._delegate = null;
|
|
933
|
+
this._remoteResourcesPath = `/${Schemas.vscodeRemoteResource}`;
|
|
934
|
+
}
|
|
935
|
+
setPreferredWebSchema(schema) {
|
|
936
|
+
this._preferredWebSchema = schema;
|
|
937
|
+
}
|
|
938
|
+
setDelegate(delegate) {
|
|
939
|
+
this._delegate = delegate;
|
|
940
|
+
}
|
|
941
|
+
setServerRootPath(serverRootPath) {
|
|
942
|
+
this._remoteResourcesPath = `${serverRootPath}/${Schemas.vscodeRemoteResource}`;
|
|
943
|
+
}
|
|
944
|
+
set(authority, host, port) {
|
|
945
|
+
this._hosts[authority] = host;
|
|
946
|
+
this._ports[authority] = port;
|
|
947
|
+
}
|
|
948
|
+
setConnectionToken(authority, connectionToken) {
|
|
949
|
+
this._connectionTokens[authority] = connectionToken;
|
|
950
|
+
}
|
|
951
|
+
getPreferredWebSchema() {
|
|
952
|
+
return this._preferredWebSchema;
|
|
953
|
+
}
|
|
954
|
+
rewrite(uri) {
|
|
955
|
+
if (this._delegate) {
|
|
956
|
+
try {
|
|
957
|
+
return this._delegate(uri);
|
|
958
|
+
}
|
|
959
|
+
catch (err) {
|
|
960
|
+
onUnexpectedError(err);
|
|
961
|
+
return uri;
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
const authority = uri.authority;
|
|
965
|
+
let host = this._hosts[authority];
|
|
966
|
+
if (host && host.indexOf(':') !== -1 && host.indexOf('[') === -1) {
|
|
967
|
+
host = `[${host}]`;
|
|
968
|
+
}
|
|
969
|
+
const port = this._ports[authority];
|
|
970
|
+
const connectionToken = this._connectionTokens[authority];
|
|
971
|
+
let query = `path=${encodeURIComponent(uri.path)}`;
|
|
972
|
+
if (typeof connectionToken === 'string') {
|
|
973
|
+
query += `&${connectionTokenQueryName}=${encodeURIComponent(connectionToken)}`;
|
|
974
|
+
}
|
|
975
|
+
return (
|
|
976
|
+
(URI.from({
|
|
977
|
+
scheme: isWeb ? this._preferredWebSchema : Schemas.vscodeRemoteResource,
|
|
978
|
+
authority: `${host}:${port}`,
|
|
979
|
+
path: this._remoteResourcesPath,
|
|
980
|
+
query
|
|
981
|
+
}))
|
|
982
|
+
);
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
const RemoteAuthorities = ( (new RemoteAuthoritiesImpl()));
|
|
986
|
+
const nodeModulesPath = 'vs/../../node_modules';
|
|
987
|
+
const nodeModulesAsarPath = 'vs/../../node_modules.asar';
|
|
988
|
+
const nodeModulesAsarUnpackedPath = 'vs/../../node_modules.asar.unpacked';
|
|
989
|
+
class FileAccessImpl {
|
|
990
|
+
asBrowserUri(resourcePath) {
|
|
991
|
+
const uri = this.toUri(resourcePath, require);
|
|
992
|
+
return this.uriToBrowserUri(uri);
|
|
993
|
+
}
|
|
994
|
+
uriToBrowserUri(uri) {
|
|
995
|
+
if (uri.scheme === Schemas.vscodeRemote) {
|
|
996
|
+
return RemoteAuthorities.rewrite(uri);
|
|
997
|
+
}
|
|
998
|
+
if (
|
|
999
|
+
uri.scheme === Schemas.file &&
|
|
1000
|
+
(
|
|
1001
|
+
(
|
|
1002
|
+
(isNative || (isWebWorker && globals.origin === `${Schemas.vscodeFileResource}://${FileAccessImpl.FALLBACK_AUTHORITY}`))))) {
|
|
1003
|
+
return uri.with({
|
|
1004
|
+
scheme: Schemas.vscodeFileResource,
|
|
1005
|
+
authority: uri.authority || FileAccessImpl.FALLBACK_AUTHORITY,
|
|
1006
|
+
query: null,
|
|
1007
|
+
fragment: null
|
|
1008
|
+
});
|
|
1009
|
+
}
|
|
1010
|
+
return uri;
|
|
1011
|
+
}
|
|
1012
|
+
asFileUri(resourcePath) {
|
|
1013
|
+
const uri = this.toUri(resourcePath, require);
|
|
1014
|
+
return this.uriToFileUri(uri);
|
|
1015
|
+
}
|
|
1016
|
+
uriToFileUri(uri) {
|
|
1017
|
+
if (uri.scheme === Schemas.vscodeFileResource) {
|
|
1018
|
+
return uri.with({
|
|
1019
|
+
scheme: Schemas.file,
|
|
1020
|
+
authority: uri.authority !== FileAccessImpl.FALLBACK_AUTHORITY ? uri.authority : null,
|
|
1021
|
+
query: null,
|
|
1022
|
+
fragment: null
|
|
1023
|
+
});
|
|
1024
|
+
}
|
|
1025
|
+
return uri;
|
|
1026
|
+
}
|
|
1027
|
+
toUri(uriOrModule, moduleIdToUrl) {
|
|
1028
|
+
if (URI.isUri(uriOrModule)) {
|
|
1029
|
+
return uriOrModule;
|
|
1030
|
+
}
|
|
1031
|
+
return (
|
|
1032
|
+
(URI.parse(moduleIdToUrl.toUrl(uriOrModule)))
|
|
1033
|
+
);
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
FileAccessImpl.FALLBACK_AUTHORITY = 'vscode-app';
|
|
1037
|
+
const FileAccess = ( (new FileAccessImpl()));
|
|
860
1038
|
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=( Object.keys(r.attributes)),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
861
1039
|
var css$1 = ".monaco-progress-container{height:5px;overflow:hidden;width:100%}.monaco-progress-container .progress-bit{display:none;height:5px;left:0;position:absolute;width:2%}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-duration:4s;animation-iteration-count:infinite;animation-name:progress;animation-timing-function:linear;transform:translateZ(0)}.monaco-progress-container.infinite.infinite-long-running .progress-bit{animation-timing-function:steps(100)}@keyframes progress{0%{transform:translateX(0) scaleX(1)}50%{transform:translateX(2500%) scaleX(3)}to{transform:translateX(4900%) scaleX(1)}}";
|
|
862
1040
|
n(css$1,{});
|
|
@@ -5965,6 +6143,7 @@ polyfillPrototypeSimple(DefaultConfiguration$1.prototype, DefaultConfiguration.p
|
|
|
5965
6143
|
polyfillPrototypeSimple(Keybinding$1.prototype, Keybinding.prototype);
|
|
5966
6144
|
polyfillPrototypeSimple(KeyCodeChord$1.prototype, KeyCodeChord.prototype);
|
|
5967
6145
|
polyfillPrototypeSimple(DisposableMap$1.prototype, DisposableMap.prototype);
|
|
6146
|
+
polyfillPrototypeSimple(FileAccess$1.constructor.prototype, FileAccess.constructor.prototype);
|
|
5968
6147
|
Object.defineProperty(DefaultConfiguration$1.prototype, '_onDidChangeConfiguration', {
|
|
5969
6148
|
get() {
|
|
5970
6149
|
if (this.__onDidChangeConfiguration == null) {
|
|
@@ -5992,6 +6171,11 @@ configurationRegistry.notifyConfigurationSchemaUpdated ?? (configurationRegistry
|
|
|
5992
6171
|
configurationRegistry._onDidSchemaChange.fire();
|
|
5993
6172
|
});
|
|
5994
6173
|
(_a = NoOpNotification.prototype).onDidClose ?? (_a.onDidClose = Event.None);
|
|
6174
|
+
Object.defineProperty(GhostTextController.prototype, 'onActiveModelDidChange', {
|
|
6175
|
+
get() {
|
|
6176
|
+
return this.activeModelDidChangeEmitter.event;
|
|
6177
|
+
}
|
|
6178
|
+
});
|
|
5995
6179
|
function polyfillQuickInput(fn) {
|
|
5996
6180
|
return function () {
|
|
5997
6181
|
const quickInput = fn.call(this);
|
|
@@ -6039,4 +6223,4 @@ function toVSCodeColor(value) {
|
|
|
6039
6223
|
return value;
|
|
6040
6224
|
}
|
|
6041
6225
|
polyfillPrototype(Color$1.prototype, Color.prototype, toMonacoColor, toVSCodeColor);
|
|
6042
|
-
export { AsyncReferenceCollection as A,
|
|
6226
|
+
export { AsyncReferenceCollection as A, newWriteableBufferStream as B, newWriteableStream as C, disposed as D, mapArrayOrNot as E, delta as F, readonly as G, NotImplementedError as H, IPolicyService as I, encodeBase64 as J, NullPolicyService as N, PolicyConfiguration as P, ReferenceCollection as R, UserSettings as U, assertAllDefined as a, NullPolicyConfiguration as b, parseTree as c, findNodeAtLocation as d, createScanner as e, flatten as f, getNodeType as g, nodeModulesAsarUnpackedPath as h, index as i, nodeModulesPath as j, nodeModulesAsarPath as k, isStringArray as l, isReadableStream as m, n, peekStream as o, parse as p, peekReadable as q, bufferToReadable as r, streamToBuffer as s, consumeStream as t, transform as u, isReadableBufferedStream as v, withUndefinedAsNull as w, listenStream as x, bufferedStreamToBuffer as y, readableToBuffer as z };
|
package/dist/services.d.ts
CHANGED
|
@@ -16365,6 +16365,61 @@ interface ISnippetsService {
|
|
|
16365
16365
|
getSnippetsSync(languageId: string, opt?: ISnippetGetOptions): Snippet[];
|
|
16366
16366
|
}
|
|
16367
16367
|
|
|
16368
|
+
declare const IAudioCueService: ServiceIdentifier<IAudioCueService>;
|
|
16369
|
+
interface IAudioCueService {
|
|
16370
|
+
readonly _serviceBrand: undefined;
|
|
16371
|
+
playAudioCue(cue: AudioCue, allowManyInParallel?: boolean): Promise<void>;
|
|
16372
|
+
playAudioCues(cues: AudioCue[]): Promise<void>;
|
|
16373
|
+
isEnabled(cue: AudioCue): boolean;
|
|
16374
|
+
onEnabledChanged(cue: AudioCue): Event$1<void>;
|
|
16375
|
+
playSound(cue: Sound, allowManyInParallel?: boolean): Promise<void>;
|
|
16376
|
+
}
|
|
16377
|
+
/**
|
|
16378
|
+
* Corresponds to the audio files in ./media.
|
|
16379
|
+
*/
|
|
16380
|
+
declare class Sound {
|
|
16381
|
+
readonly fileName: string;
|
|
16382
|
+
private static register;
|
|
16383
|
+
static readonly error: Sound;
|
|
16384
|
+
static readonly warning: Sound;
|
|
16385
|
+
static readonly foldedArea: Sound;
|
|
16386
|
+
static readonly break: Sound;
|
|
16387
|
+
static readonly quickFixes: Sound;
|
|
16388
|
+
static readonly taskCompleted: Sound;
|
|
16389
|
+
static readonly taskFailed: Sound;
|
|
16390
|
+
static readonly terminalBell: Sound;
|
|
16391
|
+
static readonly diffLineInserted: Sound;
|
|
16392
|
+
static readonly diffLineDeleted: Sound;
|
|
16393
|
+
static readonly diffLineModified: Sound;
|
|
16394
|
+
private constructor();
|
|
16395
|
+
}
|
|
16396
|
+
declare class AudioCue {
|
|
16397
|
+
readonly sound: Sound;
|
|
16398
|
+
readonly name: string;
|
|
16399
|
+
readonly settingsKey: string;
|
|
16400
|
+
private static _audioCues;
|
|
16401
|
+
private static register;
|
|
16402
|
+
static get allAudioCues(): AudioCue[];
|
|
16403
|
+
static readonly error: AudioCue;
|
|
16404
|
+
static readonly warning: AudioCue;
|
|
16405
|
+
static readonly foldedArea: AudioCue;
|
|
16406
|
+
static readonly break: AudioCue;
|
|
16407
|
+
static readonly inlineSuggestion: AudioCue;
|
|
16408
|
+
static readonly terminalQuickFix: AudioCue;
|
|
16409
|
+
static readonly onDebugBreak: AudioCue;
|
|
16410
|
+
static readonly noInlayHints: AudioCue;
|
|
16411
|
+
static readonly taskCompleted: AudioCue;
|
|
16412
|
+
static readonly taskFailed: AudioCue;
|
|
16413
|
+
static readonly terminalCommandFailed: AudioCue;
|
|
16414
|
+
static readonly terminalBell: AudioCue;
|
|
16415
|
+
static readonly notebookCellCompleted: AudioCue;
|
|
16416
|
+
static readonly notebookCellFailed: AudioCue;
|
|
16417
|
+
static readonly diffLineInserted: AudioCue;
|
|
16418
|
+
static readonly diffLineDeleted: AudioCue;
|
|
16419
|
+
static readonly diffLineModified: AudioCue;
|
|
16420
|
+
private constructor();
|
|
16421
|
+
}
|
|
16422
|
+
|
|
16368
16423
|
interface Window {
|
|
16369
16424
|
createOutputChannel?(name: string, options: string | {
|
|
16370
16425
|
log: true;
|
|
@@ -16391,4 +16446,4 @@ declare namespace Services {
|
|
|
16391
16446
|
function install(_services: Services): vscode.Disposable;
|
|
16392
16447
|
}
|
|
16393
16448
|
|
|
16394
|
-
export { ContextKeyExprType, IBulkEditService, IClipboardService, ICodeEditorService, IColorTheme, ICommandService, IConfigurationChangeEvent, IConfigurationService, IDialogService, IEditorGroupsService, IEditorService, IEditorWorkerService, IFileService, IHostService, IInstantiationService, ILanguageConfigurationService, ILanguageFeaturesService, ILanguageService, ILanguageStatusService, IMarkerService, IModelService, INotificationService, IOpenerService, IPaneCompositePartService, IPathService, IProductService, IQuickInputService, ISnippetsService, IStorageService, ITelemetryService, ITextFileService, ITextModelContentProvider, ITextModelService, IThemeService, IUriIdentityService, IWorkbenchEnvironmentService, IWorkingCopyFileService, IWorkspaceContextService, NotificationsFilter, Services, Severity$1 as Severity, StandaloneServices, StorageScope, StorageTarget, Window, Workspace };
|
|
16449
|
+
export { ContextKeyExprType, IAudioCueService, IBulkEditService, IClipboardService, ICodeEditorService, IColorTheme, ICommandService, IConfigurationChangeEvent, IConfigurationService, IDialogService, IEditorGroupsService, IEditorService, IEditorWorkerService, IFileService, IHostService, IInstantiationService, ILanguageConfigurationService, ILanguageFeaturesService, ILanguageService, ILanguageStatusService, IMarkerService, IModelService, INotificationService, IOpenerService, IPaneCompositePartService, IPathService, IProductService, IQuickInputService, ISnippetsService, IStorageService, ITelemetryService, ITextFileService, ITextModelContentProvider, ITextModelService, IThemeService, IUriIdentityService, IWorkbenchEnvironmentService, IWorkingCopyFileService, IWorkspaceContextService, NotificationsFilter, Services, Severity$1 as Severity, StandaloneServices, StorageScope, StorageTarget, Window, Workspace };
|
package/dist/services.js
CHANGED
|
@@ -22,4 +22,5 @@ export { IConfigurationService } from 'monaco-editor/esm/vs/platform/configurati
|
|
|
22
22
|
export { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
|
|
23
23
|
export { IWorkspaceContextService } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
|
|
24
24
|
export { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
|
|
25
|
+
export { IAudioCueService } from 'monaco-editor/esm/vs/platform/audioCues/browser/audioCueService.js';
|
|
25
26
|
export { default as Severity } from 'monaco-editor/esm/vs/base/common/severity.js';
|
package/dist/snippets.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as isStringArray, p as parse, g as getNodeType } from './polyfill.js';
|
|
2
2
|
import { e as IUserDataProfileService, I as ILifecycleService } from './missing-services.js';
|
|
3
3
|
import { i as ISnippetsService, S as Services, c as IFileService, j as ITextFileService } from './services2.js';
|
|
4
4
|
import { _ as __decorate, a as __param } from './contextkey.js';
|
package/dist/textmate.d.ts
CHANGED
|
@@ -772,6 +772,6 @@ interface ITMSyntaxExtensionPoint {
|
|
|
772
772
|
|
|
773
773
|
type PartialITMSyntaxExtensionPoint = Partial<ITMSyntaxExtensionPoint> & Pick<ITMSyntaxExtensionPoint, 'path' | 'scopeName'>;
|
|
774
774
|
declare function setGrammars<T extends PartialITMSyntaxExtensionPoint>(grammars: T[], getContent: (grammar: T) => Promise<string>, extension?: IExtensionDescription): void;
|
|
775
|
-
declare function getServiceOverride(
|
|
775
|
+
declare function getServiceOverride(): IEditorOverrideServices;
|
|
776
776
|
|
|
777
777
|
export { PartialITMSyntaxExtensionPoint as ITMSyntaxExtensionPoint, ITextMateTokenizationService, getServiceOverride as default, setGrammars };
|
package/dist/textmate.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import './polyfill.js';
|
|
1
|
+
import { h as nodeModulesAsarUnpackedPath, j as nodeModulesPath, k as nodeModulesAsarPath } from './polyfill.js';
|
|
3
2
|
import { f as ITextMateTokenizationService } from './missing-services.js';
|
|
4
3
|
import { g as getExtensionPoint, a as ExtensionMessageCollector, c as consoleExtensionMessageHandler, o as onServicesInitialized, E as ExtensionsRegistry } from './tools.js';
|
|
4
|
+
import { E as Emitter, _ as __decorate, a as __param } from './contextkey.js';
|
|
5
5
|
import { r as registerExtensionFile, g as getServiceOverride$1, I as IExtensionResourceLoaderService } from './files.js';
|
|
6
6
|
import { S as Services, l as IWorkbenchEnvironmentService } from './services2.js';
|
|
7
7
|
import { Disposable, DisposableStore, toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
@@ -29,18 +29,14 @@ import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
|
29
29
|
import { I as IWorkbenchThemeService } from './workbenchThemeService.js';
|
|
30
30
|
import { createStyleSheet } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
31
31
|
import { generateTokensCSSForColorMap } from 'monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js';
|
|
32
|
+
import { isObject } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
32
33
|
import { INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
33
34
|
import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
34
35
|
import { IProgressService } from 'monaco-editor/esm/vs/platform/progress/common/progress.js';
|
|
35
36
|
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
36
|
-
import { isObject } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
37
37
|
import { Color } from 'monaco-editor/esm/vs/base/common/color.js';
|
|
38
|
-
import { c as createInjectedClass } from './injection.js';
|
|
39
38
|
import { bj as DEFAULT_EXTENSION } from './extHost.js';
|
|
40
39
|
import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
|
41
|
-
const nodeModulesPath = 'vs/../../node_modules';
|
|
42
|
-
const nodeModulesAsarPath = 'vs/../../node_modules.asar';
|
|
43
|
-
const nodeModulesAsarUnpackedPath = 'vs/../../node_modules.asar.unpacked';
|
|
44
40
|
class TextMateTokenizationSupport extends Disposable {
|
|
45
41
|
constructor(_grammar, _initialState, _containsEmbeddedLanguages, _createBackgroundTokenizer) {
|
|
46
42
|
super();
|
|
@@ -1078,15 +1074,6 @@ function validateGrammarExtensionPoint(extensionLocation, syntax, collector, _la
|
|
|
1078
1074
|
}
|
|
1079
1075
|
return true;
|
|
1080
1076
|
}
|
|
1081
|
-
let _TextMateTokenizationFeature = class _TextMateTokenizationFeature extends createInjectedClass(TextMateTokenizationFeature) {
|
|
1082
|
-
constructor(loadVSCodeOnigurumaWASM, instantiationService) {
|
|
1083
|
-
super(instantiationService);
|
|
1084
|
-
this['_loadVSCodeOnigurumaWASM'] = loadVSCodeOnigurumaWASM;
|
|
1085
|
-
}
|
|
1086
|
-
};
|
|
1087
|
-
_TextMateTokenizationFeature = ( __decorate([
|
|
1088
|
-
( __param(1, IInstantiationService))
|
|
1089
|
-
], _TextMateTokenizationFeature));
|
|
1090
1077
|
const extensionPoint = getExtensionPoint('grammars');
|
|
1091
1078
|
function setGrammars(grammars, getContent, extension = Services.get().extension ?? DEFAULT_EXTENSION) {
|
|
1092
1079
|
extensionPoint.acceptUsers([{
|
|
@@ -1101,11 +1088,11 @@ function setGrammars(grammars, getContent, extension = Services.get().extension
|
|
|
1101
1088
|
function initialize(instantiationService) {
|
|
1102
1089
|
instantiationService.invokeFunction((accessor) => accessor.get(ITextMateTokenizationService));
|
|
1103
1090
|
}
|
|
1104
|
-
function getServiceOverride(
|
|
1091
|
+
function getServiceOverride() {
|
|
1105
1092
|
onServicesInitialized(initialize);
|
|
1106
1093
|
return {
|
|
1107
1094
|
...getServiceOverride$1(),
|
|
1108
|
-
[( ITextMateTokenizationService.toString())]: new SyncDescriptor(
|
|
1095
|
+
[( ITextMateTokenizationService.toString())]: new SyncDescriptor(TextMateTokenizationFeature)
|
|
1109
1096
|
};
|
|
1110
1097
|
}
|
|
1111
1098
|
export { ITextMateTokenizationService, getServiceOverride as default, setGrammars };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as refineServiceDecorator } from './services2.js';
|
|
2
|
-
import { isString, isBoolean } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
3
2
|
import { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
|
|
3
|
+
import { isString, isBoolean } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
4
4
|
const IWorkbenchThemeService = refineServiceDecorator(IThemeService);
|
|
5
5
|
const VS_LIGHT_THEME = 'vs';
|
|
6
6
|
const VS_DARK_THEME = 'vs-dark';
|
package/dist/workspaceContext.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import './polyfill.js';
|
|
2
2
|
import { u as unsupported } from './missing-services.js';
|
|
3
|
+
import './dialog.web.contribution.js';
|
|
4
|
+
import './files.js';
|
|
3
5
|
import { S as Services } from './services2.js';
|
|
4
6
|
import { IWorkspaceContextService, WorkspaceFolder } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
|
|
5
7
|
import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
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.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor",
|
|
6
6
|
"keywords": [],
|
|
@@ -68,6 +68,10 @@
|
|
|
68
68
|
"types": "./dist/languages.d.ts",
|
|
69
69
|
"default": "./dist/languages.js"
|
|
70
70
|
},
|
|
71
|
+
"./service-override/audioCue": {
|
|
72
|
+
"types": "./dist/audioCue.d.ts",
|
|
73
|
+
"default": "./dist/audioCue.js"
|
|
74
|
+
},
|
|
71
75
|
"./monaco": {
|
|
72
76
|
"types": "./dist/monaco.d.ts",
|
|
73
77
|
"default": "./dist/monaco.js"
|
|
@@ -115,6 +119,9 @@
|
|
|
115
119
|
"service-override/languages": [
|
|
116
120
|
"./dist/languages.d.ts"
|
|
117
121
|
],
|
|
122
|
+
"service-override/audioCue": [
|
|
123
|
+
"./dist/audioCue.d.ts"
|
|
124
|
+
],
|
|
118
125
|
"monaco": [
|
|
119
126
|
"./dist/monaco.d.ts"
|
|
120
127
|
],
|
|
@@ -152,6 +159,7 @@
|
|
|
152
159
|
"@codingame/tsconfig": "^1.1.1",
|
|
153
160
|
"@octokit/rest": "^19.0.7",
|
|
154
161
|
"@rollup/plugin-dynamic-import-vars": "^2.0.3",
|
|
162
|
+
"@rollup/plugin-inject": "^5.0.3",
|
|
155
163
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
156
164
|
"@rollup/plugin-replace": "^5.0.2",
|
|
157
165
|
"@rollup/plugin-typescript": "^11.0.0",
|
|
@@ -170,6 +178,7 @@
|
|
|
170
178
|
"recast": "^0.22.0",
|
|
171
179
|
"rollup": "^3.18.0",
|
|
172
180
|
"rollup-plugin-dts": "^5.2.0",
|
|
181
|
+
"rollup-plugin-external-assets": "^3.0.1",
|
|
173
182
|
"rollup-plugin-styles": "^4.0.0",
|
|
174
183
|
"semver": "^7.3.8",
|
|
175
184
|
"ts-node": "^10.9.1",
|