emacs-lsp / lsp-mode

Emacs client/library for the Language Server Protocol
https://emacs-lsp.github.io/lsp-mode
GNU General Public License v3.0
4.73k stars 864 forks source link

`lsp-ui-doc-show` & `lsp-ui-doc-glance` doesn't work in Typescript file while Graphql LSP is active #4108

Open tien opened 11 months ago

tien commented 11 months ago

Thank you for the bug report

Bug description

When Graphql LSP is installed & active, accessing symbol documentation no longer work in TypeScript file.

Steps to reproduce

Expected behavior

Viewing Documentation still work for TypeScript file even with graphql LSP

Which Language Server did you use?

ts-ls, eslint, graphql

OS

MacOS

Error callstack

No response

Anything else?

No response

dschrempf commented 8 months ago

I can confirm this bug.

dschrempf commented 4 months ago

This is still an issue. I have disabled graphql-lsp in non-graphql buffers for now using:

(defun lsp-graphql-activate-p (filename &optional _)
    (string-match-p (rx (one-or-more anything) "."
                        (or "graphql" "gql") eos)
                    filename))