Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump vscode to 1.97.2 #624

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"license": "ISC",
"devDependencies": {
"@cloudflare/workers-types": "^4.20250109.0",
"@github1s/vscode-web": "0.23.3",
"@github1s/vscode-web": "0.24.0",
"chokidar": "^4.0.3",
"clean-css": "^5.3.3",
"copy-webpack-plugin": "^12.0.2",
Expand Down
2 changes: 1 addition & 1 deletion vscode-web/.VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.96.4
1.97.2
4 changes: 2 additions & 2 deletions vscode-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vscode-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@github1s/vscode-web",
"version": "0.23.3",
"version": "0.24.0",
"description": "VS Code web for GitHub1s",
"author": "github1s",
"license": "MIT",
Expand Down
12 changes: 6 additions & 6 deletions vscode-web/scripts/.patch
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"src/vs/workbench/browser/parts/activitybar/activitybarPart.ts": "9d2f29791ba4e2447efd79dd326a3cff9df2c7957907ab3c820b1c5a37766589",
"src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css": "34f062f1434649936adf8ea8a35f476d82bf70c42d0f1a4cc2ad4ee870744323",
"src/vs/workbench/browser/web.main.ts": "ae303654beb3969350434c79a20bb756bae01de3e93c83e859fb2a344e76f8d5",
"src/vs/workbench/browser/parts/activitybar/activitybarPart.ts": "533dd320519e7523e9bfd102ab35b2329223c1cf6fa909210d47ebbb75e7cf41",
"src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css": "654fa16577a5fcf83f2601f1e22e0a6ac67a9710980d6a762ee68074423a74cc",
"src/vs/workbench/browser/web.main.ts": "0cf354b9221fdb15a738366043fbf69d8f8373891faf9f5e66a033de935eba79",
"src/vs/workbench/contrib/files/browser/editors/fileEditorInput.ts": "e986095a30dbea54af56c25fa1b184b55f34f8914129b27e2f20d8c4ea9fd16b",
"src/vs/workbench/contrib/webview/browser/pre/index.html": "09664522d7c6b0fdb7728be06b1a1f6ec8bb82c4fd6f2d13a7e84a0fd7d667af",
"src/vs/workbench/services/extensionManagement/browser/builtinExtensionsScannerService.ts": "c220568141adf6ed560bab754ea7769795465c6fa93ecd461e9b59f05ca56377",
"src/vs/workbench/services/label/common/labelService.ts": "9eacdd41cbcf7f5e2ff7e0b524c495c59a8b4a940834385d486cb5c8b39b903d",
"src/vs/workbench/services/textfile/browser/textFileService.ts": "64fde77a91847e9881f2a1823e0b12d8af15630602ec9b877b43a3a05ac11eef",
"src/vs/base/common/network.ts": "e62486b9d0aec931812589c5bd239d7e8240423a3c80b1327afac4a32d44ef7a",
"src/vs/workbench/services/label/common/labelService.ts": "72d72581bd521c2edadd60d4458de4d1c6a9a2cc2cf83820034c82815a2eae6a",
"src/vs/workbench/services/textfile/browser/textFileService.ts": "b5ce3f8032cd2fe5a871b33d67f578d209bbae3f42007998559138326fd16b04",
"src/vs/base/common/network.ts": "10cb07268d9805b102cf8ab9d5e03f97d935a42304c7bdc5e8c54013038bd9ad",
"src/vs/workbench/contrib/webview/browser/pre/index-no-csp.html": "1b7956deade55aa1420516b62251d412fb578bb1165e2580b21d3d8ace968a67"
}
6 changes: 3 additions & 3 deletions vscode-web/src/vs/base/common/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class RemoteAuthoritiesImpl {
}

setServerRootPath(product: { quality?: string; commit?: string }, serverBasePath: string | undefined): void {
this._serverRootPath = getServerRootPath(product, serverBasePath);
this._serverRootPath = paths.posix.join(serverBasePath ?? '/', getServerProductSegment(product));
}

