Skip to content

Completion items not properly matching full 'word' #46

@julienvincent

Description

@julienvincent

I suppose this is a continuation of #38. The issue reported there was resolved by 655d2ee but there is still an issue with the word selection logic.

The issue is that the replacement doesn't always match all the relevant text.

Example:

(ns example
  (:require
   [clojure.test :as test]))

(test/use|)

;; Press accept

;; Result:
(test/test/use-fixtures|)

;; Expected:
(test/use-fixtures|)

So it's not replacing the entire text of test/use it's just replacing the use component.

I wonder if the lsp completion items contain context about the range they are operating over.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LSPRelated to a specific LSPbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions