Closed tmythicator closed 4 years ago
UPD: I start using web-mode
instead and the problem disappeared. So it looks like it is typescript-mode
specific problem.
Before:
(use-package typescript-mode
:ensure t
:mode ("\\.tsx$" . typescript-mode))
Now:
(use-package web-mode
:ensure t
:mode ("\\.tsx$" . web-mode))
Bug description When navigating with
lsp-ui-peek-find-definitions
to react-component, it navigates correctly to the file. If file was not opened beforehand, the highlighting will appear only after the found definition, but not before.To Reproduce
lsp-ui-peek-find-definitions
on component.Expected behavior Syntax highlighting should be enabled in the whole buffer.
Which Language Server did you use Typescript language server
OS Linux
References This may help solving the problem: Pull-Requests: https://github.com/emacs-lsp/lsp-ui/pull/473