This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
langserver: TextEdits computed from diff for gofmt
Before this commit we would send an edit which deleted everything followed up by inserting the formatted code. This lead to a bad experience in vscode. This change implemented a more minimal number of TextEdits by using difflib. The behaviour now matches the behaviour of vscode-go.
- Loading branch information
1 parent
20886c7
commit 87598ad
Showing
2 changed files
with
52 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters