@codingame/monaco-vscode-api 1.69.9 → 1.69.11
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/api.js +2 -1
- package/dist/configuration.js +4 -4
- package/dist/dialogs.js +2 -2
- package/dist/extHost.js +4 -106
- package/dist/files.js +4 -4
- package/dist/keybindings.js +4 -4
- package/dist/languageConfiguration.js +3 -3
- package/dist/languageService.js +2 -2
- package/dist/languages.js +1 -1
- package/dist/layout.js +2 -2
- package/dist/layoutService.js +1 -1
- package/dist/missing-services.js +10 -245
- package/dist/modelEditor.js +3 -3
- package/dist/monaco.js +2 -2
- package/dist/notifications.js +2 -2
- package/dist/polyfill.js +139 -20
- package/dist/services.d.ts +2125 -2125
- package/dist/services.js +3 -2
- package/dist/services2.js +577 -3
- package/dist/snippets.js +4 -4
- package/dist/textmate.js +4 -4
- package/dist/theme.js +3 -3
- package/dist/tokenClassification.js +1 -1
- package/dist/tokenClassificationRegistry.js +1 -1
- package/dist/workbenchThemeService.js +1 -1
- package/dist/{contextkey.js → workspace.js} +24 -1
- package/package.json +1 -1
package/dist/polyfill.js
CHANGED
|
@@ -9,13 +9,12 @@ import { show, hide, createStyleSheet } from 'monaco-editor/esm/vs/base/browser/
|
|
|
9
9
|
import { isNumber, isObject, isUndefinedOrNull } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
10
10
|
import { Color as Color$1 } from 'monaco-editor/esm/vs/base/common/color.js';
|
|
11
11
|
import { LanguageService as LanguageService$1 } from 'monaco-editor/esm/vs/editor/common/services/languageService.js';
|
|
12
|
-
import
|
|
12
|
+
import { E as Emitter, W as WorkspaceFolder, R as RawContextKey, N as NoOpNotification$1, s as shuffle } from './workspace.js';
|
|
13
13
|
import { LanguagesRegistry as LanguagesRegistry$1 } from 'monaco-editor/esm/vs/editor/common/services/languagesRegistry.js';
|
|
14
14
|
import { firstOrDefault, distinct, equals as equals$1, binarySearch, range } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
15
15
|
import { PLAINTEXT_LANGUAGE_ID, ModesRegistry } from 'monaco-editor/esm/vs/editor/common/languages/modesRegistry.js';
|
|
16
16
|
import { TokenizationRegistry } from 'monaco-editor/esm/vs/editor/common/languages.js';
|
|
17
17
|
import { NoOpNotification } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
18
|
-
import { R as RawContextKey, N as NoOpNotification$1, s as shuffle } from './contextkey.js';
|
|
19
18
|
import { StandaloneConfigurationService as StandaloneConfigurationService$1 } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
20
19
|
import { Configuration as Configuration$1, ConfigurationModel as ConfigurationModel$1, ConfigurationChangeEvent } from 'monaco-editor/esm/vs/platform/configuration/common/configurationModels.js';
|
|
21
20
|
import { DefaultConfigurationModel } from 'monaco-editor/esm/vs/platform/configuration/common/configurations.js';
|
|
@@ -29,7 +28,6 @@ import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform
|
|
|
29
28
|
import { RawContextKey as RawContextKey$1 } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
30
29
|
import { clearPlatformLanguageAssociations, registerPlatformLanguageAssociation, getLanguageIds } from 'monaco-editor/esm/vs/editor/common/services/languagesAssociations.js';
|
|
31
30
|
import { WorkspaceFolder as WorkspaceFolder$1 } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
|
|
32
|
-
import { joinPath } from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
33
31
|
import { List as List$1 } from 'monaco-editor/esm/vs/base/browser/ui/list/listWidget.js';
|
|
34
32
|
import { ListView } from 'monaco-editor/esm/vs/base/browser/ui/list/listView.js';
|
|
35
33
|
import { CombinedSpliceable } from 'monaco-editor/esm/vs/base/browser/ui/list/splice.js';
|
|
@@ -37,10 +35,11 @@ import { DomEmitter, stopEvent } from 'monaco-editor/esm/vs/base/browser/event.j
|
|
|
37
35
|
import { StandardKeyboardEvent } from 'monaco-editor/esm/vs/base/browser/keyboardEvent.js';
|
|
38
36
|
import { ListError } from 'monaco-editor/esm/vs/base/browser/ui/list/list.js';
|
|
39
37
|
import { clamp } from 'monaco-editor/esm/vs/base/common/numbers.js';
|
|
40
|
-
import { isMacintosh } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
38
|
+
import { isMacintosh, isWindows } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
41
39
|
import { alert } from 'monaco-editor/esm/vs/base/browser/ui/aria/aria.js';
|
|
42
40
|
import { matchesPrefix } from 'monaco-editor/esm/vs/base/common/filters.js';
|
|
43
41
|
import { Gesture } from 'monaco-editor/esm/vs/base/browser/touch.js';
|
|
42
|
+
import { LogService as LogService$1 } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
44
43
|
import { SnippetParser } from 'monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetParser.js';
|
|
45
44
|
import { QuickInputController } from 'monaco-editor/esm/vs/base/parts/quickinput/browser/quickInput.js';
|
|
46
45
|
import { getSingletonServiceDescriptors } from 'monaco-editor/esm/vs/platform/instantiation/common/extensions.js';
|
|
@@ -632,7 +631,6 @@ async function bufferedStreamToBuffer(bufferedStream) {
|
|
|
632
631
|
function newWriteableBufferStream(options) {
|
|
633
632
|
return newWriteableStream(chunks => VSBuffer.concat(chunks), options);
|
|
634
633
|
}
|
|
635
|
-
const Emitter = monaco.Emitter;
|
|
636
634
|
const Extensions$1 = {
|
|
637
635
|
ThemingContribution: 'base.contributions.theming'
|
|
638
636
|
};
|
|
@@ -3071,23 +3069,143 @@ function compareConfigurationContents(to, from) {
|
|
|
3071
3069
|
}
|
|
3072
3070
|
return { added, removed, updated };
|
|
3073
3071
|
}
|
|
3074
|
-
function
|
|
3075
|
-
|
|
3076
|
-
return typeof workspaceIdentifier?.id === 'string' && URI.isUri(workspaceIdentifier.configPath);
|
|
3072
|
+
function now() {
|
|
3073
|
+
return ( (new Date())).toISOString();
|
|
3077
3074
|
}
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3075
|
+
var LogLevel;
|
|
3076
|
+
( ((function(LogLevel) {
|
|
3077
|
+
LogLevel[LogLevel["Trace"] = 0] = "Trace";
|
|
3078
|
+
LogLevel[LogLevel["Debug"] = 1] = "Debug";
|
|
3079
|
+
LogLevel[LogLevel["Info"] = 2] = "Info";
|
|
3080
|
+
LogLevel[LogLevel["Warning"] = 3] = "Warning";
|
|
3081
|
+
LogLevel[LogLevel["Error"] = 4] = "Error";
|
|
3082
|
+
LogLevel[LogLevel["Critical"] = 5] = "Critical";
|
|
3083
|
+
LogLevel[LogLevel["Off"] = 6] = "Off";
|
|
3084
|
+
})(LogLevel || (LogLevel = {}))));
|
|
3085
|
+
const DEFAULT_LOG_LEVEL = LogLevel.Info;
|
|
3086
|
+
class AbstractLogger extends Disposable {
|
|
3087
|
+
constructor() {
|
|
3088
|
+
super(...arguments);
|
|
3089
|
+
this.level = DEFAULT_LOG_LEVEL;
|
|
3090
|
+
this._onDidChangeLogLevel = this._register(( (new Emitter())));
|
|
3091
|
+
this.onDidChangeLogLevel = this._onDidChangeLogLevel.event;
|
|
3092
|
+
}
|
|
3093
|
+
setLevel(level) {
|
|
3094
|
+
if (this.level !== level) {
|
|
3095
|
+
this.level = level;
|
|
3096
|
+
this._onDidChangeLogLevel.fire(this.level);
|
|
3097
|
+
}
|
|
3085
3098
|
}
|
|
3086
|
-
|
|
3087
|
-
return
|
|
3099
|
+
getLevel() {
|
|
3100
|
+
return this.level;
|
|
3088
3101
|
}
|
|
3089
|
-
|
|
3090
|
-
|
|
3102
|
+
}
|
|
3103
|
+
class ConsoleMainLogger extends AbstractLogger {
|
|
3104
|
+
constructor(logLevel = DEFAULT_LOG_LEVEL) {
|
|
3105
|
+
super();
|
|
3106
|
+
this.setLevel(logLevel);
|
|
3107
|
+
this.useColors = !isWindows;
|
|
3108
|
+
}
|
|
3109
|
+
trace(message, ...args) {
|
|
3110
|
+
if (this.getLevel() <= LogLevel.Trace) {
|
|
3111
|
+
if (this.useColors) {
|
|
3112
|
+
console.log(`\x1b[90m[main ${now()}]\x1b[0m`, message, ...args);
|
|
3113
|
+
}
|
|
3114
|
+
else {
|
|
3115
|
+
console.log(`[main ${now()}]`, message, ...args);
|
|
3116
|
+
}
|
|
3117
|
+
}
|
|
3118
|
+
}
|
|
3119
|
+
debug(message, ...args) {
|
|
3120
|
+
if (this.getLevel() <= LogLevel.Debug) {
|
|
3121
|
+
if (this.useColors) {
|
|
3122
|
+
console.log(`\x1b[90m[main ${now()}]\x1b[0m`, message, ...args);
|
|
3123
|
+
}
|
|
3124
|
+
else {
|
|
3125
|
+
console.log(`[main ${now()}]`, message, ...args);
|
|
3126
|
+
}
|
|
3127
|
+
}
|
|
3128
|
+
}
|
|
3129
|
+
info(message, ...args) {
|
|
3130
|
+
if (this.getLevel() <= LogLevel.Info) {
|
|
3131
|
+
if (this.useColors) {
|
|
3132
|
+
console.log(`\x1b[90m[main ${now()}]\x1b[0m`, message, ...args);
|
|
3133
|
+
}
|
|
3134
|
+
else {
|
|
3135
|
+
console.log(`[main ${now()}]`, message, ...args);
|
|
3136
|
+
}
|
|
3137
|
+
}
|
|
3138
|
+
}
|
|
3139
|
+
warn(message, ...args) {
|
|
3140
|
+
if (this.getLevel() <= LogLevel.Warning) {
|
|
3141
|
+
if (this.useColors) {
|
|
3142
|
+
console.warn(`\x1b[93m[main ${now()}]\x1b[0m`, message, ...args);
|
|
3143
|
+
}
|
|
3144
|
+
else {
|
|
3145
|
+
console.warn(`[main ${now()}]`, message, ...args);
|
|
3146
|
+
}
|
|
3147
|
+
}
|
|
3148
|
+
}
|
|
3149
|
+
error(message, ...args) {
|
|
3150
|
+
if (this.getLevel() <= LogLevel.Error) {
|
|
3151
|
+
if (this.useColors) {
|
|
3152
|
+
console.error(`\x1b[91m[main ${now()}]\x1b[0m`, message, ...args);
|
|
3153
|
+
}
|
|
3154
|
+
else {
|
|
3155
|
+
console.error(`[main ${now()}]`, message, ...args);
|
|
3156
|
+
}
|
|
3157
|
+
}
|
|
3158
|
+
}
|
|
3159
|
+
critical(message, ...args) {
|
|
3160
|
+
if (this.getLevel() <= LogLevel.Critical) {
|
|
3161
|
+
if (this.useColors) {
|
|
3162
|
+
console.error(`\x1b[90m[main ${now()}]\x1b[0m`, message, ...args);
|
|
3163
|
+
}
|
|
3164
|
+
else {
|
|
3165
|
+
console.error(`[main ${now()}]`, message, ...args);
|
|
3166
|
+
}
|
|
3167
|
+
}
|
|
3168
|
+
}
|
|
3169
|
+
dispose() {
|
|
3170
|
+
}
|
|
3171
|
+
flush() {
|
|
3172
|
+
}
|
|
3173
|
+
}
|
|
3174
|
+
class LogService extends Disposable {
|
|
3175
|
+
constructor(logger) {
|
|
3176
|
+
super();
|
|
3177
|
+
this.logger = logger;
|
|
3178
|
+
this._register(logger);
|
|
3179
|
+
}
|
|
3180
|
+
get onDidChangeLogLevel() {
|
|
3181
|
+
return this.logger.onDidChangeLogLevel;
|
|
3182
|
+
}
|
|
3183
|
+
setLevel(level) {
|
|
3184
|
+
this.logger.setLevel(level);
|
|
3185
|
+
}
|
|
3186
|
+
getLevel() {
|
|
3187
|
+
return this.logger.getLevel();
|
|
3188
|
+
}
|
|
3189
|
+
trace(message, ...args) {
|
|
3190
|
+
this.logger.trace(message, ...args);
|
|
3191
|
+
}
|
|
3192
|
+
debug(message, ...args) {
|
|
3193
|
+
this.logger.debug(message, ...args);
|
|
3194
|
+
}
|
|
3195
|
+
info(message, ...args) {
|
|
3196
|
+
this.logger.info(message, ...args);
|
|
3197
|
+
}
|
|
3198
|
+
warn(message, ...args) {
|
|
3199
|
+
this.logger.warn(message, ...args);
|
|
3200
|
+
}
|
|
3201
|
+
error(message, ...args) {
|
|
3202
|
+
this.logger.error(message, ...args);
|
|
3203
|
+
}
|
|
3204
|
+
critical(message, ...args) {
|
|
3205
|
+
this.logger.critical(message, ...args);
|
|
3206
|
+
}
|
|
3207
|
+
flush() {
|
|
3208
|
+
this.logger.flush();
|
|
3091
3209
|
}
|
|
3092
3210
|
}
|
|
3093
3211
|
function isConfigurationOverrides(thing) {
|
|
@@ -5275,6 +5393,7 @@ function polyfillPrototype(a, b, toA, toB) {
|
|
|
5275
5393
|
}
|
|
5276
5394
|
}
|
|
5277
5395
|
}
|
|
5396
|
+
polyfillPrototypeSimple(LogService$1.prototype, LogService.prototype);
|
|
5278
5397
|
polyfillPrototypeSimple(List$1.prototype, List.prototype);
|
|
5279
5398
|
polyfillPrototypeSimple(WorkspaceFolder$1.prototype, WorkspaceFolder.prototype);
|
|
5280
5399
|
polyfillPrototypeSimple(LanguagesRegistry$1.prototype, LanguagesRegistry.prototype);
|
|
@@ -5346,4 +5465,4 @@ function toVSCodeColor(value) {
|
|
|
5346
5465
|
return value;
|
|
5347
5466
|
}
|
|
5348
5467
|
polyfillPrototype(Color$1.prototype, Color.prototype, toMonacoColor, toVSCodeColor);
|
|
5349
|
-
export {
|
|
5468
|
+
export { ConsoleMainLogger as C, NotImplementedError as N, ResourceSet as R, UserSettings as U, peekReadable as a, bufferToReadable as b, consumeStream as c, disposed as d, isReadableBufferedStream as e, bufferedStreamToBuffer as f, readableToBuffer as g, newWriteableStream as h, isReadableStream as i, parse as j, getNodeType as k, listenStream as l, newWriteableBufferStream as n, peekStream as p, readonly as r, streamToBuffer as s, transform as t };
|