Skip to content

Commit 5d64571

Browse files
committed
clean up
1 parent 565fc50 commit 5d64571

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ export class ChatImplicitContextContribution extends Disposable implements IWork
6161
activeEditorDisposables.add(Event.debounce(
6262
Event.any(
6363
codeEditor.onDidChangeModel,
64-
codeEditor.onDidScrollChange,
6564
codeEditor.onDidChangeModelLanguage),
6665
() => undefined,
6766
500)(() => this.updateImplicitContext()));
@@ -76,8 +75,7 @@ export class ChatImplicitContextContribution extends Disposable implements IWork
7675
if (codeEditor && codeEditor.getModel()?.uri.scheme === Schemas.vscodeNotebookCell) {
7776
activeCellDisposables.add(Event.debounce(
7877
Event.any(
79-
codeEditor.onDidChangeModel,
80-
codeEditor.onDidScrollChange),
78+
codeEditor.onDidChangeModel),
8179
() => undefined,
8280
500)(() => this.updateImplicitContext()));
8381
}
@@ -299,9 +297,7 @@ export class ChatImplicitContext extends Disposable implements IChatRequestImpli
299297
if (value && (languageId === PROMPT_LANGUAGE_ID)) {
300298
this.addPrompt(value);
301299
}
302-
if (URI.isUri(value) && !isSelection) {
303-
this._onDidChangeValue.fire();
304-
}
300+
this._onDidChangeValue.fire();
305301
}
306302

307303
public async toBaseEntries(): Promise<readonly IChatRequestFileEntry[]> {

0 commit comments

Comments
 (0)