File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/vs/workbench/contrib/chat/browser/contrib Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ export class ChatImplicitContextContribution extends Disposable implements IWork
61
61
activeEditorDisposables . add ( Event . debounce (
62
62
Event . any (
63
63
codeEditor . onDidChangeModel ,
64
- codeEditor . onDidScrollChange ,
65
64
codeEditor . onDidChangeModelLanguage ) ,
66
65
( ) => undefined ,
67
66
500 ) ( ( ) => this . updateImplicitContext ( ) ) ) ;
@@ -76,8 +75,7 @@ export class ChatImplicitContextContribution extends Disposable implements IWork
76
75
if ( codeEditor && codeEditor . getModel ( ) ?. uri . scheme === Schemas . vscodeNotebookCell ) {
77
76
activeCellDisposables . add ( Event . debounce (
78
77
Event . any (
79
- codeEditor . onDidChangeModel ,
80
- codeEditor . onDidScrollChange ) ,
78
+ codeEditor . onDidChangeModel ) ,
81
79
( ) => undefined ,
82
80
500 ) ( ( ) => this . updateImplicitContext ( ) ) ) ;
83
81
}
@@ -299,9 +297,7 @@ export class ChatImplicitContext extends Disposable implements IChatRequestImpli
299
297
if ( value && ( languageId === PROMPT_LANGUAGE_ID ) ) {
300
298
this . addPrompt ( value ) ;
301
299
}
302
- if ( URI . isUri ( value ) && ! isSelection ) {
303
- this . _onDidChangeValue . fire ( ) ;
304
- }
300
+ this . _onDidChangeValue . fire ( ) ;
305
301
}
306
302
307
303
public async toBaseEntries ( ) : Promise < readonly IChatRequestFileEntry [ ] > {
You can’t perform that action at this time.
0 commit comments