Skip to content

Commit ee25c1f

Browse files
authored
Add missing else to be explicit (#262835)
1 parent 54314d9 commit ee25c1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export class InlineCompletionsController extends Disposable {
170170
for (const ctrl of InlineCompletionsController._instances) {
171171
if (ctrl === this) {
172172
continue;
173-
} if (nextEditUri && isEqual(nextEditUri, ctrl.editor.getModel()?.uri)) {
173+
} else if (nextEditUri && isEqual(nextEditUri, ctrl.editor.getModel()?.uri)) {
174174
// The next edit in other edito is related to this controller, trigger it.
175175
ctrl.model.get()?.trigger();
176176
} else {

0 commit comments

Comments
 (0)