@codingame/monaco-vscode-api 1.82.2 → 1.82.3
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 -0
- package/missing-services.js +17 -0
- package/monaco-editor-treemending.patch +551 -551
- package/package.json +1 -1
- package/service-override/quickaccess.js +1 -1
- package/service-override/tools/editor.d.ts +1 -1
- package/service-override/views.js +10 -0
- package/service-override/workspaceTrust.d.ts +5 -0
- package/service-override/workspaceTrust.js +13 -0
- package/services.d.ts +3 -0
- package/services.js +3 -0
- package/vscode/src/vs/base/common/htmlContent.d.ts +23 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +16 -1
- package/vscode/src/vs/platform/opener/browser/link.d.ts +8 -0
- package/vscode/src/vs/platform/workspace/common/workspaceTrust.d.ts +34 -1
- package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.js +228 -0
- package/vscode/src/vs/workbench/browser/parts/banner/media/bannerpart.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +21 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/commandCenterControl.js +134 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.js +365 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +216 -0
- package/vscode/src/vs/workbench/common/contextkeys.js +2 -1
- package/vscode/src/vs/workbench/common/theme.js +6 -6
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +2 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferences.contribution.js +108 -4
- package/vscode/src/vs/workbench/contrib/workspace/browser/media/workspaceTrustEditor.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/workspace/browser/workspace.contribution.js +842 -0
- package/vscode/src/vs/workbench/contrib/workspace/browser/workspaceTrustEditor.js +1047 -0
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +14 -0
- package/vscode/src/vs/workbench/services/banner/browser/bannerService.d.ts +25 -0
- package/vscode/src/vs/workbench/services/banner/browser/bannerService.js +3 -0
- package/vscode/src/vs/workbench/services/title/common/titleService.d.ts +31 -0
- package/vscode/src/vs/workbench/services/title/common/titleService.js +3 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -1
- package/vscode/src/vs/workbench/services/workspaces/browser/workspaceTrustEditorInput.js +27 -0
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +649 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
2
|
+
import { RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
3
|
+
const WorkspaceTrustContext = {
|
|
4
|
+
IsEnabled: ( new RawContextKey('isWorkspaceTrustEnabled', false, ( localize(
|
|
5
|
+
'workspaceTrustEnabledCtx',
|
|
6
|
+
"Whether the workspace trust feature is enabled."
|
|
7
|
+
)))),
|
|
8
|
+
IsTrusted: ( new RawContextKey('isWorkspaceTrusted', false, ( localize(
|
|
9
|
+
'workspaceTrustedCtx',
|
|
10
|
+
"Whether the current workspace has been trusted by the user."
|
|
11
|
+
))))
|
|
12
|
+
};
|
|
13
|
+
const MANAGE_TRUST_COMMAND_ID = 'workbench.trust.manage';
|
|
14
|
+
export { MANAGE_TRUST_COMMAND_ID, WorkspaceTrustContext };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ServiceIdentifier } from '../../../../platform/instantiation/common/instantiation.js';
|
|
2
|
+
import { MarkdownString } from '../../../../base/common/htmlContent.js';
|
|
3
|
+
import { URI } from '../../../../base/common/uri.js';
|
|
4
|
+
import { ILinkDescriptor } from '../../../../platform/opener/browser/link.js';
|
|
5
|
+
import { ThemeIcon } from '../../../../base/common/themables.js';
|
|
6
|
+
|
|
7
|
+
interface IBannerItem {
|
|
8
|
+
readonly id: string;
|
|
9
|
+
readonly icon: ThemeIcon | URI | undefined;
|
|
10
|
+
readonly message: string | MarkdownString;
|
|
11
|
+
readonly actions?: ILinkDescriptor[];
|
|
12
|
+
readonly ariaLabel?: string;
|
|
13
|
+
readonly onClose?: () => void;
|
|
14
|
+
}
|
|
15
|
+
declare const IBannerService: ServiceIdentifier<IBannerService>;
|
|
16
|
+
interface IBannerService {
|
|
17
|
+
readonly _serviceBrand: undefined;
|
|
18
|
+
focus(): void;
|
|
19
|
+
focusNextAction(): void;
|
|
20
|
+
focusPreviousAction(): void;
|
|
21
|
+
hide(id: string): void;
|
|
22
|
+
show(item: IBannerItem): void;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { type IBannerItem, IBannerService };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ServiceIdentifier } from '../../../../platform/instantiation/common/instantiation.js';
|
|
2
|
+
import { Event } from '../../../../base/common/event.js';
|
|
3
|
+
|
|
4
|
+
interface ITitleProperties {
|
|
5
|
+
isPure?: boolean;
|
|
6
|
+
isAdmin?: boolean;
|
|
7
|
+
prefix?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare const ITitleService: ServiceIdentifier<ITitleService>;
|
|
11
|
+
interface ITitleService {
|
|
12
|
+
readonly _serviceBrand: undefined;
|
|
13
|
+
/**
|
|
14
|
+
* An event when the menubar visibility changes.
|
|
15
|
+
*/
|
|
16
|
+
readonly onMenubarVisibilityChange: Event<boolean>;
|
|
17
|
+
/**
|
|
18
|
+
* Title menu is visible
|
|
19
|
+
*/
|
|
20
|
+
readonly isCommandCenterVisible: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* An event when the title menu is enabled/disabled
|
|
23
|
+
*/
|
|
24
|
+
readonly onDidChangeCommandCenterVisibility: Event<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Update some environmental title properties.
|
|
27
|
+
*/
|
|
28
|
+
updateProperties(properties: ITitleProperties): void;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { type ITitleProperties, ITitleService };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
2
2
|
import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
3
|
+
import { RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
3
4
|
import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
|
|
4
5
|
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
5
6
|
const IUserDataProfileService = ( createDecorator('IUserDataProfileService'));
|
|
6
7
|
const IUserDataProfileImportExportService = ( createDecorator('IUserDataProfileImportExportService'));
|
|
7
8
|
const defaultUserDataProfileIcon = registerIcon('defaultProfile-icon', Codicon.settings, ( localize('defaultProfileIcon', 'Icon for Default Profile.')));
|
|
8
|
-
|
|
9
|
+
const CURRENT_PROFILE_CONTEXT = ( new RawContextKey('currentProfile', ''));
|
|
10
|
+
export { CURRENT_PROFILE_CONTEXT, IUserDataProfileImportExportService, IUserDataProfileService, defaultUserDataProfileIcon };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
|
|
2
|
+
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
3
|
+
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
4
|
+
import { EditorInput } from '../../../common/editor/editorInput.js';
|
|
5
|
+
class WorkspaceTrustEditorInput extends EditorInput {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.resource = ( URI.from({
|
|
9
|
+
scheme: Schemas.vscodeWorkspaceTrust,
|
|
10
|
+
path: `workspaceTrustEditor`
|
|
11
|
+
}));
|
|
12
|
+
}
|
|
13
|
+
static { this.ID = 'workbench.input.workspaceTrust'; }
|
|
14
|
+
get capabilities() {
|
|
15
|
+
return 2 | 8 ;
|
|
16
|
+
}
|
|
17
|
+
get typeId() {
|
|
18
|
+
return WorkspaceTrustEditorInput.ID;
|
|
19
|
+
}
|
|
20
|
+
matches(otherInput) {
|
|
21
|
+
return super.matches(otherInput) || otherInput instanceof WorkspaceTrustEditorInput;
|
|
22
|
+
}
|
|
23
|
+
getName() {
|
|
24
|
+
return ( localize('workspaceTrustEditorInputName', "Workspace Trust"));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export { WorkspaceTrustEditorInput };
|