@codingame/monaco-vscode-api 4.5.0-improve-code-splitting.1 → 4.5.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 +2 -8
- package/editor.api.d.ts +8 -0
- package/localExtensionHost.d.ts +41 -0
- package/package.json +10 -8
- package/service-override/accessibility.d.ts +5 -0
- package/service-override/ai.d.ts +5 -0
- package/service-override/authentication.d.ts +5 -0
- package/service-override/base.d.ts +5 -0
- package/service-override/bulkEdit.d.ts +5 -0
- package/service-override/chat.d.ts +5 -0
- package/service-override/comments.d.ts +5 -0
- package/service-override/configuration.d.ts +31 -0
- package/service-override/debug.d.ts +5 -0
- package/service-override/dialogs.d.ts +12 -0
- package/service-override/editSessions.d.ts +5 -0
- package/service-override/editor.d.ts +10 -0
- package/service-override/emmet.d.ts +5 -0
- package/service-override/environment.d.ts +10 -0
- package/service-override/explorer.d.ts +5 -0
- package/service-override/extensionGallery.d.ts +12 -0
- package/service-override/extensions.d.ts +43 -0
- package/service-override/files.d.ts +164 -0
- package/service-override/host.d.ts +5 -0
- package/service-override/interactive.d.ts +5 -0
- package/service-override/issue.d.ts +5 -0
- package/service-override/keybindings.d.ts +21 -0
- package/service-override/languageDetectionWorker.d.ts +5 -0
- package/service-override/languages.d.ts +6 -0
- package/service-override/layout.d.ts +128 -0
- package/service-override/lifecycle.d.ts +5 -0
- package/service-override/localization.d.ts +14 -0
- package/service-override/log.d.ts +14 -0
- package/service-override/markers.d.ts +5 -0
- package/service-override/model.d.ts +5 -0
- package/service-override/monarch.d.ts +5 -0
- package/service-override/multiDiffEditor.d.ts +5 -0
- package/service-override/notebook.d.ts +5 -0
- package/service-override/notifications.d.ts +5 -0
- package/service-override/outline.d.ts +5 -0
- package/service-override/output.d.ts +10 -0
- package/service-override/performance.d.ts +5 -0
- package/service-override/preferences.d.ts +5 -0
- package/service-override/quickaccess.d.ts +11 -0
- package/service-override/relauncher.d.ts +5 -0
- package/service-override/remoteAgent.d.ts +12 -0
- package/service-override/scm.d.ts +5 -0
- package/service-override/search.d.ts +12 -0
- package/service-override/secretStorage.d.ts +5 -0
- package/service-override/share.d.ts +5 -0
- package/service-override/snippets.d.ts +9 -0
- package/service-override/speech.d.ts +5 -0
- package/service-override/storage.d.ts +66 -0
- package/service-override/survey.d.ts +5 -0
- package/service-override/task.d.ts +5 -0
- package/service-override/terminal.d.ts +71 -0
- package/service-override/testing.d.ts +5 -0
- package/service-override/textmate.d.ts +6 -0
- package/service-override/theme.d.ts +7 -0
- package/service-override/timeline.d.ts +5 -0
- package/service-override/update.d.ts +5 -0
- package/service-override/userDataSync.d.ts +5 -0
- package/service-override/viewBanner.d.ts +6 -0
- package/service-override/viewCommon.d.ts +6 -0
- package/service-override/viewStatusBar.d.ts +6 -0
- package/service-override/viewTitleBar.d.ts +5 -0
- package/service-override/views.d.ts +47 -0
- package/service-override/walkthrough.d.ts +5 -0
- package/service-override/welcome.d.ts +5 -0
- package/service-override/workbench.d.ts +18 -0
- package/service-override/workingCopy.d.ts +5 -0
- package/service-override/workspaceTrust.d.ts +5 -0
- package/services.js +0 -1
- package/vscode/src/vs/base/browser/indexedDB.d.ts +17 -0
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +62 -0
- package/vscode/src/vs/base/common/worker/simpleWorker.js +2 -6
- package/vscode/src/vs/editor/common/languages/nullTokenize.js +1 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +17 -1
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +73 -0
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.d.ts +43 -0
- package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.d.ts +48 -0
- package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.d.ts +59 -0
- package/vscode/src/vs/platform/remote/common/remoteExtensionsScanner.service.d.ts +13 -0
- package/vscode/src/vs/workbench/browser/dnd.d.ts +14 -0
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +61 -0
- package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.d.ts +46 -0
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.d.ts +21 -0
- package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +89 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.d.ts +108 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +138 -0
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +35 -0
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +48 -0
- package/vscode/src/vs/workbench/browser/workbench.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +795 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +149 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +168 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +238 -0
- package/vscode/src/vs/workbench/services/activity/browser/activityService.d.ts +28 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +53 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +106 -0
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.d.ts +45 -0
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.d.ts +11 -0
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +162 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts +18 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManagers.d.ts +39 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProxy.d.ts +17 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.service.d.ts +20 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.d.ts +45 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.d.ts +17 -0
- package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.d.ts +6 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +50 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.service.d.ts +40 -0
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.d.ts +185 -0
- package/vscode/src/vs/workbench/services/storage/browser/storageService.d.ts +41 -0
- package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeature.service.d.ts +11 -0
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.d.ts +11 -0
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.service.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +0 -503
- package/vscode/src/vs/workbench/services/textMate/common/TMHelper.js +0 -107
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IEditorOverrideServices } from '../vscode/src/vs/editor/standalone/browser/standaloneServices.js';
|
|
2
|
+
import { IWorkbenchOptions } from '../vscode/src/vs/workbench/browser/workbench.js';
|
|
3
|
+
export { CustomViewOption, EditorPane, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
|
|
4
|
+
export { IViewContainerDescriptor, IViewDescriptor, ViewContainer, ViewContainerLocation } from '../vscode/src/vs/workbench/common/views.js';
|
|
5
|
+
export { ViewPaneContainer } from '../vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js';
|
|
6
|
+
export { EditorInput, IEditorCloseHandler } from '../vscode/src/vs/workbench/common/editor/editorInput.js';
|
|
7
|
+
export { ConfirmResult } from '../vscode/src/vs/platform/dialogs/common/dialogs.js';
|
|
8
|
+
export { EditorInputFactoryObject, RegisteredEditorInfo, RegisteredEditorOptions, RegisteredEditorPriority } from '../vscode/src/vs/workbench/services/editor/common/editorResolverService.js';
|
|
9
|
+
export { AbstractResourceEditorInput } from '../vscode/src/vs/workbench/common/editor/resourceEditorInput.js';
|
|
10
|
+
export { AbstractTextResourceEditorInput } from '../vscode/src/vs/workbench/common/editor/textResourceEditorInput.js';
|
|
11
|
+
export { EditorInputCapabilities, IEditorSerializer } from '../vscode/src/vs/workbench/common/editor.js';
|
|
12
|
+
export { Parts } from '../vscode/src/vs/workbench/services/layout/browser/layoutService.js';
|
|
13
|
+
export { IView, SplitView } from '../vscode/src/vs/base/browser/ui/splitview/splitview.js';
|
|
14
|
+
export { DomScrollableElement } from '../vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js';
|
|
15
|
+
|
|
16
|
+
declare function getServiceOverride(options?: IWorkbenchOptions, _webviewIframeAlternateDomains?: string): IEditorOverrideServices;
|
|
17
|
+
|
|
18
|
+
export { getServiceOverride as default };
|
package/services.js
CHANGED
|
@@ -7,7 +7,6 @@ import './vscode/src/vs/workbench/contrib/codeEditor/browser/workbenchReferenceS
|
|
|
7
7
|
import './vscode/src/vs/workbench/contrib/codeEditor/browser/menuPreventer.js';
|
|
8
8
|
import './vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js';
|
|
9
9
|
import './vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js';
|
|
10
|
-
import './vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js';
|
|
11
10
|
import './vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js';
|
|
12
11
|
import './vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js';
|
|
13
12
|
import './vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare class IndexedDB {
|
|
2
|
+
private readonly name;
|
|
3
|
+
static create(name: string, version: number | undefined, stores: string[]): Promise<IndexedDB>;
|
|
4
|
+
private static openDatabase;
|
|
5
|
+
private static doOpenDatabase;
|
|
6
|
+
private static deleteDatabase;
|
|
7
|
+
private database;
|
|
8
|
+
private readonly pendingTransactions;
|
|
9
|
+
constructor(database: IDBDatabase, name: string);
|
|
10
|
+
hasPendingTransactions(): boolean;
|
|
11
|
+
close(): void;
|
|
12
|
+
runInTransaction<T>(store: string, transactionMode: IDBTransactionMode, dbRequestFn: (store: IDBObjectStore) => IDBRequest<T>[]): Promise<T[]>;
|
|
13
|
+
runInTransaction<T>(store: string, transactionMode: IDBTransactionMode, dbRequestFn: (store: IDBObjectStore) => IDBRequest<T>): Promise<T>;
|
|
14
|
+
getKeyValues<V>(store: string, isValid: (value: unknown) => value is V): Promise<Map<string, V>>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { IndexedDB };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Event } from '../../../common/event.js';
|
|
2
|
+
import { IContextMenuProvider } from '../../contextmenu.js';
|
|
3
|
+
import { ActionBar, ActionsOrientation, IActionViewItemProvider } from '../actionbar/actionbar.js';
|
|
4
|
+
import { AnchorAlignment } from '../contextview/contextview.js';
|
|
5
|
+
import { IActionRunner, IAction } from '../../../common/actions.js';
|
|
6
|
+
import { ThemeIcon } from '../../../common/themables.js';
|
|
7
|
+
import { ResolvedKeybinding } from '../../../common/keybindings.js';
|
|
8
|
+
import { Disposable } from '../../../common/lifecycle.js';
|
|
9
|
+
import { IHoverDelegate } from '../hover/hoverDelegate.js';
|
|
10
|
+
|
|
11
|
+
interface IToolBarOptions {
|
|
12
|
+
orientation?: ActionsOrientation;
|
|
13
|
+
actionViewItemProvider?: IActionViewItemProvider;
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
getKeyBinding?: (action: IAction) => ResolvedKeybinding | undefined;
|
|
16
|
+
actionRunner?: IActionRunner;
|
|
17
|
+
toggleMenuTitle?: string;
|
|
18
|
+
anchorAlignmentProvider?: () => AnchorAlignment;
|
|
19
|
+
renderDropdownAsChildElement?: boolean;
|
|
20
|
+
moreIcon?: ThemeIcon;
|
|
21
|
+
allowContextMenu?: boolean;
|
|
22
|
+
skipTelemetry?: boolean;
|
|
23
|
+
hoverDelegate?: IHoverDelegate;
|
|
24
|
+
/**
|
|
25
|
+
* If true, toggled primary items are highlighted with a background color.
|
|
26
|
+
*/
|
|
27
|
+
highlightToggledItems?: boolean;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* A widget that combines an action bar for primary actions and a dropdown for secondary actions.
|
|
31
|
+
*/
|
|
32
|
+
declare class ToolBar extends Disposable {
|
|
33
|
+
private options;
|
|
34
|
+
protected readonly actionBar: ActionBar;
|
|
35
|
+
private toggleMenuAction;
|
|
36
|
+
private toggleMenuActionViewItem;
|
|
37
|
+
private submenuActionViewItems;
|
|
38
|
+
private hasSecondaryActions;
|
|
39
|
+
private readonly lookupKeybindings;
|
|
40
|
+
private readonly element;
|
|
41
|
+
private _onDidChangeDropdownVisibility;
|
|
42
|
+
readonly onDidChangeDropdownVisibility: Event<boolean>;
|
|
43
|
+
private disposables;
|
|
44
|
+
constructor(container: HTMLElement, contextMenuProvider: IContextMenuProvider, options?: IToolBarOptions);
|
|
45
|
+
set actionRunner(actionRunner: IActionRunner);
|
|
46
|
+
get actionRunner(): IActionRunner;
|
|
47
|
+
set context(context: unknown);
|
|
48
|
+
getElement(): HTMLElement;
|
|
49
|
+
focus(): void;
|
|
50
|
+
getItemsWidth(): number;
|
|
51
|
+
getItemAction(indexOrElement: number | HTMLElement): IAction | undefined;
|
|
52
|
+
getItemWidth(index: number): number;
|
|
53
|
+
getItemsLength(): number;
|
|
54
|
+
setAriaLabel(label: string): void;
|
|
55
|
+
setActions(primaryActions: ReadonlyArray<IAction>, secondaryActions?: ReadonlyArray<IAction>): void;
|
|
56
|
+
isEmpty(): boolean;
|
|
57
|
+
private getKeybindingLabel;
|
|
58
|
+
private clear;
|
|
59
|
+
dispose(): void;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { type IToolBarOptions, ToolBar };
|
|
@@ -234,11 +234,7 @@ class SimpleWorkerClient extends Disposable {
|
|
|
234
234
|
}));
|
|
235
235
|
this._protocol.setWorkerId(this._worker.getId());
|
|
236
236
|
let loaderConfiguration = null;
|
|
237
|
-
|
|
238
|
-
if (typeof globalRequire !== 'undefined' && typeof globalRequire.getConfig === 'function') {
|
|
239
|
-
loaderConfiguration = globalRequire.getConfig();
|
|
240
|
-
}
|
|
241
|
-
else if (typeof globalThis.requirejs !== 'undefined') {
|
|
237
|
+
if (typeof globalThis.requirejs !== 'undefined') {
|
|
242
238
|
loaderConfiguration = globalThis.requirejs.s.contexts._.config;
|
|
243
239
|
}
|
|
244
240
|
const hostMethods = getAllMethodNames(host);
|
|
@@ -389,7 +385,7 @@ class SimpleWorkerServer {
|
|
|
389
385
|
globalThis.require.config(loaderConfig);
|
|
390
386
|
}
|
|
391
387
|
return ( new Promise((resolve, reject) => {
|
|
392
|
-
const req =
|
|
388
|
+
const req = undefined;
|
|
393
389
|
req([moduleId], (module) => {
|
|
394
390
|
this._requestHandler = module.create(hostProxy);
|
|
395
391
|
if (!this._requestHandler) {
|
|
@@ -127,6 +127,14 @@ var AccessibilityHelpNLS;
|
|
|
127
127
|
"The command: Start inline chat is not currentlyt riggerable by a keybinding."
|
|
128
128
|
));
|
|
129
129
|
})(AccessibilityHelpNLS || (AccessibilityHelpNLS = {})));
|
|
130
|
+
var InspectTokensNLS;
|
|
131
|
+
( (function(InspectTokensNLS) {
|
|
132
|
+
InspectTokensNLS.inspectTokensAction = ( localizeWithPath(
|
|
133
|
+
'vs/editor/common/standaloneStrings',
|
|
134
|
+
'inspectTokens',
|
|
135
|
+
"Developer: Inspect Tokens"
|
|
136
|
+
));
|
|
137
|
+
})(InspectTokensNLS || (InspectTokensNLS = {})));
|
|
130
138
|
var StandaloneCodeEditorNLS;
|
|
131
139
|
( (function(StandaloneCodeEditorNLS) {
|
|
132
140
|
StandaloneCodeEditorNLS.editorViewAccessibleLabel = ( localizeWithPath(
|
|
@@ -140,6 +148,14 @@ var StandaloneCodeEditorNLS;
|
|
|
140
148
|
"Press Alt+F1 for Accessibility Options."
|
|
141
149
|
));
|
|
142
150
|
})(StandaloneCodeEditorNLS || (StandaloneCodeEditorNLS = {})));
|
|
151
|
+
var ToggleHighContrastNLS;
|
|
152
|
+
( (function(ToggleHighContrastNLS) {
|
|
153
|
+
ToggleHighContrastNLS.toggleHighContrast = ( localizeWithPath(
|
|
154
|
+
'vs/editor/common/standaloneStrings',
|
|
155
|
+
'toggleHighContrast',
|
|
156
|
+
"Toggle High Contrast Theme"
|
|
157
|
+
));
|
|
158
|
+
})(ToggleHighContrastNLS || (ToggleHighContrastNLS = {})));
|
|
143
159
|
var StandaloneServicesNLS;
|
|
144
160
|
( (function(StandaloneServicesNLS) {
|
|
145
161
|
StandaloneServicesNLS.bulkEditServiceSummary = ( localizeWithPath(
|
|
@@ -148,4 +164,4 @@ var StandaloneServicesNLS;
|
|
|
148
164
|
"Made {0} edits in {1} files"
|
|
149
165
|
));
|
|
150
166
|
})(StandaloneServicesNLS || (StandaloneServicesNLS = {})));
|
|
151
|
-
export { AccessibilityHelpNLS, StandaloneCodeEditorNLS, StandaloneServicesNLS };
|
|
167
|
+
export { AccessibilityHelpNLS, InspectTokensNLS, StandaloneCodeEditorNLS, StandaloneServicesNLS, ToggleHighContrastNLS };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ToolBar, IToolBarOptions } from '../../../base/browser/ui/toolbar/toolbar.js';
|
|
2
|
+
import { IAction } from '../../../base/common/actions.js';
|
|
3
|
+
import { MenuId, IMenuActionOptions } from '../common/actions.js';
|
|
4
|
+
import { IMenuService } from '../common/actions.service.js';
|
|
5
|
+
import { IContextKeyService } from '../../contextkey/common/contextkey.service.js';
|
|
6
|
+
import { IContextMenuService } from '../../contextview/browser/contextView.service.js';
|
|
7
|
+
import { IKeybindingService } from '../../keybinding/common/keybinding.service.js';
|
|
8
|
+
import { ITelemetryService } from '../../telemetry/common/telemetry.service.js';
|
|
9
|
+
|
|
10
|
+
declare const enum HiddenItemStrategy {
|
|
11
|
+
/** This toolbar doesn't support hiding*/
|
|
12
|
+
NoHide = -1,
|
|
13
|
+
/** Hidden items aren't shown anywhere */
|
|
14
|
+
Ignore = 0,
|
|
15
|
+
/** Hidden items move into the secondary group */
|
|
16
|
+
RenderInSecondaryGroup = 1
|
|
17
|
+
}
|
|
18
|
+
type IWorkbenchToolBarOptions = IToolBarOptions & {
|
|
19
|
+
/**
|
|
20
|
+
* Items of the primary group can be hidden. When this happens the item can
|
|
21
|
+
* - move into the secondary popup-menu, or
|
|
22
|
+
* - not be shown at all
|
|
23
|
+
*/
|
|
24
|
+
hiddenItemStrategy?: HiddenItemStrategy;
|
|
25
|
+
/**
|
|
26
|
+
* Optional menu id which is used for a "Reset Menu" command. This should be the
|
|
27
|
+
* menu id that defines the contents of this workbench menu
|
|
28
|
+
*/
|
|
29
|
+
resetMenu?: MenuId;
|
|
30
|
+
/**
|
|
31
|
+
* Optional menu id which items are used for the context menu of the toolbar.
|
|
32
|
+
*/
|
|
33
|
+
contextMenu?: MenuId;
|
|
34
|
+
/**
|
|
35
|
+
* Optional options how menu actions are created and invoked
|
|
36
|
+
*/
|
|
37
|
+
menuOptions?: IMenuActionOptions;
|
|
38
|
+
/**
|
|
39
|
+
* When set the `workbenchActionExecuted` is automatically send for each invoked action. The `from` property
|
|
40
|
+
* of the event will the passed `telemetrySource`-value
|
|
41
|
+
*/
|
|
42
|
+
telemetrySource?: string;
|
|
43
|
+
/** This is controlled by the WorkbenchToolBar */
|
|
44
|
+
allowContextMenu?: never;
|
|
45
|
+
/**
|
|
46
|
+
* Controls the overflow behavior of the primary group of toolbar. This isthe maximum number of items and id of
|
|
47
|
+
* items that should never overflow
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
overflowBehavior?: {
|
|
51
|
+
maxItems: number;
|
|
52
|
+
exempted?: string[];
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* The `WorkbenchToolBar` does
|
|
57
|
+
* - support hiding of menu items
|
|
58
|
+
* - lookup keybindings for each actions automatically
|
|
59
|
+
* - send `workbenchActionExecuted`-events for each action
|
|
60
|
+
*
|
|
61
|
+
* See {@link MenuWorkbenchToolBar} for a toolbar that is backed by a menu.
|
|
62
|
+
*/
|
|
63
|
+
declare class WorkbenchToolBar extends ToolBar {
|
|
64
|
+
private _options;
|
|
65
|
+
private readonly _menuService;
|
|
66
|
+
private readonly _contextKeyService;
|
|
67
|
+
private readonly _contextMenuService;
|
|
68
|
+
private readonly _sessionDisposables;
|
|
69
|
+
constructor(container: HTMLElement, _options: IWorkbenchToolBarOptions | undefined, _menuService: IMenuService, _contextKeyService: IContextKeyService, _contextMenuService: IContextMenuService, keybindingService: IKeybindingService, telemetryService: ITelemetryService);
|
|
70
|
+
setActions(_primary: readonly IAction[], _secondary?: readonly IAction[], menuIds?: readonly MenuId[]): void;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export { HiddenItemStrategy, type IWorkbenchToolBarOptions, WorkbenchToolBar };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { URI } from '../../../base/common/uri.js';
|
|
2
|
+
import { CancellationToken } from '../../../base/common/cancellation.js';
|
|
3
|
+
import { Event } from '../../../base/common/event.js';
|
|
4
|
+
import { IDisposable } from '../../../base/common/lifecycle.js';
|
|
5
|
+
import { ReadableStreamEvents } from '../../../base/common/stream.js';
|
|
6
|
+
import { IFileSystemProviderWithFileReadWriteCapability, IFileSystemProviderWithFileReadStreamCapability, FileSystemProviderCapabilities, IStat, FileType, IFileReadStreamOptions, IFileWriteOptions, IFileDeleteOptions, IFileOverwriteOptions, IWatchOptions } from '../common/files.js';
|
|
7
|
+
import { IndexedDB } from '../../../base/browser/indexedDB.js';
|
|
8
|
+
import { ILogService } from '../../log/common/log.service.js';
|
|
9
|
+
|
|
10
|
+
declare class HTMLFileSystemProvider implements IFileSystemProviderWithFileReadWriteCapability, IFileSystemProviderWithFileReadStreamCapability {
|
|
11
|
+
private indexedDB;
|
|
12
|
+
private readonly store;
|
|
13
|
+
private logService;
|
|
14
|
+
readonly onDidChangeCapabilities: Event<any>;
|
|
15
|
+
readonly onDidChangeFile: Event<any>;
|
|
16
|
+
private extUri;
|
|
17
|
+
private _capabilities;
|
|
18
|
+
get capabilities(): FileSystemProviderCapabilities;
|
|
19
|
+
constructor(indexedDB: IndexedDB | undefined, store: string, logService: ILogService);
|
|
20
|
+
stat(resource: URI): Promise<IStat>;
|
|
21
|
+
readdir(resource: URI): Promise<[string, FileType][]>;
|
|
22
|
+
readFileStream(resource: URI, opts: IFileReadStreamOptions, token: CancellationToken): ReadableStreamEvents<Uint8Array>;
|
|
23
|
+
readFile(resource: URI): Promise<Uint8Array>;
|
|
24
|
+
writeFile(resource: URI, content: Uint8Array, opts: IFileWriteOptions): Promise<void>;
|
|
25
|
+
mkdir(resource: URI): Promise<void>;
|
|
26
|
+
delete(resource: URI, opts: IFileDeleteOptions): Promise<void>;
|
|
27
|
+
rename(from: URI, to: URI, opts: IFileOverwriteOptions): Promise<void>;
|
|
28
|
+
watch(resource: URI, opts: IWatchOptions): IDisposable;
|
|
29
|
+
private readonly _files;
|
|
30
|
+
private readonly _directories;
|
|
31
|
+
registerFileHandle(handle: FileSystemFileHandle): Promise<URI>;
|
|
32
|
+
registerDirectoryHandle(handle: FileSystemDirectoryHandle): Promise<URI>;
|
|
33
|
+
get directories(): Iterable<FileSystemDirectoryHandle>;
|
|
34
|
+
private registerHandle;
|
|
35
|
+
getHandle(resource: URI): Promise<FileSystemHandle | undefined>;
|
|
36
|
+
private getFileHandle;
|
|
37
|
+
private getDirectoryHandle;
|
|
38
|
+
private doGetHandle;
|
|
39
|
+
private toFileSystemProviderError;
|
|
40
|
+
private createFileSystemProviderError;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { HTMLFileSystemProvider };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Event } from '../../../base/common/event.js';
|
|
2
|
+
import { Disposable, IDisposable } from '../../../base/common/lifecycle.js';
|
|
3
|
+
import { URI } from '../../../base/common/uri.js';
|
|
4
|
+
import { IFileSystemProviderWithFileReadWriteCapability, FileSystemProviderCapabilities, IFileChange, IWatchOptions, IStat, IFileWriteOptions, IFileOverwriteOptions, IFileDeleteOptions, FileType } from '../common/files.js';
|
|
5
|
+
import { IndexedDB } from '../../../base/browser/indexedDB.js';
|
|
6
|
+
|
|
7
|
+
type IndexedDBFileSystemProviderErrorData = {
|
|
8
|
+
readonly scheme: string;
|
|
9
|
+
readonly operation: string;
|
|
10
|
+
readonly code: string;
|
|
11
|
+
};
|
|
12
|
+
type DirEntry = [string, FileType];
|
|
13
|
+
declare class IndexedDBFileSystemProvider extends Disposable implements IFileSystemProviderWithFileReadWriteCapability {
|
|
14
|
+
readonly scheme: string;
|
|
15
|
+
private indexedDB;
|
|
16
|
+
private readonly store;
|
|
17
|
+
readonly capabilities: FileSystemProviderCapabilities;
|
|
18
|
+
readonly onDidChangeCapabilities: Event<void>;
|
|
19
|
+
private readonly extUri;
|
|
20
|
+
private readonly changesBroadcastChannel;
|
|
21
|
+
private readonly _onDidChangeFile;
|
|
22
|
+
readonly onDidChangeFile: Event<readonly IFileChange[]>;
|
|
23
|
+
private readonly _onReportError;
|
|
24
|
+
readonly onReportError: Event<IndexedDBFileSystemProviderErrorData>;
|
|
25
|
+
private readonly mtimes;
|
|
26
|
+
private cachedFiletree;
|
|
27
|
+
private writeManyThrottler;
|
|
28
|
+
constructor(scheme: string, indexedDB: IndexedDB, store: string, watchCrossWindowChanges: boolean);
|
|
29
|
+
watch(resource: URI, opts: IWatchOptions): IDisposable;
|
|
30
|
+
mkdir(resource: URI): Promise<void>;
|
|
31
|
+
stat(resource: URI): Promise<IStat>;
|
|
32
|
+
readdir(resource: URI): Promise<DirEntry[]>;
|
|
33
|
+
readFile(resource: URI): Promise<Uint8Array>;
|
|
34
|
+
writeFile(resource: URI, content: Uint8Array, opts: IFileWriteOptions): Promise<void>;
|
|
35
|
+
rename(from: URI, to: URI, opts: IFileOverwriteOptions): Promise<void>;
|
|
36
|
+
delete(resource: URI, opts: IFileDeleteOptions): Promise<void>;
|
|
37
|
+
private tree;
|
|
38
|
+
private triggerChanges;
|
|
39
|
+
private getFiletree;
|
|
40
|
+
private bulkWrite;
|
|
41
|
+
private fileWriteBatch;
|
|
42
|
+
private writeMany;
|
|
43
|
+
private deleteKeys;
|
|
44
|
+
reset(): Promise<void>;
|
|
45
|
+
private reportError;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { IndexedDBFileSystemProvider, type IndexedDBFileSystemProviderErrorData };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Event } from '../../../base/common/event.js';
|
|
2
|
+
import { Disposable, IDisposable } from '../../../base/common/lifecycle.js';
|
|
3
|
+
import { ReadableStreamEvents } from '../../../base/common/stream.js';
|
|
4
|
+
import { URI } from '../../../base/common/uri.js';
|
|
5
|
+
import { IFileSystemProviderWithFileReadWriteCapability, IFileSystemProviderWithOpenReadWriteCloseCapability, IFileSystemProviderWithFileReadStreamCapability, IFileSystemProviderWithFileAtomicReadCapability, IFileSystemProviderWithFileAtomicWriteCapability, IFileSystemProviderWithFileAtomicDeleteCapability, FileSystemProviderCapabilities, IStat, FileType, IFileWriteOptions, IFileOpenOptions, IFileOverwriteOptions, IFileDeleteOptions, IFileChange, IWatchOptions } from './files.js';
|
|
6
|
+
|
|
7
|
+
declare class File implements IStat {
|
|
8
|
+
readonly type: FileType.File;
|
|
9
|
+
readonly ctime: number;
|
|
10
|
+
mtime: number;
|
|
11
|
+
size: number;
|
|
12
|
+
name: string;
|
|
13
|
+
data?: Uint8Array;
|
|
14
|
+
constructor(name: string);
|
|
15
|
+
}
|
|
16
|
+
declare class Directory implements IStat {
|
|
17
|
+
readonly type: FileType.Directory;
|
|
18
|
+
readonly ctime: number;
|
|
19
|
+
mtime: number;
|
|
20
|
+
size: number;
|
|
21
|
+
name: string;
|
|
22
|
+
readonly entries: Map<string, File | Directory>;
|
|
23
|
+
constructor(name: string);
|
|
24
|
+
}
|
|
25
|
+
declare class InMemoryFileSystemProvider extends Disposable implements IFileSystemProviderWithFileReadWriteCapability, IFileSystemProviderWithOpenReadWriteCloseCapability, IFileSystemProviderWithFileReadStreamCapability, IFileSystemProviderWithFileAtomicReadCapability, IFileSystemProviderWithFileAtomicWriteCapability, IFileSystemProviderWithFileAtomicDeleteCapability {
|
|
26
|
+
private memoryFdCounter;
|
|
27
|
+
private readonly fdMemory;
|
|
28
|
+
private _onDidChangeCapabilities;
|
|
29
|
+
readonly onDidChangeCapabilities: Event<void>;
|
|
30
|
+
private _capabilities;
|
|
31
|
+
get capabilities(): FileSystemProviderCapabilities;
|
|
32
|
+
setReadOnly(readonly: boolean): void;
|
|
33
|
+
root: Directory;
|
|
34
|
+
stat(resource: URI): Promise<IStat>;
|
|
35
|
+
readdir(resource: URI): Promise<[string, FileType][]>;
|
|
36
|
+
readFile(resource: URI): Promise<Uint8Array>;
|
|
37
|
+
readFileStream(resource: URI): ReadableStreamEvents<Uint8Array>;
|
|
38
|
+
writeFile(resource: URI, content: Uint8Array, opts: IFileWriteOptions): Promise<void>;
|
|
39
|
+
open(resource: URI, opts: IFileOpenOptions): Promise<number>;
|
|
40
|
+
close(fd: number): Promise<void>;
|
|
41
|
+
read(fd: number, pos: number, data: Uint8Array, offset: number, length: number): Promise<number>;
|
|
42
|
+
write(fd: number, pos: number, data: Uint8Array, offset: number, length: number): Promise<number>;
|
|
43
|
+
rename(from: URI, to: URI, opts: IFileOverwriteOptions): Promise<void>;
|
|
44
|
+
delete(resource: URI, opts: IFileDeleteOptions): Promise<void>;
|
|
45
|
+
mkdir(resource: URI): Promise<void>;
|
|
46
|
+
private _lookup;
|
|
47
|
+
private _lookupAsDirectory;
|
|
48
|
+
private _lookupAsFile;
|
|
49
|
+
private _lookupParentDirectory;
|
|
50
|
+
private readonly _onDidChangeFile;
|
|
51
|
+
readonly onDidChangeFile: Event<readonly IFileChange[]>;
|
|
52
|
+
private _bufferedChanges;
|
|
53
|
+
private _fireSoonHandle?;
|
|
54
|
+
watch(resource: URI, opts: IWatchOptions): IDisposable;
|
|
55
|
+
private _fireSoon;
|
|
56
|
+
dispose(): void;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { InMemoryFileSystemProvider };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ServiceIdentifier } from '../../instantiation/common/instantiation.js';
|
|
2
|
+
import { URI } from '../../../base/common/uri.js';
|
|
3
|
+
import { IExtensionDescription } from '../../extensions/common/extensions.js';
|
|
4
|
+
|
|
5
|
+
declare const IRemoteExtensionsScannerService: ServiceIdentifier<IRemoteExtensionsScannerService>;
|
|
6
|
+
interface IRemoteExtensionsScannerService {
|
|
7
|
+
readonly _serviceBrand: undefined;
|
|
8
|
+
whenExtensionsReady(): Promise<void>;
|
|
9
|
+
scanExtensions(): Promise<IExtensionDescription[]>;
|
|
10
|
+
scanSingleExtension(extensionLocation: URI, isBuiltin: boolean): Promise<IExtensionDescription | null>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { IRemoteExtensionsScannerService };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IDragAndDropData } from '../../base/browser/dnd.js';
|
|
2
|
+
import '../../editor/editor.api.js';
|
|
3
|
+
|
|
4
|
+
type Before2D = {
|
|
5
|
+
readonly verticallyBefore: boolean;
|
|
6
|
+
readonly horizontallyBefore: boolean;
|
|
7
|
+
};
|
|
8
|
+
interface ICompositeDragAndDrop {
|
|
9
|
+
drop(data: IDragAndDropData, target: string | undefined, originalEvent: DragEvent, before?: Before2D): void;
|
|
10
|
+
onDragOver(data: IDragAndDropData, target: string | undefined, originalEvent: DragEvent): boolean;
|
|
11
|
+
onDragEnter(data: IDragAndDropData, target: string | undefined, originalEvent: DragEvent): boolean;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type { Before2D, ICompositeDragAndDrop };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Part } from '../../part.js';
|
|
2
|
+
import { Parts } from '../../../services/layout/browser/layoutService.js';
|
|
3
|
+
import { IWorkbenchLayoutService } from '../../../services/layout/browser/layoutService.service.js';
|
|
4
|
+
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
5
|
+
import { IThemeService } from '../../../../platform/theme/common/themeService.service.js';
|
|
6
|
+
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.service.js';
|
|
7
|
+
import { IAction } from '../../../../base/common/actions.js';
|
|
8
|
+
import { IPaneCompositePart } from '../paneCompositePart.js';
|
|
9
|
+
import { PaneCompositeBar, IPaneCompositeBarOptions } from '../paneCompositeBar.js';
|
|
10
|
+
import { IStorageService } from '../../../../platform/storage/common/storage.service.js';
|
|
11
|
+
import { IMenuService } from '../../../../platform/actions/common/actions.service.js';
|
|
12
|
+
import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.service.js';
|
|
13
|
+
import { IViewDescriptorService } from '../../../common/views.service.js';
|
|
14
|
+
import { IExtensionService } from '../../../services/extensions/common/extensions.service.js';
|
|
15
|
+
import { IWorkbenchEnvironmentService } from '../../../services/environment/common/environmentService.service.js';
|
|
16
|
+
|
|
17
|
+
declare class ActivitybarPart extends Part {
|
|
18
|
+
private readonly paneCompositePart;
|
|
19
|
+
private readonly instantiationService;
|
|
20
|
+
static readonly ACTION_HEIGHT = 48;
|
|
21
|
+
static readonly pinnedViewContainersKey = "workbench.activity.pinnedViewlets2";
|
|
22
|
+
static readonly placeholderViewContainersKey = "workbench.activity.placeholderViewlets";
|
|
23
|
+
static readonly viewContainersWorkspaceStateKey = "workbench.activity.viewletsWorkspaceState";
|
|
24
|
+
readonly minimumWidth: number;
|
|
25
|
+
readonly maximumWidth: number;
|
|
26
|
+
readonly minimumHeight: number;
|
|
27
|
+
readonly maximumHeight: number;
|
|
28
|
+
private readonly compositeBar;
|
|
29
|
+
private content;
|
|
30
|
+
constructor(paneCompositePart: IPaneCompositePart, instantiationService: IInstantiationService, layoutService: IWorkbenchLayoutService, themeService: IThemeService, storageService: IStorageService);
|
|
31
|
+
private createCompositeBar;
|
|
32
|
+
protected createContentArea(parent: HTMLElement): HTMLElement;
|
|
33
|
+
getPinnedPaneCompositeIds(): string[];
|
|
34
|
+
getVisiblePaneCompositeIds(): string[];
|
|
35
|
+
focus(): void;
|
|
36
|
+
updateStyles(): void;
|
|
37
|
+
show(focus?: boolean): void;
|
|
38
|
+
hide(): void;
|
|
39
|
+
layout(width: number, height: number): void;
|
|
40
|
+
toJSON(): object;
|
|
41
|
+
}
|
|
42
|
+
declare class ActivityBarCompositeBar extends PaneCompositeBar {
|
|
43
|
+
private readonly configurationService;
|
|
44
|
+
private readonly menuService;
|
|
45
|
+
private element;
|
|
46
|
+
private menuBar;
|
|
47
|
+
private menuBarContainer;
|
|
48
|
+
private compositeBarContainer;
|
|
49
|
+
private readonly globalCompositeBar;
|
|
50
|
+
private readonly keyboardNavigationDisposables;
|
|
51
|
+
constructor(options: IPaneCompositeBarOptions, part: Parts, paneCompositePart: IPaneCompositePart, showGlobalActivities: boolean, instantiationService: IInstantiationService, storageService: IStorageService, extensionService: IExtensionService, viewDescriptorService: IViewDescriptorService, contextKeyService: IContextKeyService, environmentService: IWorkbenchEnvironmentService, configurationService: IConfigurationService, menuService: IMenuService, layoutService: IWorkbenchLayoutService);
|
|
52
|
+
private fillContextMenuActions;
|
|
53
|
+
private uninstallMenubar;
|
|
54
|
+
private installMenubar;
|
|
55
|
+
private registerKeyboardNavigationListeners;
|
|
56
|
+
create(parent: HTMLElement): HTMLElement;
|
|
57
|
+
layout(width: number, height: number): void;
|
|
58
|
+
getActivityBarContextMenuActions(): IAction[];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export { ActivityBarCompositeBar, ActivitybarPart };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Event } from '../../../../base/common/event.js';
|
|
2
|
+
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
3
|
+
import { IStorageService } from '../../../../platform/storage/common/storage.service.js';
|
|
4
|
+
import { IThemeService } from '../../../../platform/theme/common/themeService.service.js';
|
|
5
|
+
import { Part } from '../../part.js';
|
|
6
|
+
import { IWorkbenchLayoutService } from '../../../services/layout/browser/layoutService.service.js';
|
|
7
|
+
import { IBannerItem } from '../../../services/banner/browser/bannerService.js';
|
|
8
|
+
import { IBannerService } from '../../../services/banner/browser/bannerService.service.js';
|
|
9
|
+
import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.service.js';
|
|
10
|
+
|
|
11
|
+
declare class BannerPart extends Part implements IBannerService {
|
|
12
|
+
private readonly contextKeyService;
|
|
13
|
+
private readonly instantiationService;
|
|
14
|
+
readonly _serviceBrand: undefined;
|
|
15
|
+
readonly height: number;
|
|
16
|
+
readonly minimumWidth: number;
|
|
17
|
+
readonly maximumWidth: number;
|
|
18
|
+
get minimumHeight(): number;
|
|
19
|
+
get maximumHeight(): number;
|
|
20
|
+
private _onDidChangeSize;
|
|
21
|
+
get onDidChange(): Event<{
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
} | undefined>;
|
|
25
|
+
private item;
|
|
26
|
+
private readonly markdownRenderer;
|
|
27
|
+
private visible;
|
|
28
|
+
private actionBar;
|
|
29
|
+
private messageActionsContainer;
|
|
30
|
+
private focusedActionIndex;
|
|
31
|
+
constructor(themeService: IThemeService, layoutService: IWorkbenchLayoutService, storageService: IStorageService, contextKeyService: IContextKeyService, instantiationService: IInstantiationService);
|
|
32
|
+
protected createContentArea(parent: HTMLElement): HTMLElement;
|
|
33
|
+
private close;
|
|
34
|
+
private focusActionLink;
|
|
35
|
+
private getAriaLabel;
|
|
36
|
+
private getBannerMessage;
|
|
37
|
+
private setVisibility;
|
|
38
|
+
focus(): void;
|
|
39
|
+
focusNextAction(): void;
|
|
40
|
+
focusPreviousAction(): void;
|
|
41
|
+
hide(id: string): void;
|
|
42
|
+
show(item: IBannerItem): void;
|
|
43
|
+
toJSON(): object;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { BannerPart };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HoverPosition } from '../../../base/browser/ui/hover/hoverWidget.js';
|
|
2
|
+
import { Color } from '../../../base/common/color.js';
|
|
3
|
+
import '../../../editor/editor.api.js';
|
|
4
|
+
|
|
5
|
+
interface ICompositeBarColors {
|
|
6
|
+
readonly activeBackgroundColor?: Color;
|
|
7
|
+
readonly inactiveBackgroundColor?: Color;
|
|
8
|
+
readonly activeBorderColor?: Color;
|
|
9
|
+
readonly activeBackground?: Color;
|
|
10
|
+
readonly activeBorderBottomColor?: Color;
|
|
11
|
+
readonly activeForegroundColor?: Color;
|
|
12
|
+
readonly inactiveForegroundColor?: Color;
|
|
13
|
+
readonly badgeBackground?: Color;
|
|
14
|
+
readonly badgeForeground?: Color;
|
|
15
|
+
readonly dragAndDropBorder?: Color;
|
|
16
|
+
}
|
|
17
|
+
interface IActivityHoverOptions {
|
|
18
|
+
readonly position: () => HoverPosition;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type { IActivityHoverOptions, ICompositeBarColors };
|