提交 198aed06 编写于 作者: M Matt Bierner

CodeActionSet should not mutate input array

上级 437b93f1
......@@ -34,8 +34,8 @@ export class CodeActionSet {
public readonly actions: readonly CodeAction[];
public constructor(actions: CodeAction[]) {
this.actions = mergeSort(actions, CodeActionSet.codeActionsComparator);
public constructor(actions: readonly CodeAction[]) {
this.actions = mergeSort(Array.from(actions), CodeActionSet.codeActionsComparator);
}
public get hasAutoFix() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册