-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use textEdit instead of insertText for filter completions
This fixes a bug where if you try to complete a filter while in the middle of an existing filter's text we'd just append the completion. Now we'll replace the filter you're running the completion on.
- Loading branch information
1 parent
6f1318e
commit 4b2dec3
Showing
3 changed files
with
201 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@shopify/theme-language-server-common': patch | ||
--- | ||
|
||
Fix a bug where filter completions wouldn't replace existing text |
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
Shoot forgot to tell you there's an easier way to test these assertions.
IIRC the
TextDocument
class has a staticapplyEdit
method that lets you write assertions like