Skip to content

Commit

Permalink
fix defprotocol formatting BetterThanTomorrow#1978
Browse files Browse the repository at this point in the history
  • Loading branch information
SillyCoon committed Jan 11, 2023
1 parent d1ba0eb commit ec59c2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changes to Calva.

- Fix: [Evaluating blocking snippets deadlocks the editor](https://github.com/BetterThanTomorrow/calva/issues/2012)
- Fix (formatter): [Indenter and formatter fails while typing out body of deftype method](https://github.com/BetterThanTomorrow/calva/issues/1957)
- Fix: [Inconsistent formatting of defprotocol with docstring on separate line from method declaration](https://github.com/BetterThanTomorrow/calva/issues/1978)

## [2.0.323] - 2023-01-07

Expand Down
1 change: 1 addition & 0 deletions src/calva-fmt/src/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { LispTokenCursor } from '../../cursor-doc/token-cursor';

const FormatDepthDefaults = {
deftype: 2,
defprotocol: 2,
};

export async function indentPosition(position: vscode.Position, document: vscode.TextDocument) {
Expand Down

0 comments on commit ec59c2e

Please sign in to comment.