Use object for refactor.disabled

For #85160

Using an object is more explict with property names and will let us introduce additional properties in the future if needed
This commit is contained in:
Matt Bierner
2019-12-11 20:15:07 -08:00
parent ba2524065b
commit a4177f50c4
3 changed files with 13 additions and 5 deletions

View File

@@ -389,7 +389,7 @@ class CodeActionAdapter {
edit: candidate.edit && typeConvert.WorkspaceEdit.from(candidate.edit),
kind: candidate.kind && candidate.kind.value,
isPreferred: candidate.isPreferred,
disabled: candidate.disabled
disabled: candidate.disabled?.reason
});
}
}