File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/vs/editor/contrib/inlineEdit/browser Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ export class InlineEditController extends Disposable {
123
123
}
124
124
this . _currentRequestCts ?. dispose ( ) ;
125
125
this . _currentRequestCts = undefined ;
126
- this . clear ( ) ;
126
+ this . clear ( false ) ;
127
127
} ) ) ;
128
128
129
129
//Invoke provider on focus
@@ -288,9 +288,9 @@ export class InlineEditController extends Disposable {
288
288
this . editor . revealPositionInCenterIfOutsideViewport ( position ) ;
289
289
}
290
290
291
- public clear ( ) {
291
+ public clear ( sendRejection : boolean = true ) {
292
292
const edit = this . _currentEdit . get ( ) ?. edit ;
293
- if ( edit && edit ?. rejected && ! this . _isAccepting ) {
293
+ if ( edit && edit ?. rejected && ! this . _isAccepting && sendRejection ) {
294
294
this . _commandService . executeCommand ( edit . rejected . id , ...edit . rejected . arguments || [ ] ) ;
295
295
}
296
296
if ( edit ) {
You can’t perform that action at this time.
0 commit comments