Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

... annotations popping up #2497

Open
KGOH opened this issue Jun 22, 2024 · 1 comment
Open

... annotations popping up #2497

KGOH opened this issue Jun 22, 2024 · 1 comment
Labels
language server issue Issues related to language servers communicating with this plugin

Comments

@KGOH
Copy link

KGOH commented Jun 22, 2024

Describe the bug

With code lens disabled sometimes I observe ... popping up in the right side of all views after I edit code.

To Reproduce
Prepare a file that defines a symbol (a function) that's used in some other files within the project. (I.e. a file with a function that would have "1 reference" showed if code lens were enabled)

  1. Put
      "disabled_capabilities": {
        "codeLensProvider": true
      },
    
    into your LSP configuration
  2. Open a file with LSP enabled, wait for LSP to start.
  3. Edit the name of the function
  4. Undo the edit
  5. Observe ... in the right side of the view

Expected behavior

No ... annotation on the screen

Screenshots

Screen.Recording.2024-06-22.at.11.55.48.mov

Logs

LSP_log.txt
LSP_log_debug.txt

[Troubleshooting output]

Troubleshooting: ClojureHelper

Version

  • LSP: 2.1.0
  • Sublime Text: 4169

Server Test Run

  • exit code: 0
  • output

Server Configuration

  • command
[
  "clojure-lsp"
]
  • shell command
clojure-lsp
  • selector
source.clojure
  • priority_selector
source.clojure
  • init_options
{}
  • settings
{}
  • env
{}

Active view

  • File name
/Users/kgofhedgehogs/Work/ps/src/ps.cljc
  • Settings
{
  "auto_complete_selector": "meta.tag, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc",
  "lsp_active": true,
  "syntax": "Packages/Clojure/ClojureScript.sublime-syntax"
}
  • base scope
source.clojure.clojurescript

Project / Workspace

  • folders
[
  "/Users/kgofhedgehogs/Work/ps"
]
  • is project: False

LSP configuration

{
  "log_debug": true,
  "show_code_actions": "bulb",
  "show_view_status": false
}

System PATH

  • /usr/local/bin
  • /usr/bin
  • /bin
  • /usr/sbin
  • /sbin
  • /Library/Apple/usr/bin
  • /opt/homebrew/opt/arm-gcc-bin@8/bin
  • /opt/homebrew/opt/avr-gcc@8/bin
  • /opt/homebrew/opt/qt@5/bin
  • /opt/homebrew/sbin
  • /Users/kgofhedgehogs/.jenv/shims
  • /Users/kgofhedgehogs/bin
  • /opt/homebrew/bin
  • /Users/kgofhedgehogs/.orbstack/bin

Environment (please complete the following information):

  • OS: macOS 12.7.4
  • Sublime Text version: 4169
  • LSP version: 2.1.0
  • Language servers used: Clojure

Additional context
"ClojureHelper" source located here:
#1844 (comment)

@KGOH KGOH changed the title ... annotation popping up ... annotations popping up Jun 22, 2024
@rchl
Copy link
Member

rchl commented Jun 24, 2024

I think it would be worth creating an issue for that in the Clojure server since it looks like even though the LSP client says that code lens is not supported, it still sends a workspace/codeLens/refresh request.

The LSP client could also be changed to ignore code lens requests in that case but I'd say that the issue starts with Clojure.

@jwortmann jwortmann added the language server issue Issues related to language servers communicating with this plugin label Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language server issue Issues related to language servers communicating with this plugin
Projects
None yet
Development

No branches or pull requests

3 participants