Skip to content

Commit

Permalink
Remove unnecessary newText field from the SnippetTextEdit.
Browse files Browse the repository at this point in the history
- SnippetTextEdit inherits from TextEdit, but it should not initialize
  'newText' to an empty String when the 'snippet' field will have the
  text defined

Signed-off-by: Roland Grunberg <[email protected]>
  • Loading branch information
rgrunber committed Sep 27, 2024
1 parent 46da1a8 commit 295f795
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ public class SnippetTextEdit extends TextEdit {
StringValue snippet;

public SnippetTextEdit(Range range, String snippet) {
super(range, "");
super();
setRange(range);
this.snippet = new StringValue(snippet);
}

Expand Down

0 comments on commit 295f795

Please sign in to comment.