Skip to content

Commit

Permalink
Document why constructor is deprecated (#831)
Browse files Browse the repository at this point in the history
See conversation in #822 (comment)

Fixes #822
  • Loading branch information
jonahgraham authored May 14, 2024
1 parent c515f17 commit 193c3bc
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ class WorkspaceEditCapabilities {
new() {
}

/**
* @deprecated because when this class first existed it didn't have any other fields.
* Now that this class has lots of fields, there is nothing special about this
* field and therefore using the setters is the recommended use case.
*/
@Deprecated
new(Boolean documentChanges) {
this.documentChanges = documentChanges
Expand Down

0 comments on commit 193c3bc

Please sign in to comment.