getServerRootPath(): string {
Expand Down Expand Up @@ -228,8 +228,8 @@ class RemoteAuthoritiesImpl {

export const RemoteAuthorities = new RemoteAuthoritiesImpl();

export function getServerRootPath(product: { quality?: string; commit?: string }, basePath: string | undefined): string {
return paths.posix.join(basePath ?? '/', `${product.quality ?? 'oss'}-${product.commit ?? 'dev'}`);
export function getServerProductSegment(product: { quality?: string; commit?: string }) {
return `${product.quality ?? 'oss'}-${product.commit ?? 'dev'}`;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Part } from '../../part.js';
import { ActivityBarPosition, IWorkbenchLayoutService, LayoutSettings, Parts, Position } from '../../../services/layout/browser/layoutService.js';
import { IInstantiationService, ServicesAccessor } from '../../../../platform/instantiation/common/instantiation.js';
import { DisposableStore, MutableDisposable } from '../../../../base/common/lifecycle.js';
import { ToggleSidebarPositionAction } from '../../actions/layoutActions.js';
import { ToggleSidebarPositionAction, ToggleSidebarVisibilityAction } from '../../actions/layoutActions.js';
import { IThemeService, IColorTheme, registerThemingParticipant } from '../../../../platform/theme/common/themeService.js';
import { ACTIVITY_BAR_BACKGROUND, ACTIVITY_BAR_BORDER, ACTIVITY_BAR_FOREGROUND, ACTIVITY_BAR_ACTIVE_BORDER, ACTIVITY_BAR_BADGE_BACKGROUND, ACTIVITY_BAR_BADGE_FOREGROUND, ACTIVITY_BAR_INACTIVE_FOREGROUND, ACTIVITY_BAR_ACTIVE_BACKGROUND, ACTIVITY_BAR_DRAG_AND_DROP_BORDER, ACTIVITY_BAR_ACTIVE_FOCUS_BORDER } from '../../../common/theme.js';
import { activeContrastBorder, contrastBorder, focusBorder } from '../../../../platform/theme/common/colorRegistry.js';
Expand Down Expand Up @@ -399,10 +399,16 @@ export class ActivityBarCompositeBar extends PaneCompositeBar {
getActivityBarContextMenuActions(): IAction[] {
const activityBarPositionMenu = this.menuService.getMenuActions(MenuId.ActivityBarPositionMenu, this.contextKeyService, { shouldForwardArgs: true, renderShortTitle: true });
const positionActions = getContextMenuActions(activityBarPositionMenu).secondary;
return [
const actions = [
new SubmenuAction('workbench.action.panel.position', localize('activity bar position', "Activity Bar Position"), positionActions),
toAction({ id: ToggleSidebarPositionAction.ID, label: ToggleSidebarPositionAction.getLabel(this.layoutService), run: () => this.instantiationService.invokeFunction(accessor => new ToggleSidebarPositionAction().run(accessor)) })
toAction({ id: ToggleSidebarPositionAction.ID, label: ToggleSidebarPositionAction.getLabel(this.layoutService), run: () => this.instantiationService.invokeFunction(accessor => new ToggleSidebarPositionAction().run(accessor)) }),
];

if (this.part === Parts.SIDEBAR_PART) {
actions.push(toAction({ id: ToggleSidebarVisibilityAction.ID, label: ToggleSidebarVisibilityAction.LABEL, run: () => this.instantiationService.invokeFunction(accessor => new ToggleSidebarVisibilityAction().run(accessor)) }));
}

return actions;
}

}
Expand Down Expand Up @@ -521,15 +527,10 @@ MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
MenuRegistry.appendMenuItem(MenuId.ViewContainerTitleContext, {
submenu: MenuId.ActivityBarPositionMenu,
title: localize('positionActivituBar', "Activity Bar Position"),
when: ContextKeyExpr.equals('viewContainerLocation', ViewContainerLocationToString(ViewContainerLocation.Sidebar)),
group: '3_workbench_layout_move',
order: 1
});

MenuRegistry.appendMenuItem(MenuId.ViewTitleContext, {
submenu: MenuId.ActivityBarPositionMenu,
title: localize('positionActivituBar', "Activity Bar Position"),
when: ContextKeyExpr.equals('viewLocation', ViewContainerLocationToString(ViewContainerLocation.Sidebar)),
when: ContextKeyExpr.or(
ContextKeyExpr.equals('viewContainerLocation', ViewContainerLocationToString(ViewContainerLocation.Sidebar)),
ContextKeyExpr.equals('viewContainerLocation', ViewContainerLocationToString(ViewContainerLocation.AuxiliaryBar))
),
group: '3_workbench_layout_move',
order: 1
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,23 +271,6 @@
display: none;
}

.monaco-workbench .part.titlebar > .titlebar-container .window-appicon > .home-bar-icon-badge {
position: absolute;
right: 9px;
bottom: 6px;
width: 8px;
height: 8px;
z-index: 1;
/* on top of home indicator */
background-image: url('../../../media/code-icon.svg');
background-repeat: no-repeat;
background-position: center center;
background-size: 8px;
pointer-events: none;
border-top: 1px solid transparent;
border-left: 1px solid transparent;
}

/* Window Controls Container */
.monaco-workbench .part.titlebar .window-controls-container {
display: flex;
Expand Down
16 changes: 4 additions & 12 deletions vscode-web/src/vs/workbench/browser/web.main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { isWorkspaceToOpen, isFolderToOpen } from '../../platform/window/common/
import { getSingleFolderWorkspaceIdentifier, getWorkspaceIdentifier } from '../services/workspaces/browser/workspaces.js';
import { InMemoryFileSystemProvider } from '../../platform/files/common/inMemoryFilesystemProvider.js';
import { ICommandService } from '../../platform/commands/common/commands.js';
import { IndexedDBFileSystemProviderErrorDataClassification, IndexedDBFileSystemProvider, IndexedDBFileSystemProviderErrorData } from '../../platform/files/browser/indexedDBFileSystemProvider.js';
import { IndexedDBFileSystemProvider } from '../../platform/files/browser/indexedDBFileSystemProvider.js';
import { BrowserRequestService } from '../services/request/browser/requestService.js';
import { IRequestService } from '../../platform/request/common/request.js';
import { IUserDataInitializationService, IUserDataInitializer, UserDataInitializationService } from '../services/userData/browser/userDataInit.js';
Expand All @@ -64,7 +64,6 @@ import { IOpenerService } from '../../platform/opener/common/opener.js';
import { mixin, safeStringify } from '../../base/common/objects.js';
import { IndexedDB } from '../../base/browser/indexedDB.js';
import { WebFileSystemAccess } from '../../platform/files/browser/webFileSystemAccess.js';
import { ITelemetryService } from '../../platform/telemetry/common/telemetry.js';
import { IProgressService } from '../../platform/progress/common/progress.js';
import { DelayedLogChannel } from '../services/output/common/delayedLogChannel.js';
import { dirname, joinPath } from '../../base/common/resources.js';
Expand All @@ -77,7 +76,7 @@ import { UserDataProfileService } from '../services/userDataProfile/common/userD
import { IUserDataProfileService } from '../services/userDataProfile/common/userDataProfile.js';
import { BrowserUserDataProfilesService } from '../../platform/userDataProfile/browser/userDataProfile.js';
import { DeferredPromise, timeout } from '../../base/common/async.js';
import { windowLogId } from '../services/log/common/logConstants.js';
import { windowLogGroup, windowLogId } from '../services/log/common/logConstants.js';
import { LogService } from '../../platform/log/common/logService.js';
import { IRemoteSocketFactoryService, RemoteSocketFactoryService } from '../../platform/remote/common/remoteSocketFactoryService.js';
import { BrowserSocketFactory } from '../../platform/remote/browser/browserSocketFactory.js';
Expand Down Expand Up @@ -137,13 +136,6 @@ export class BrowserMain extends Disposable {
// Logging
services.logService.trace('workbench#open with configuration', safeStringify(this.configuration));

instantiationService.invokeFunction(accessor => {
const telemetryService = accessor.get(ITelemetryService);
for (const indexedDbFileSystemProvider of this.indexedDBFileSystemProviders) {
this._register(indexedDbFileSystemProvider.onReportError(e => telemetryService.publicLog2<IndexedDBFileSystemProviderErrorData, IndexedDBFileSystemProviderErrorDataClassification>('indexedDBFileSystemProviderError', e)));
}
});

// Return API Facade
return instantiationService.invokeFunction(accessor => {
const commandService = accessor.get(ICommandService);
Expand Down Expand Up @@ -298,7 +290,7 @@ export class BrowserMain extends Disposable {
if (environmentService.isExtensionDevelopment && !!environmentService.extensionTestsLocationURI) {
otherLoggers.push(new ConsoleLogInAutomationLogger(loggerService.getLogLevel()));
}
const logger = loggerService.createLogger(environmentService.logFile, { id: windowLogId, name: localize('rendererLog', "Window") });
const logger = loggerService.createLogger(environmentService.logFile, { id: windowLogId, name: windowLogGroup.name, group: windowLogGroup });
const logService = new LogService(logger, otherLoggers);
serviceCollection.set(ILogService, logService);

Expand Down Expand Up @@ -397,7 +389,7 @@ export class BrowserMain extends Disposable {
this._register(workspaceTrustManagementService.onDidChangeTrust(() => configurationService.updateWorkspaceTrust(workspaceTrustManagementService.isWorkspaceTrusted())));

// Request Service
const requestService = new BrowserRequestService(remoteAgentService, configurationService, logService);
const requestService = new BrowserRequestService(remoteAgentService, configurationService, loggerService);
serviceCollection.set(IRequestService, requestService);

// Userdata Sync Store Management Service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,19 +208,23 @@ export class LabelService extends Disposable implements ILabelService {
return bestResult ? bestResult.formatting : undefined;
}

getUriLabel(resource: URI, options: { relative?: boolean; noPrefix?: boolean; separator?: '/' | '\\' } = {}): string {
getUriLabel(resource: URI, options: { relative?: boolean; noPrefix?: boolean; separator?: '/' | '\\'; appendWorkspaceSuffix?: boolean } = {}): string {
let formatting = this.findFormatting(resource);
if (formatting && options.separator) {
// mixin separator if defined from the outside
formatting = { ...formatting, separator: options.separator };
}

const label = this.doGetUriLabel(resource, formatting, options);
let label = this.doGetUriLabel(resource, formatting, options);

// Without formatting we still need to support the separator
// as provided in options (https://github.com/microsoft/vscode/issues/130019)
if (!formatting && options.separator) {
return label.replace(sepRegexp, options.separator);
label = label.replace(sepRegexp, options.separator);
}

if (options.appendWorkspaceSuffix && formatting?.workspaceSuffix) {
label = this.appendWorkspaceSuffix(label, resource);
}

return label;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export abstract class AbstractTextFileService extends Disposable implements ITex

constructor(
@IFileService protected readonly fileService: IFileService,
@IUntitledTextEditorService private untitledTextEditorService: IUntitledTextEditorService,
@IUntitledTextEditorService private untitledTextEditorService: IUntitledTextEditorModelManager,
@ILifecycleService protected readonly lifecycleService: ILifecycleService,
@IInstantiationService protected readonly instantiationService: IInstantiationService,
@IModelService private readonly modelService: IModelService,
Expand Down Expand Up @@ -165,7 +165,7 @@ export abstract class AbstractTextFileService extends Disposable implements ITex
this._register(this.decorationsService.registerDecorationsProvider(provider));
}

//#endregin
//#endregion

//#region text file read / write / create

Expand Down Expand Up @@ -455,6 +455,11 @@ export abstract class AbstractTextFileService extends Disposable implements ITex
this.logService.error(error);
}

// Events
if (source.scheme === Schemas.untitled) {
this.untitled.notifyDidSave(source, target);
}

return target;
}

Expand Down
Loading