Skip to content

Commit

Permalink
fix type error in textDocument/formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
6cdh authored and jeapostrophe committed Oct 18, 2023
1 parent 3f23f43 commit 140d94e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
[else
(define line-start (send doc-text line-start-pos line))
(if indenter
(or (indenter doc-text line-start)
(or (send doc-text run-indenter indenter line-start)
(send doc-text compute-racket-amount-to-indent line-start))
(send doc-text compute-racket-amount-to-indent line-start))])))

Expand Down
3 changes: 3 additions & 0 deletions editor.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,7 @@
(define/public (compute-racket-amount-to-indent pos)
(send core compute-racket-amount-to-indent pos))

(define/public (run-indenter indenter char-pos)
(indenter core char-pos))

(super-new)))

0 comments on commit 140d94e

Please sign in to comment.