提交 2ebdac4a 编写于 作者: M Matt Bierner

Fix potential crash when using preferred code actions

上级 ee65a242
......@@ -100,7 +100,7 @@ export class QuickFixController implements IEditorContribution {
// Or if we have a single preferred action
const preferred = fixes.filter(fix => fix.isPreferred);
if (preferred.length === 0) {
if (preferred.length === 1) {
this._onApplyCodeAction(preferred[0]);
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册