clojure-lsp / clojure-lsp-intellij

Intellij Plugin for Clojure & ClojureScript development via Language Server (LSP) made in Clojure
https://clojure-lsp.io
MIT License
83 stars 6 forks source link

Autocomplete ignores leading pipe symbol (`|`) for namespaced symbols #46

Closed eduardolevygp closed 5 months ago

eduardolevygp commented 5 months ago

Describe the bug When a symbol from a different namespace starts with a pipe symbol, the autocomplete ignores it when you type it, causing duplication when you select the autocomplete item.

To Reproduce Steps to reproduce the behavior:

  1. Create a namespace called foo, with a symbol called |bar in it.
  2. In another namespace, require foo and type foo/, then trigger autocomplete
  3. Type |ba and select |bar option on the autocomplete list
  4. It'll result in foo/||bar

Expected behavior Consider the pipe symbol for the search when typed, removing it when it's replaced with the auto-completed value, avoiding duplication.

Desktop (please complete the following information):

ericdallo commented 5 months ago

Fixed on 420dd7b