Skip to content
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 @@ -114,7 +114,7 @@
"@microsoft/dev-tunnels-ssh-tcp": "^3.12.22",
"@parcel/watcher": "^2.5.6",
"@types/semver": "^7.5.8",
"@vscode/codicons": "^0.0.46-47",
"@vscode/codicons": "^0.0.46-49",
"@vscode/copilot-api": "^0.5.2",
"@vscode/deviceid": "^0.1.1",
"@vscode/diff": "0.0.2-7",
Expand Down
8 changes: 4 additions & 4 deletions remote/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 remote/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"@microsoft/1ds-core-js": "^3.2.13",
"@microsoft/1ds-post-js": "^3.2.13",
"@vscode/codicons": "^0.0.46-47",
"@vscode/codicons": "^0.0.46-49",
"@vscode/iconv-lite-umd": "0.7.1",
"@vscode/tree-sitter-wasm": "^0.3.1",
"@vscode/vscode-languagedetection": "1.0.23",
Expand Down
1 change: 1 addition & 0 deletions src/vs/base/common/codicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const codiconsDerived = {
chatImport: register('chat-import', 0xec86),
chatExport: register('chat-export', 0xec87),
compare: register('compare', 0xecfa),
gitBranchCheckout: register('git-branch-checkout', 0xecfb),

} as const;

