Skip to content

Commit 8e39fc6

Browse files
committed
removing the update of the session edit mode
1 parent 76b31a1 commit 8e39fc6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ export class InlineChatController implements IEditorContribution {
239239
return State.CANCEL;
240240
}
241241

242-
session.editMode = this._getMode();
243242
switch (session.editMode) {
244243
case EditMode.Live:
245244
this._strategy = this._instaService.createInstance(LiveStrategy, session, this._editor, this._zone.value.widget);

src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class Session {
120120
private _textModelNSnapshotAltVersion: number | undefined;
121121

122122
constructor(
123-
public editMode: EditMode,
123+
readonly editMode: EditMode,
124124
readonly editor: ICodeEditor,
125125
readonly textModel0: ITextModel,
126126
readonly textModelN: ITextModel,

0 commit comments

Comments
 (0)