Skip to content

Commit d4ce52b

Browse files
committed
feat: update textwire to v4
1 parent 1a131dd commit d4ce52b

6 files changed

Lines changed: 14 additions & 10 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This is a Go-based LSP implementation for the Textwire templating language.
99

1010
- Language: Go 1.25.0
1111
- Module: `github.com/textwire/lsp`
12-
- Main dependency: `github.com/textwire/textwire/v3`
12+
- Main dependency: `github.com/textwire/textwire/v4`
1313

1414
## Architecture
1515

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release Notes
22

3+
## v0.5.0 (2026-04-01)
4+
5+
- ✨ Update Textwire to the latest version.
6+
37
## v0.4.2 (2026-03-01)
48

59
- ✨ Update Textwire to the latest version.

analysis/completion.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77

88
"github.com/textwire/lsp/internal/logger"
99
"github.com/textwire/lsp/lsp"
10-
twLsp "github.com/textwire/textwire/v3/pkg/lsp"
11-
"github.com/textwire/textwire/v3/pkg/lsp/completions"
10+
twLsp "github.com/textwire/textwire/v4/pkg/lsp"
11+
"github.com/textwire/textwire/v4/pkg/lsp/completions"
1212
)
1313

1414
const locale = "en"

analysis/hover.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package analysis
22

33
import (
44
"github.com/textwire/lsp/lsp"
5-
"github.com/textwire/textwire/v3/pkg/lexer"
6-
twLsp "github.com/textwire/textwire/v3/pkg/lsp"
7-
"github.com/textwire/textwire/v3/pkg/token"
5+
"github.com/textwire/textwire/v4/pkg/lexer"
6+
twLsp "github.com/textwire/textwire/v4/pkg/lsp"
7+
"github.com/textwire/textwire/v4/pkg/token"
88
)
99

1010
func (s *State) Hover(id int, uri string, pos lsp.Position) (lsp.HoverResponse, error) {
@@ -16,7 +16,7 @@ func (s *State) Hover(id int, uri string, pos lsp.Position) (lsp.HoverResponse,
1616
var matchingTok *token.Token
1717

1818
for {
19-
tok := l.NextToken()
19+
tok := l.Next()
2020
if tok.Type == token.EOF {
2121
break
2222
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/textwire/lsp
22

33
go 1.25.0
44

5-
require github.com/textwire/textwire/v3 v3.3.0
5+
require github.com/textwire/textwire/v4 v4.0.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github.com/textwire/textwire/v3 v3.3.0 h1:8urq/t3vmlmDYo2gjOm6GOp22mpmI5w6Sp44tB6JwcU=
2-
github.com/textwire/textwire/v3 v3.3.0/go.mod h1:GXDm8iNiwU5pf55GLz5FyRIsZnktpYm9/wEuQv4Lq0Y=
1+
github.com/textwire/textwire/v4 v4.0.0 h1:uXNXVkvbO6s+7Lm8U99j2QQbwRJf1ORIAHLDtlN+ghQ=
2+
github.com/textwire/textwire/v4 v4.0.0/go.mod h1:6ckQxE2bfcYpWmPChfD+NtvafJTw+5AknPLhq4kAppk=

0 commit comments

Comments
 (0)