Skip to content
Open
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
2 changes: 1 addition & 1 deletion vscode-web/.VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.108.2
1.109.5
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR title/description says this is only a version bump, but this change set also modifies runtime behavior and UI (e.g., text model option copying, workspace label, new service registration, CSS). Please update the PR title/description (or split into separate PRs) so the scope is accurately represented for reviewers and release notes.

Copilot uses AI. Check for mistakes.
10 changes: 5 additions & 5 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": "3edda05b7b7cf235bc0d51f066aa8d57c447ea784ccd507316327150a4bb880c",
"src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css": "26cdde234b2811b42166224f3b0f12eb6d78d519d5262cc2b12ec08653b3df39",
"src/vs/workbench/browser/web.main.ts": "a7c43beaa0f873ce0f9edc1aa03db3e9150fb1ac6dc6479a08e0ea5c8a3b2e76",
"src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css": "f87409af0f50e021ac0880863da50ccfc738728367228af595675f6d12f1ad1b",
"src/vs/workbench/browser/web.main.ts": "c28f5afce7e37992262b827afcc98b25dc0ea9805fb84bfb3e2641d94ddaa885",
"src/vs/workbench/contrib/files/browser/editors/fileEditorInput.ts": "e986095a30dbea54af56c25fa1b184b55f34f8914129b27e2f20d8c4ea9fd16b",
"src/vs/workbench/contrib/webview/browser/pre/index.html": "8b2e27b411b4fa493fe003c5312378ca0c7164fee99ed288c6e4f47c43dbca1f",
"src/vs/workbench/services/extensionManagement/browser/builtinExtensionsScannerService.ts": "16fc1f8830432097a2de87ba04f9f11e930408df8f672bb7a4bbbe3c1a7c509d",
"src/vs/workbench/services/label/common/labelService.ts": "ac42f60193b50a4668384787468758e4b093f9f2da74a7c9604de5c455886e98",
"src/vs/workbench/services/textfile/browser/textFileService.ts": "c384a6ec5991888fb09cdbf482a6747fa15d486e1cd8967560da3ca1df65944e",
"src/vs/base/common/network.ts": "e8679d4499a7bf7474f31e3dcf61db40be3c0c5c81837cf7adf8e7ea2b656fa1",
"src/vs/workbench/services/label/common/labelService.ts": "d9a00bb4644ffdaee5b22261389ade4cc2c0d0c37ba7a46c779f8fb9c7db1866",
"src/vs/workbench/services/textfile/browser/textFileService.ts": "886566605815367d3866be243994829729fd0b85c04ab7450b9de22ee93053eb",
"src/vs/base/common/network.ts": "059af1f9d8671226e6636bed2a28a6d91a15c1a26f5c826336ce0dedacb3cafb",
"src/vs/workbench/contrib/webview/browser/pre/index-no-csp.html": "40d576ad2307d28012b34b86858ba36ba49ae10e5aedb394bd06b14a35b869a5"
}
5 changes: 5 additions & 0 deletions vscode-web/src/vs/base/common/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ export namespace Schemas {
*/
export const vscodeWebview = 'vscode-webview';

/**
* Scheme used for integrated browser tabs using WebContentsView.
*/
export const vscodeBrowser = 'vscode-browser';

/**
* Scheme used for extension pages
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,7 @@
border: 1px solid var(--vscode-commandCenter-border);
overflow: hidden;
margin: 0 6px;
border-top-left-radius: 6px;
border-bottom-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-right-radius: 6px;
border-radius: 4px;
height: 22px;
width: 38vw;
max-width: 600px;
Expand Down
12 changes: 11 additions & 1 deletion vscode-web/src/vs/workbench/browser/web.main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ import { TunnelSource } from '../services/remote/common/tunnelModel.js';
import { mainWindow } from '../../base/browser/window.js';
import { INotificationService, Severity } from '../../platform/notification/common/notification.js';
import { IDefaultAccountService } from '../../platform/defaultAccount/common/defaultAccount.js';
import { DefaultAccountService } from '../services/accounts/common/defaultAccount.js';
import { DefaultAccountService } from '../services/accounts/browser/defaultAccount.js';
import { AccountPolicyService } from '../services/policies/common/accountPolicyService.js';
import { WorkbenchModeService } from '../services/layout/browser/workbenchModeService.js';
import { IWorkbenchModeService } from '../services/layout/common/workbenchModeService.js';

export class BrowserMain extends Disposable {

Expand Down Expand Up @@ -387,6 +389,14 @@ export class BrowserMain extends Disposable {
//
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

// Layout Mode
const workbenchModeService: WorkbenchModeService = this._register(new WorkbenchModeService(configurationService, fileService, environmentService, uriIdentityService, logService, storageService));
serviceCollection.set(IWorkbenchModeService, workbenchModeService);
try {
await workbenchModeService.initialize();
} catch (error) {
logService.error('Error while initializing workbench mode service', error);
}
Comment on lines +392 to +399
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This adds a new service registration/initialization inside a section that explicitly warns not to register services here (see the NOTE immediately above). To follow the intended architecture and avoid duplicate instances / ordering issues, move this to the appropriate registerSingleton() location (e.g. workbench.web.main.ts for web-only services) and keep BrowserMain.initServices() focused on wiring core boot services.

Copilot uses AI. Check for mistakes.

// Workspace Trust Service
const workspaceTrustEnablementService = new WorkspaceTrustEnablementService(configurationService, environmentService);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,10 @@ export class LabelService extends Disposable implements ILabelService {
/* above codes are changed by github1s */

if (isWorkspace(workspace)) {
if (workspace.isAgentSessionsWorkspace) {
return localize('agentSessionsWorkspace', "Agent Sessions");
}

const identifier = toWorkspaceIdentifier(workspace);
if (isSingleFolderWorkspaceIdentifier(identifier) || isWorkspaceIdentifier(identifier)) {
return this.getWorkspaceLabel(identifier, options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,18 @@ export abstract class AbstractTextFileService extends Disposable implements ITex
targetTextModel.setLanguage(sourceLanguageId); // only use if more specific than plain/text
}

// indentation options (preserve tabs vs spaces, tab size, indent size)
const sourceOptions = sourceTextModel.getOptions();
targetTextModel.updateOptions({
tabSize: sourceOptions.tabSize,
indentSize: sourceOptions.indentSize,
insertSpaces: sourceOptions.insertSpaces
});

// end of line sequence (preserve LF vs CRLF)
const sourceEOL = sourceTextModel.getEndOfLineSequence();
targetTextModel.setEOL(sourceEOL);

// transient properties
const sourceTransientProperties = this.codeEditorService.getTransientModelProperties(sourceTextModel);
if (sourceTransientProperties) {
Expand Down
Loading