@codingame/monaco-vscode-api 1.69.14 → 1.69.15
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/_.contribution.js +13 -0
- package/dist/keybindings.js +2149 -11
- package/dist/languageConfiguration.js +1 -1
- package/dist/layout.contribution.darwin.js +1994 -0
- package/dist/layout.contribution.linux.js +899 -0
- package/dist/layout.contribution.win.js +3551 -0
- package/dist/missing-services.js +62 -3
- package/dist/snippets.js +1 -1
- package/dist/textmate.js +1 -1
- package/dist/theme.js +1 -1
- package/package.json +4 -3
package/dist/missing-services.js
CHANGED
|
@@ -315,6 +315,56 @@ const _UUIDPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{
|
|
|
315
315
|
function isUUID(value) {
|
|
316
316
|
return _UUIDPattern.test(value);
|
|
317
317
|
}
|
|
318
|
+
((function () {
|
|
319
|
+
if (typeof crypto === 'object' && typeof crypto.randomUUID === 'function') {
|
|
320
|
+
return crypto.randomUUID.bind(crypto);
|
|
321
|
+
}
|
|
322
|
+
let getRandomValues;
|
|
323
|
+
if (typeof crypto === 'object' && typeof crypto.getRandomValues === 'function') {
|
|
324
|
+
getRandomValues = crypto.getRandomValues.bind(crypto);
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
getRandomValues = function (bucket) {
|
|
328
|
+
for (let i = 0; i < bucket.length; i++) {
|
|
329
|
+
bucket[i] = Math.floor(Math.random() * 256);
|
|
330
|
+
}
|
|
331
|
+
return bucket;
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
const _data = ( (new Uint8Array(16)));
|
|
335
|
+
const _hex = [];
|
|
336
|
+
for (let i = 0; i < 256; i++) {
|
|
337
|
+
_hex.push(( (i.toString(16))).padStart(2, '0'));
|
|
338
|
+
}
|
|
339
|
+
return function generateUuid() {
|
|
340
|
+
getRandomValues(_data);
|
|
341
|
+
_data[6] = (_data[6] & 0x0f) | 0x40;
|
|
342
|
+
_data[8] = (_data[8] & 0x3f) | 0x80;
|
|
343
|
+
let i = 0;
|
|
344
|
+
let result = '';
|
|
345
|
+
result += _hex[_data[i++]];
|
|
346
|
+
result += _hex[_data[i++]];
|
|
347
|
+
result += _hex[_data[i++]];
|
|
348
|
+
result += _hex[_data[i++]];
|
|
349
|
+
result += '-';
|
|
350
|
+
result += _hex[_data[i++]];
|
|
351
|
+
result += _hex[_data[i++]];
|
|
352
|
+
result += '-';
|
|
353
|
+
result += _hex[_data[i++]];
|
|
354
|
+
result += _hex[_data[i++]];
|
|
355
|
+
result += '-';
|
|
356
|
+
result += _hex[_data[i++]];
|
|
357
|
+
result += _hex[_data[i++]];
|
|
358
|
+
result += '-';
|
|
359
|
+
result += _hex[_data[i++]];
|
|
360
|
+
result += _hex[_data[i++]];
|
|
361
|
+
result += _hex[_data[i++]];
|
|
362
|
+
result += _hex[_data[i++]];
|
|
363
|
+
result += _hex[_data[i++]];
|
|
364
|
+
result += _hex[_data[i++]];
|
|
365
|
+
return result;
|
|
366
|
+
};
|
|
367
|
+
}))();
|
|
318
368
|
const IPolicyService = ( (createDecorator('policy')));
|
|
319
369
|
class NullPolicyService {
|
|
320
370
|
constructor() {
|
|
@@ -385,6 +435,15 @@ class NullExtensionService {
|
|
|
385
435
|
const ILifecycleService = ( (createDecorator('lifecycleService')));
|
|
386
436
|
const ILanguageDetectionService = ( (createDecorator('ILanguageDetectionService')));
|
|
387
437
|
const IKeyboardLayoutService = ( (createDecorator('keyboardLayoutService')));
|
|
438
|
+
function getKeyboardLayoutId(layout) {
|
|
439
|
+
if (layout.name) {
|
|
440
|
+
return layout.name;
|
|
441
|
+
}
|
|
442
|
+
if (layout.id) {
|
|
443
|
+
return layout.id;
|
|
444
|
+
}
|
|
445
|
+
return layout.layout;
|
|
446
|
+
}
|
|
388
447
|
class MacLinuxFallbackKeyboardMapper {
|
|
389
448
|
constructor(OS) {
|
|
390
449
|
this._OS = OS;
|
|
@@ -1564,6 +1623,8 @@ class WorkbenchEnvironmentService {
|
|
|
1564
1623
|
this.skipWelcome = true;
|
|
1565
1624
|
this.disableWorkspaceTrust = true;
|
|
1566
1625
|
this.debugRenderer = false;
|
|
1626
|
+
this.keyboardLayoutResource = ( URI.from({ scheme: 'user', path: '/keyboardLayout.json' }));
|
|
1627
|
+
this.snippetsHome = ( URI.from({ scheme: 'user', path: '/snippets' }));
|
|
1567
1628
|
this.sync = undefined;
|
|
1568
1629
|
this.isExtensionDevelopment = false;
|
|
1569
1630
|
this.disableExtensions = false;
|
|
@@ -1576,9 +1637,7 @@ class WorkbenchEnvironmentService {
|
|
|
1576
1637
|
get extHostLogsPath() { return unsupported(); }
|
|
1577
1638
|
get webviewExternalEndpoint() { return unsupported(); }
|
|
1578
1639
|
get userRoamingDataHome() { return unsupported(); }
|
|
1579
|
-
get keyboardLayoutResource() { return unsupported(); }
|
|
1580
1640
|
get argvResource() { return unsupported(); }
|
|
1581
|
-
get snippetsHome() { return ( URI.from({ scheme: 'user', path: '/snippets' })); }
|
|
1582
1641
|
get untitledWorkspacesHome() { return unsupported(); }
|
|
1583
1642
|
get globalStorageHome() { return unsupported(); }
|
|
1584
1643
|
get workspaceStorageHome() { return unsupported(); }
|
|
@@ -1828,4 +1887,4 @@ registerSingleton(ISnippetsService, class SnippetsService {
|
|
|
1828
1887
|
this.getSnippetsSync = unsupported;
|
|
1829
1888
|
}
|
|
1830
1889
|
});
|
|
1831
|
-
export { Barrier as B, ExtensionsRegistry as E, IExtensionService as I, NullPolicyService as N, ResourceQueue as R, Sequencer as S, IntervalCounter as a, ILifecycleService as b, checkProposedApiEnabled as c, ILanguageDetectionService as d, IPolicyService as e, format2 as f, getServiceMachineId as g, ExtensionMessageCollector as h, isProposedApiEnabled as i,
|
|
1890
|
+
export { Barrier as B, ExtensionsRegistry as E, IExtensionService as I, MacLinuxFallbackKeyboardMapper as M, NullPolicyService as N, ResourceQueue as R, Sequencer as S, IntervalCounter as a, ILifecycleService as b, checkProposedApiEnabled as c, ILanguageDetectionService as d, IPolicyService as e, format2 as f, getServiceMachineId as g, ExtensionMessageCollector as h, isProposedApiEnabled as i, IKeyboardLayoutService as j, IPreferencesService as k, getKeyboardLayoutId as l, IUserDataProfileService as m, ITextMateService as n, IBrowserWorkbenchEnvironmentService as o, IHostColorSchemeService as p, IUserDataInitializationService as q, raceCancellationError as r, unsupported as u };
|
package/dist/snippets.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as parse, k as getNodeType } from './polyfill.js';
|
|
2
|
-
import { h as ExtensionMessageCollector,
|
|
2
|
+
import { h as ExtensionMessageCollector, m as IUserDataProfileService, b as ILifecycleService, E as ExtensionsRegistry } from './missing-services.js';
|
|
3
3
|
import { r as ISnippetsService, S as Services, i as IFileService, h as ITextFileService } from './services2.js';
|
|
4
4
|
import { _ as __decorate, a as __param } from './workspace.js';
|
|
5
5
|
import * as monacoSuggest from 'monaco-editor/esm/vs/editor/contrib/suggest/browser/suggest.js';
|
package/dist/textmate.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as __decorate, a as __param, E as Emitter } from './workspace.js';
|
|
2
2
|
import './polyfill.js';
|
|
3
|
-
import { h as ExtensionMessageCollector,
|
|
3
|
+
import { h as ExtensionMessageCollector, n as ITextMateService, E as ExtensionsRegistry } from './missing-services.js';
|
|
4
4
|
import { l as languagesExtPoint } from './languageService.js';
|
|
5
5
|
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
6
6
|
import { I as IWorkbenchThemeService } from './workbenchThemeService.js';
|
package/dist/theme.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as parse$1, k as getNodeType } from './polyfill.js';
|
|
2
|
-
import { E as ExtensionsRegistry, h as ExtensionMessageCollector, S as Sequencer, I as IExtensionService,
|
|
2
|
+
import { E as ExtensionsRegistry, h as ExtensionMessageCollector, S as Sequencer, I as IExtensionService, o as IBrowserWorkbenchEnvironmentService, p as IHostColorSchemeService, q as IUserDataInitializationService } from './missing-services.js';
|
|
3
3
|
import { E as Emitter, _ as __decorate, a as __param } from './workspace.js';
|
|
4
4
|
import { T as ThemeSettings, E as ExtensionData, V as VS_DARK_THEME, a as VS_LIGHT_THEME, b as VS_HC_THEME, c as VS_HC_LIGHT_THEME, d as THEME_SCOPE_OPEN_PAREN, e as THEME_SCOPE_CLOSE_PAREN, f as THEME_SCOPE_WILDCARD, t as themeScopeRegex } from './workbenchThemeService.js';
|
|
5
5
|
import { editorBackground, editorForeground, editorSelectionBackground, editorInactiveSelection, editorSelectionHighlight, editorFindMatchHighlight, editorFindMatch, editorHoverHighlight, editorFindRangeHighlight, workbenchColorsSchemaId, asCssVariableName, Extensions as Extensions$2 } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "1.69.
|
|
3
|
+
"version": "1.69.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor",
|
|
6
6
|
"keywords": [],
|
|
@@ -149,6 +149,7 @@
|
|
|
149
149
|
"@codingame/eslint-config": "^1.1.6",
|
|
150
150
|
"@codingame/tsconfig": "^1.1.1",
|
|
151
151
|
"@octokit/rest": "^19.0.5",
|
|
152
|
+
"@rollup/plugin-dynamic-import-vars": "^2.0.3",
|
|
152
153
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
153
154
|
"@rollup/plugin-replace": "^5.0.2",
|
|
154
155
|
"@rollup/plugin-typescript": "^11.0.0",
|
|
@@ -176,8 +177,8 @@
|
|
|
176
177
|
"dependencies": {},
|
|
177
178
|
"peerDependencies": {
|
|
178
179
|
"monaco-editor": "~0.34.0",
|
|
179
|
-
"vscode-
|
|
180
|
-
"vscode-
|
|
180
|
+
"vscode-oniguruma": "^1.6.2",
|
|
181
|
+
"vscode-textmate": "^7.0.1"
|
|
181
182
|
},
|
|
182
183
|
"overrides": {
|
|
183
184
|
"rollup-plugin-styles": {
|