@codingame/monaco-vscode-api 1.82.1 → 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
package/README.md
CHANGED
|
@@ -187,6 +187,8 @@ Additionally, 25 packages that include the vscode version of some services (with
|
|
|
187
187
|
This library exports a `vscode-ext-host-server` bin to start the remote agent
|
|
188
188
|
- **Accessibility**: `@codingame/monaco-vscode-accessibility-service-override`
|
|
189
189
|
- Register accessibility helpers
|
|
190
|
+
- **Workspace trust**: `@codingame/monaco-vscode-workspace-trust-service-override`
|
|
191
|
+
- Ask user it they trust the current workspace, disable some features if not
|
|
190
192
|
Usage:
|
|
191
193
|
|
|
192
194
|
```typescript
|
package/missing-services.js
CHANGED
|
@@ -168,6 +168,8 @@ import { IAiEmbeddingVectorService } from './vscode/src/vs/workbench/services/ai
|
|
|
168
168
|
import { ResourceSet } from 'monaco-editor/esm/vs/base/common/map.js';
|
|
169
169
|
import { ISignService } from './vscode/src/vs/platform/sign/common/sign.js';
|
|
170
170
|
import { BrowserHostService } from './vscode/src/vs/workbench/services/host/browser/browserHostService.js';
|
|
171
|
+
import { IBannerService } from './vscode/src/vs/workbench/services/banner/browser/bannerService.js';
|
|
172
|
+
import { ITitleService } from './vscode/src/vs/workbench/services/title/common/titleService.js';
|
|
171
173
|
import { unsupported } from './tools.js';
|
|
172
174
|
import { IFileDialogService } from './vscode/src/vs/platform/dialogs/common/dialogs.js';
|
|
173
175
|
var _a;
|
|
@@ -386,6 +388,21 @@ class EmptyEditorGroupsService {
|
|
|
386
388
|
get sideGroup() { return unsupported(); }
|
|
387
389
|
}
|
|
388
390
|
registerSingleton(IEditorGroupsService, EmptyEditorGroupsService, 0 );
|
|
391
|
+
registerSingleton(IBannerService, class BannerService {
|
|
392
|
+
focus() { }
|
|
393
|
+
focusNextAction() { }
|
|
394
|
+
focusPreviousAction() { }
|
|
395
|
+
hide() { }
|
|
396
|
+
show() { }
|
|
397
|
+
}, 0 );
|
|
398
|
+
registerSingleton(ITitleService, class TitleService {
|
|
399
|
+
constructor() {
|
|
400
|
+
this.onMenubarVisibilityChange = Event.None;
|
|
401
|
+
this.isCommandCenterVisible = false;
|
|
402
|
+
this.onDidChangeCommandCenterVisibility = Event.None;
|
|
403
|
+
}
|
|
404
|
+
updateProperties() { }
|
|
405
|
+
}, 0 );
|
|
389
406
|
registerSingleton(IWorkingCopyFileService, WorkingCopyFileService, 0 );
|
|
390
407
|
registerSingleton(IPathService, BrowserPathService, 1 );
|
|
391
408
|
registerSingleton(IProductService, class ProductService {
|