Skip to content

Commit d902055

Browse files
committed
revert #237513
1 parent ff59377 commit d902055

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.ts

-5
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,6 @@ registerAction2(class RemoveFileFromWorkingSet extends WorkingSetAction {
127127
order: 5,
128128
group: 'navigation'
129129
}],
130-
keybinding: {
131-
primary: KeyCode.Delete,
132-
when: ContextKeyExpr.and(ChatContextKeys.location.isEqualTo(ChatAgentLocation.EditingSession), ChatContextKeys.inChatEditWorkingSet),
133-
weight: KeybindingWeight.WorkbenchContrib,
134-
}
135130
});
136131
}
137132

src/vs/workbench/contrib/chat/browser/chatInputPart.ts

-6
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
155155
readonly onDidAcceptFollowup = this._onDidAcceptFollowup.event;
156156

157157
private readonly _attachmentModel: ChatAttachmentModel;
158-
private _inChatEditWorkingSetCtx: IContextKey<boolean> | undefined;
159-
160158
public get attachmentModel(): ChatAttachmentModel {
161159
return this._attachmentModel;
162160
}
@@ -689,8 +687,6 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
689687
ChatContextKeys.inChatInput.bindTo(inputScopedContextKeyService).set(true);
690688
const scopedInstantiationService = this._register(this.instantiationService.createChild(new ServiceCollection([IContextKeyService, inputScopedContextKeyService])));
691689

692-
this._inChatEditWorkingSetCtx = ChatContextKeys.inChatEditWorkingSet.bindTo(this.contextKeyService);
693-
694690
const { historyNavigationBackwardsEnablement, historyNavigationForwardsEnablement } = this._register(registerAndCreateHistoryNavigationContext(inputScopedContextKeyService, this));
695691
this.historyNavigationBackwardsEnablement = historyNavigationBackwardsEnablement;
696692
this.historyNavigationForewardsEnablement = historyNavigationForwardsEnablement;
@@ -1320,8 +1316,6 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
13201316

13211317
// Working set
13221318
const workingSetContainer = innerContainer.querySelector('.chat-editing-session-list') as HTMLElement ?? dom.append(innerContainer, $('.chat-editing-session-list'));
1323-
this._register(addDisposableListener(workingSetContainer, 'focusin', () => this._inChatEditWorkingSetCtx?.set(true)));
1324-
this._register(addDisposableListener(workingSetContainer, 'focusout', () => this._inChatEditWorkingSetCtx?.set(false)));
13251319
if (!this._chatEditList) {
13261320
this._chatEditList = this._chatEditsListPool.get();
13271321
const list = this._chatEditList.object;

src/vs/workbench/contrib/chat/common/chatContextKeys.ts

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export namespace ChatContextKeys {
2828
export const inputHasFocus = new RawContextKey<boolean>('chatInputHasFocus', false, { type: 'boolean', description: localize('interactiveInputHasFocus', "True when the chat input has focus.") });
2929
export const inChatInput = new RawContextKey<boolean>('inChatInput', false, { type: 'boolean', description: localize('inInteractiveInput', "True when focus is in the chat input, false otherwise.") });
3030
export const inChatSession = new RawContextKey<boolean>('inChat', false, { type: 'boolean', description: localize('inChat', "True when focus is in the chat widget, false otherwise.") });
31-
export const inChatEditWorkingSet = new RawContextKey<boolean>('inChatEditWorkingSet', false, { type: 'boolean', description: localize('inChatEditWorkingSet', "True when focus is in the chat edit working set, false otherwise.") });
3231
export const instructionsAttached = new RawContextKey<boolean>('chatInstructionsAttached', false, { type: 'boolean', description: localize('chatInstructionsAttachedContextDescription', "True when the chat has a prompt instructions attached.") });
3332

3433
export const supported = ContextKeyExpr.or(IsWebContext.toNegated(), RemoteNameContext.notEqualsTo('')); // supported on desktop and in web only with a remote connection

0 commit comments

Comments
 (0)