diff --git a/.version b/.version index 98fea9c6c..74d3cc8ed 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.2.464 \ No newline at end of file +0.2.465 \ No newline at end of file diff --git a/cmd/templ/lspcmd/proxy/server.go b/cmd/templ/lspcmd/proxy/server.go index 8fc746368..73a0a449e 100644 --- a/cmd/templ/lspcmd/proxy/server.go +++ b/cmd/templ/lspcmd/proxy/server.go @@ -624,22 +624,6 @@ func (p *Server) DocumentColor(ctx context.Context, params *lsp.DocumentColorPar func (p *Server) DocumentHighlight(ctx context.Context, params *lsp.DocumentHighlightParams) (result []lsp.DocumentHighlight, err error) { p.Log.Info("client -> server: DocumentHighlight") defer p.Log.Info("client -> server: DocumentHighlight end") - isTemplFile, goURI := convertTemplToGoURI(params.TextDocument.URI) - if !isTemplFile { - return p.Target.DocumentHighlight(ctx, params) - } - templURI := params.TextDocument.URI - params.TextDocument.URI = goURI - result, err = p.Target.DocumentHighlight(ctx, params) - if err != nil { - return - } - if result == nil { - return - } - for i := 0; i < len(result); i++ { - result[i].Range = p.convertGoRangeToTemplRange(templURI, result[i].Range) - } return }