Skip to content

Commit

Permalink
Fixes #180224 (#180511)
Browse files Browse the repository at this point in the history
  • Loading branch information
hediet authored Apr 21, 2023
1 parent 9fca32c commit c39f1ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class InlineCompletionsController extends Disposable {
inlineSuggestCommitId,
'acceptSelectedSuggestion',
]);
if (commands.has(e.commandId) && editor.hasTextFocus()) {
if (commands.has(e.commandId) && editor.hasTextFocus() && enabled.get()) {
transaction(tx => {
this.model.get()?.trigger(tx);
});
Expand Down

0 comments on commit c39f1ae

Please sign in to comment.