Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased
<!-- Add all new changes here. They will be moved under a version at release -->
* `FIX` prevent unnecessary edits by LSP formatting when content did not change

## 3.13.9
`2025-3-13`
Expand Down
4 changes: 4 additions & 0 deletions script/core/formatting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ return function(uri, options)
return
end

if text == formattedText then
return
end

return {
{
start = state.ast.start,
Expand Down
Loading