Expand Down
3 changes: 2 additions & 1 deletion src/vs/base/test/browser/ui/animations/animations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ suite('Animations', () => {
const effect = particle.getAnimations()[0]?.effect as KeyframeEffect | undefined;
const duration = effect?.getTiming().duration;
const keyframes = effect?.getKeyframes();
// WebKit rounds animation durations to microseconds.
return typeof duration === 'number'
&& duration >= 1150
&& duration < 1510
&& keyframes !== undefined
&& keyframes.length >= 30
&& keyframes.every((keyframe, index) =>
keyframe.easing === 'steps(1)' && (index === 0 || (keyframe.computedOffset - keyframes[index - 1].computedOffset) * duration <= 40 + 1e-10));
keyframe.easing === 'steps(1)' && (index === 0 || (keyframe.computedOffset - keyframes[index - 1].computedOffset) * duration <= 40 + 1e-3));
}),
allParticlesHaveShortFalls: particles.every(particle => {
const keyframes = (particle.getAnimations()[0]?.effect as KeyframeEffect | undefined)?.getKeyframes() ?? [];
Expand Down
2 changes: 1 addition & 1 deletion src/vs/sessions/contrib/chat/browser/isolationPicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const ISOLATION_OPTIONS: readonly IIsolationOption[] = [
isolation: 'folder',
label: localize('isolationPicker.branch', "Branch"),
description: localize('isolationPicker.branchDescription', "Works in the repository already on this computer"),
icon: Codicon.folder,
icon: Codicon.gitBranchCheckout,
Comment thread
meganrogge marked this conversation as resolved.
Resolved
},
{
isolation: 'worktree',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ suite('Sessions - New Nested Session composer', () => {
repositoryContainer.querySelector<HTMLElement>('.sessions-chat-isolation-picker .action-label')!.click();
await new Promise(resolve => setTimeout(resolve, 0));
},
isolationIcon() {
const icon = repositoryContainer.querySelector<HTMLElement>('.sessions-chat-isolation-picker .action-label .codicon')!;
return { className: icon.className, ariaHidden: icon.getAttribute('aria-hidden') };
},
state() {
const repository = repositoryContainer.querySelector<HTMLElement>('.nested-chat-repository-controls')!;
return {
Expand Down Expand Up @@ -309,23 +313,25 @@ suite('Sessions - New Nested Session composer', () => {
test('the isolation dropdown offers Branch and New Worktree, and only a worktree shows the branch picker', async () => {
const h = createControls(constObservable(support(repo)));
await new Promise(resolve => setTimeout(resolve, 0));
const initial = { ...h.repositoryState(), workspace: h.controls.getWorkspace() };
const initial = { ...h.repositoryState(), icon: h.isolationIcon(), workspace: h.controls.getWorkspace() };
await h.pickIsolation('New Worktree');
await new Promise(resolve => setTimeout(resolve, 0));
const worktree = { ...h.repositoryState(), items: h.shown.at(-1), workspace: h.controls.getWorkspace() };
const worktree = { ...h.repositoryState(), icon: h.isolationIcon(), items: h.shown.at(-1), itemIcons: h.lists.at(-1)?.icons, workspace: h.controls.getWorkspace() };
await h.pickIsolation('Branch');
const folder = { ...h.repositoryState(), workspace: h.controls.getWorkspace() };
const folder = { ...h.repositoryState(), icon: h.isolationIcon(), workspace: h.controls.getWorkspace() };

assert.deepStrictEqual({ initial, worktree, folder }, {
initial: { isolation: 'Isolation: Branch [button]', branch: 'hidden', separator: false, workspace: undefined },
initial: { isolation: 'Isolation: Branch [button]', branch: 'hidden', separator: false, icon: { className: 'codicon codicon-git-branch-checkout', ariaHidden: 'true' }, workspace: undefined },
worktree: {
isolation: 'Isolation: New Worktree [button]',
branch: 'Pick Branch, main [button]',
separator: true,
icon: { className: 'codicon codicon-worktree', ariaHidden: 'true' },
items: ['Branch', 'New Worktree'],
itemIcons: ['git-branch-checkout', 'worktree'],
workspace: { kind: 'folder', folder: repo, isolation: 'worktree', baseBranch: 'main' },
},
folder: { isolation: 'Isolation: Branch [button]', branch: 'hidden', separator: false, workspace: undefined },
folder: { isolation: 'Isolation: Branch [button]', branch: 'hidden', separator: false, icon: { className: 'codicon codicon-git-branch-checkout', ariaHidden: 'true' }, workspace: undefined },
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export interface IConfigPickerItem {
export function getConfigIcon(property: string, value: unknown | undefined, hasUncommittedChanges = false): ThemeIcon | undefined {
if (property === SessionConfigKey.Isolation) {
if (value === 'folder' || value === 'workspace') {
return Codicon.folder;
return Codicon.gitBranchCheckout;
}
if (value === 'worktree') {
return Codicon.worktree;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,10 @@ suite('Agent Host Session Config Picker', () => {
assert.deepStrictEqual({ properties, targetItems, targetIcon, writes: services.provider.setSessionConfigValueArguments, checkouts: services.checkoutInvocations }, {
properties: ['target', 'baseBranch', 'branch'],
targetItems: [
{ value: 'workspace', icon: Codicon.folder.id },
{ value: 'workspace', icon: Codicon.gitBranchCheckout.id },
{ value: 'worktree', icon: Codicon.worktree.id },
],
targetIcon: 'codicon codicon-folder',
targetIcon: 'codicon codicon-git-branch-checkout',
writes: [
{ sessionId: SESSION_ID, property: 'target', value: 'workspace' },
{ sessionId: SESSION_ID, property: 'baseBranch', value: 'main' },
Expand Down Expand Up @@ -567,6 +567,7 @@ suite('Agent Host Session Config Picker', () => {
const services = setupServices(store);
const { container } = renderPicker(store, services);
const snapshots = [];
const triggerIcons = [];
for (const value of ['folder', 'worktree']) {
isolationSlot(container)!.querySelector<HTMLElement>('.action-label')!.click();
await new Promise(resolve => setTimeout(resolve));
Expand All @@ -579,17 +580,20 @@ suite('Agent Host Session Config Picker', () => {
})));
await services.actionWidget.delegate!.onSelect(services.actionWidget.items.find(item => item.item?.value === value)!.item!);
await new Promise(resolve => setTimeout(resolve));
triggerIcons.push(isolationSlot(container)?.querySelector('.codicon')?.className);
}
assert.deepStrictEqual({
snapshots,
triggerIcons,
selections: services.provider.setSessionConfigValueArguments,
finalLabel: isolationSlot(container)?.textContent,
checkbox: container.querySelector('.monaco-checkbox'),
}, {
snapshots: [true, false].map(worktreeSelected => [
{ label: 'Branch', value: 'folder', checked: !worktreeSelected, detail: 'Works in the repository already on this computer', icon: Codicon.folder.id },
{ label: 'Branch', value: 'folder', checked: !worktreeSelected, detail: 'Works in the repository already on this computer', icon: Codicon.gitBranchCheckout.id },
{ label: 'New Worktree', value: 'worktree', checked: worktreeSelected, detail: 'Creates a separate copy for this session', icon: Codicon.worktree.id },
]),
triggerIcons: ['codicon codicon-git-branch-checkout', 'codicon codicon-worktree'],
selections: ['folder', 'worktree'].map(value => ({ sessionId: SESSION_ID, property: SessionConfigKey.Isolation, value })),
finalLabel: 'New Worktree',
checkbox: null,
Expand Down
Loading