Skip to content

Commit 2cb6fc5

Browse files
authored
Merge pull request #520 from conwnet/master
release 0.17.0
2 parents 6cd4e87 + 2ed7884 commit 2cb6fc5

File tree

10 files changed

+52
-22
lines changed

10 files changed

+52
-22
lines changed

.github/workflows/test-wtih-vscode-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
restore-keys: |
3636
${{ runner.os }}-yarn-${{ matrix.node-version }}
3737
38+
- run: sudo apt -y install libkrb5-dev
3839
- run: yarn --frozen-lockfile
3940
- run: yarn build:vscode
4041
- run: yarn yalc && yarn build

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"lib": "lib"
88
},
99
"devDependencies": {
10-
"@github1s/vscode-web": "0.11.0",
10+
"@github1s/vscode-web": "0.12.0",
1111
"@typescript-eslint/eslint-plugin": "^5.40.1",
1212
"@typescript-eslint/parser": "^5.40.1",
1313
"chokidar": "^3.5.3",

vscode-web/.VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.80.1
1+
1.81.1

vscode-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@github1s/vscode-web",
3-
"version": "0.11.0",
3+
"version": "0.12.0",
44
"description": "VS Code web for GitHub1s",
55
"author": "github1s",
66
"license": "MIT",

vscode-web/scripts/.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"vs/code/browser/workbench/workbench.ts": "f24fefa3aafa0e02360cd31aa5c65ac06f61fcba8a3c074c4ff451ae809ed362",
3-
"vs/editor/common/config/editorOptions.ts": "1c775bdf817b916ca151bf3364a59e7b8f559f022672d6cb46666ed829297f5c",
4-
"vs/workbench/browser/parts/activitybar/activitybarActions.ts": "aafb4182f380f52395d3ef43bdd6b9318f396f66e9ae22a5082ef6da0a33c2a8",
2+
"vs/code/browser/workbench/workbench.ts": "be140606a59a329584a67af7a8ec3d624ab71028ed3717a3d41bf368412beb4a",
3+
"vs/editor/common/config/editorOptions.ts": "648903f0306c733cb2df5c0b7c241a8b1423a46ea7f2b746ef879cd43992117a",
4+
"vs/workbench/browser/parts/activitybar/activitybarActions.ts": "a4813477aac947fc94d84f563143ef67370a9cf9c34a054741e051ec88f2eca2",
55
"vs/workbench/browser/parts/activitybar/activitybarPart.ts": "0a9ff35eaa2bf4ffaa22ecf362b070cf47d8a63fc9e7055a280b456150677a06",
66
"vs/workbench/browser/parts/titlebar/media/titlebarpart.css": "715607e6f7330e1137a4ddf7892c4846b40fe0d6c04a164d2b684eefa608846f",
7-
"vs/workbench/browser/web.main.ts": "9b904a551718648f2a78bd711e121fb08ed397ea9be0e4873654a100d782388a",
7+
"vs/workbench/browser/web.main.ts": "707d64b8fc7436e704fb1e6e06cddc6b48224c75c2617cc2175d7763906f1895",
88
"vs/workbench/contrib/files/browser/editors/fileEditorInput.ts": "d52aa1f962f1a0bdfc6d186762f6fa51c9aa35bb98667aead8d8e9ad75e45215",
9-
"vs/workbench/contrib/webview/browser/pre/index.html": "39b76b7cd7d79ca401e0aa7b0c9a1fa18ec620f1c6f868aaf17ff5351237e48b",
9+
"vs/workbench/contrib/webview/browser/pre/index.html": "110da74034afd7843b0939ed0e2aa8a8ce8f4288d0382f9b651913659d3eceaf",
1010
"vs/workbench/services/extensionManagement/browser/builtinExtensionsScannerService.ts": "b2c52e36c3d4122aa21b8f9a14fc9b14d45550f5a2251617e6d0e60685dde83c",
1111
"vs/workbench/services/label/common/labelService.ts": "73237cce0f9496151ea8ae5079676bbdfa15ce49de9b05621d39fcd04e9c1f0d",
1212
"vs/workbench/services/textfile/browser/textFileService.ts": "c9e7439cf0356c327c791e1c3ea911cf13399212e84d27f49e6c2bc8a983b861"

vscode-web/src/vs/editor/common/config/editorOptions.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ export interface IEditorOptions {
5858
* The aria label for the editor's textarea (when it is focused).
5959
*/
6060
ariaLabel?: string;
61+
62+
/**
63+
* Whether the aria-required attribute should be set on the editors textarea.
64+
*/
65+
ariaRequired?: boolean;
6166
/**
6267
* Control whether a screen reader announces inline suggestion content immediately.
6368
*/
@@ -822,6 +827,11 @@ export interface IDiffEditorBaseOptions {
822827
* Defaults to false
823828
*/
824829
isInEmbeddedEditor?: boolean;
830+
831+
/**
832+
* If the diff editor should only show the difference review mode.
833+
*/
834+
onlyShowAccessibleDiffViewer?: boolean;
825835
}
826836

827837
/**
@@ -4972,6 +4982,7 @@ export const enum EditorOption {
49724982
accessibilitySupport,
49734983
accessibilityPageSize,
49744984
ariaLabel,
4985+
ariaRequired,
49754986
autoClosingBrackets,
49764987
screenReaderAnnounceInlineSuggestion,
49774988
autoClosingDelete,
@@ -5142,6 +5153,9 @@ export const EditorOptions = {
51425153
ariaLabel: register(new EditorStringOption(
51435154
EditorOption.ariaLabel, 'ariaLabel', nls.localize('editorViewAccessibleLabel', "Editor content")
51445155
)),
5156+
ariaRequired: register(new EditorBooleanOption(
5157+
EditorOption.ariaRequired, 'ariaRequired', false, undefined
5158+
)),
51455159
screenReaderAnnounceInlineSuggestion: register(new EditorBooleanOption(
51465160
EditorOption.screenReaderAnnounceInlineSuggestion, 'screenReaderAnnounceInlineSuggestion', true,
51475161
{

vscode-web/src/vs/workbench/browser/parts/activitybar/activitybarActions.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { EventType, addDisposableListener, EventHelper, append, $, clearNode, hi
99
import { StandardKeyboardEvent } from 'vs/base/browser/keyboardEvent';
1010
import { EventType as TouchEventType, GestureEvent } from 'vs/base/browser/touch';
1111
import { Action, IAction, Separator, SubmenuAction, toAction } from 'vs/base/common/actions';
12-
import { Event } from 'vs/base/common/event';
1312
import { KeyCode } from 'vs/base/common/keyCodes';
1413
import { DisposableStore } from 'vs/base/common/lifecycle';
1514
import { IMenuService, MenuId, IMenu, registerAction2, Action2, IAction2Options } from 'vs/platform/actions/common/actions';
@@ -41,6 +40,7 @@ import { ICredentialsService } from 'vs/platform/credentials/common/credentials'
4140
import { IUserDataProfileService } from 'vs/workbench/services/userDataProfile/common/userDataProfile';
4241
import { StandardMouseEvent } from 'vs/base/browser/mouseEvent';
4342
import { ILogService } from 'vs/platform/log/common/log';
43+
import { ISecretStorageService } from 'vs/platform/secrets/common/secrets';
4444

4545
export class ViewContainerActivityAction extends ActivityAction {
4646

@@ -149,13 +149,9 @@ abstract class AbstractGlobalActivityActionViewItem extends ActivityActionViewIt
149149
const actions = await this.resolveContextMenuActions(disposables);
150150

151151
const event = new StandardMouseEvent(e);
152-
const anchor = {
153-
x: event.posx,
154-
y: event.posy
155-
};
156152

157153
this.contextMenuService.showContextMenu({
158-
getAnchor: () => anchor,
154+
getAnchor: () => event,
159155
getActions: () => actions,
160156
onHide: () => disposables.dispose()
161157
});
@@ -277,7 +273,7 @@ export class AccountsActivityActionViewItem extends MenuActivityActionViewItem {
277273
private readonly problematicProviders: Set<string> = new Set();
278274

279275
private initialized = false;
280-
private sessionFromEmbedder = getCurrentAuthenticationSessionInfo(this.credentialsService, this.productService);
276+
private sessionFromEmbedder = getCurrentAuthenticationSessionInfo(this.credentialsService, this.secretStorageService, this.productService);
281277

282278
constructor(
283279
action: ActivityAction,
@@ -295,6 +291,7 @@ export class AccountsActivityActionViewItem extends MenuActivityActionViewItem {
295291
@IConfigurationService configurationService: IConfigurationService,
296292
@IStorageService private readonly storageService: IStorageService,
297293
@IKeybindingService keybindingService: IKeybindingService,
294+
@ISecretStorageService private readonly secretStorageService: ISecretStorageService,
298295
@ICredentialsService private readonly credentialsService: ICredentialsService,
299296
@ILogService private readonly logService: ILogService
300297
) {
@@ -525,7 +522,7 @@ export class GlobalActivityActionViewItem extends MenuActivityActionViewItem {
525522
@IKeybindingService keybindingService: IKeybindingService,
526523
) {
527524
super(MenuId.GlobalActivity, action, contextMenuActionsProvider, true, colors, activityHoverOptions, themeService, hoverService, menuService, contextMenuService, contextKeyService, configurationService, environmentService, keybindingService);
528-
this._register(Event.any(this.userDataProfileService.onDidUpdateCurrentProfile, this.userDataProfileService.onDidChangeCurrentProfile)(() => this.updateProfileBadge()));
525+
this._register(this.userDataProfileService.onDidChangeCurrentProfile(() => this.updateProfileBadge()));
529526
}
530527

531528
override render(container: HTMLElement): void {

vscode-web/src/vs/workbench/browser/web.main.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ import { BrowserRemoteResourceLoader } from 'vs/workbench/services/remote/browse
9292
import { BufferLogger } from 'vs/platform/log/common/bufferLog';
9393
import { FileLoggerService } from 'vs/platform/log/common/fileLog';
9494
import { IEmbedderTerminalService } from 'vs/workbench/services/terminal/common/embedderTerminalService';
95+
import { BrowserSecretStorageService } from 'vs/workbench/services/secrets/browser/secretStorageService';
96+
import { EncryptionService } from 'vs/workbench/services/encryption/browser/encryptionService';
97+
import { IEncryptionService } from 'vs/platform/encryption/common/encryptionService';
98+
import { ISecretStorageService } from 'vs/platform/secrets/common/secrets';
9599

96100
export class BrowserMain extends Disposable {
97101

@@ -384,9 +388,14 @@ export class BrowserMain extends Disposable {
384388
const credentialsService = new BrowserCredentialsService(environmentService, remoteAgentService, productService);
385389
serviceCollection.set(ICredentialsService, credentialsService);
386390

391+
const encryptionService = new EncryptionService();
392+
serviceCollection.set(IEncryptionService, encryptionService);
393+
const secretStorageService = new BrowserSecretStorageService(storageService, encryptionService, environmentService, logService);
394+
serviceCollection.set(ISecretStorageService, secretStorageService);
395+
387396
// Userdata Initialize Service
388397
const userDataInitializers: IUserDataInitializer[] = [];
389-
userDataInitializers.push(new UserDataSyncInitializer(environmentService, credentialsService, userDataSyncStoreManagementService, fileService, userDataProfilesService, storageService, productService, requestService, logService, uriIdentityService));
398+
userDataInitializers.push(new UserDataSyncInitializer(environmentService, secretStorageService, credentialsService, userDataSyncStoreManagementService, fileService, userDataProfilesService, storageService, productService, requestService, logService, uriIdentityService));
390399
if (environmentService.options.profile) {
391400
userDataInitializers.push(new UserDataProfileInitializer(environmentService, fileService, userDataProfileService, storageService, logService, uriIdentityService, requestService));
392401
}

vscode-web/src/vs/workbench/contrib/webview/browser/pre/index.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
1313
</head>
1414

15-
<body style="margin: 0; overflow: hidden; width: 100%; height: 100%" role="document">
15+
<body style="margin: 0; overflow: hidden; width: 100%; height: 100%; overscroll-behavior-x: none;" role="document">
1616
<script async type="module">
1717
// @ts-check
1818
/// <reference lib="dom" />
@@ -86,6 +86,7 @@
8686
defaultStyles.id = '_defaultStyles';
8787
defaultStyles.textContent = `
8888
html {
89+
overscroll-behavior-x: none;
8990
scrollbar-color: var(--vscode-scrollbarSlider-background) var(--vscode-editor-background);
9091
}
9192
@@ -1112,6 +1113,14 @@
11121113
}
11131114
});
11141115

1116+
// propagate vscode-context-menu-visible class
1117+
hostMessaging.onMessage('set-context-menu-visible', (_event, data) => {
1118+
const target = getActiveFrame();
1119+
if (target && target.contentDocument) {
1120+
target.contentDocument.body.classList.toggle('vscode-context-menu-visible', data.visible);
1121+
}
1122+
});
1123+
11151124
hostMessaging.onMessage('set-title', async (_event, data) => {
11161125
const target = getActiveFrame();
11171126
if (target) {

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
minimatch "^3.1.2"
3232
strip-json-comments "^3.1.1"
3333

34-
"@github1s/vscode-web@0.11.0":
35-
version "0.11.0"
36-
resolved "https://registry.yarnpkg.com/@github1s/vscode-web/-/vscode-web-0.11.0.tgz#aa8ff5389c7f615ceecc5a851035e3c8ca677282"
37-
integrity sha512-8n5BaCrF+C6sykfswGobZkYcYw2Qw7znX5a9rgxh9NcRbYxAV9AY+jlxpDjnr21e7qUWWdTn0RTWsxF7x91LqA==
34+
"@github1s/vscode-web@0.12.0":
35+
version "0.12.0"
36+
resolved "https://registry.yarnpkg.com/@github1s/vscode-web/-/vscode-web-0.12.0.tgz#5de3d9c47c8ab4eb6120189dbb786177eadf1e1d"
37+
integrity sha512-pi28LdqI043zk3+IcAUgZKghXu9qGFCbcaACrDV61wE7y0vQuZTgCa7bEV9I5xUPeg7RqvS33Xpn4QGfc4kF7Q==
3838
dependencies:
3939
"@vscode/iconv-lite-umd" "0.7.0"
4040
"@vscode/vscode-languagedetection" "1.0.21"

0 commit comments

Comments
 (0)