@codingame/monaco-vscode-api 1.78.0-next.0 → 1.78.0
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 +0 -1
- package/dist/debug.js +1 -3
- package/dist/dialogs.js +1 -2
- package/dist/modelEditor.js +1 -2
- package/dist/notifications.js +1 -3
- package/dist/polyfill.js +240 -129
- package/dist/theme.js +1 -2
- package/package.json +1 -1
- package/dist/layout.js +0 -41
- package/dist/layoutService.js +0 -12
package/dist/theme.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Emitter, Sequencer, getRemoteAuthority, __decorate, __param, IExtensionService, IBrowserWorkbenchEnvironmentService, IFileService, IExtensionResourceLoaderService, IHostColorSchemeService, IUserDataInitializationService, parse$1, getNodeType } from './polyfill.js';
|
|
1
|
+
import { Emitter, Sequencer, getRemoteAuthority, __decorate, __param, IExtensionService, IBrowserWorkbenchEnvironmentService, IFileService, IExtensionResourceLoaderService, IWorkbenchLayoutService, IHostColorSchemeService, IUserDataInitializationService, parse$1, getNodeType } from './polyfill.js';
|
|
2
2
|
import { ThemeSettings, tokenStylingSchemaId, ExtensionData, VS_DARK_THEME, VS_LIGHT_THEME, VS_HC_THEME, VS_HC_LIGHT_THEME, TokenStyle, parseClassifierString, THEME_SCOPE_OPEN_PAREN, THEME_SCOPE_CLOSE_PAREN, THEME_SCOPE_WILDCARD, themeScopeRegex, SemanticTokenRule, getTokenClassificationRegistry } from './tokenClassificationRegistry.js';
|
|
3
3
|
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';
|
|
4
4
|
import { Color } from 'monaco-editor/esm/vs/base/common/color.js';
|
|
@@ -14,7 +14,6 @@ import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform
|
|
|
14
14
|
import { getIconRegistry, iconsSchemaId, IconFontDefinition } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
|
|
15
15
|
import { Extensions as Extensions$1 } from 'monaco-editor/esm/vs/platform/jsonschemas/common/jsonContributionRegistry.js';
|
|
16
16
|
import { createStyleSheet, asCSSUrl } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
17
|
-
import { IWorkbenchLayoutService } from './layoutService.js';
|
|
18
17
|
import { ExtensionsRegistry } from './extensionsRegistry.js';
|
|
19
18
|
import { Extensions } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
20
19
|
import { isWeb } from 'monaco-editor/esm/vs/base/common/platform.js';
|
package/package.json
CHANGED
package/dist/layout.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Emitter } from './polyfill.js';
|
|
2
|
-
import { IWorkbenchLayoutService } from './layoutService.js';
|
|
3
|
-
import { ILayoutService } from 'monaco-editor/esm/vs/platform/layout/browser/layoutService.js';
|
|
4
|
-
import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
|
5
|
-
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
6
|
-
import { getClientArea } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
7
|
-
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
8
|
-
import { ICodeEditorService } from 'monaco-editor/esm/vs/editor/browser/services/codeEditorService.js';
|
|
9
|
-
class LayoutService {
|
|
10
|
-
constructor(container) {
|
|
11
|
-
this.container = container;
|
|
12
|
-
this.onDidChangePartVisibility = Event.None;
|
|
13
|
-
this.offset = { top: 0, quickPickTop: 0 };
|
|
14
|
-
this._onDidLayout = new Emitter();
|
|
15
|
-
this.onDidLayout = this._onDidLayout.event;
|
|
16
|
-
window.addEventListener('resize', () => this.layout());
|
|
17
|
-
this.layout();
|
|
18
|
-
}
|
|
19
|
-
isVisible() {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
get dimension() { return this._dimension; }
|
|
23
|
-
layout() {
|
|
24
|
-
this._dimension = getClientArea(window.document.body);
|
|
25
|
-
this._onDidLayout.fire(this._dimension);
|
|
26
|
-
}
|
|
27
|
-
get hasContainer() {
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
focus() {
|
|
31
|
-
StandaloneServices.get(ICodeEditorService).getFocusedCodeEditor()?.focus();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
function getServiceOverride(container = document.body) {
|
|
35
|
-
container.classList.add('monaco-workbench');
|
|
36
|
-
return {
|
|
37
|
-
[( ILayoutService.toString())]: new SyncDescriptor(LayoutService, [container]),
|
|
38
|
-
[( IWorkbenchLayoutService.toString())]: new SyncDescriptor(LayoutService, [container])
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
export { getServiceOverride };
|
package/dist/layoutService.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { refineServiceDecorator } from './polyfill.js';
|
|
2
|
-
import { ILayoutService } from 'monaco-editor/esm/vs/platform/layout/browser/layoutService.js';
|
|
3
|
-
const IWorkbenchLayoutService = refineServiceDecorator(ILayoutService);
|
|
4
|
-
function positionToString(position) {
|
|
5
|
-
switch (position) {
|
|
6
|
-
case 0 : return 'left';
|
|
7
|
-
case 1 : return 'right';
|
|
8
|
-
case 2 : return 'bottom';
|
|
9
|
-
default: return 'bottom';
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export { IWorkbenchLayoutService, positionToString };
|