Here it is workaround of the issue. As a side note, you may bind multiple language servers to web-mode and lsp-mode will select the one with highest priority:
I try do this, I can see vls start successed, but lsp-mode and lsp-ui doesn’t work. I can’t see any information.
我试了你这种方式, 能看到 vls 服务启动了, 但是 lsp-mode 没反应, lsp-ui 什么提示也没有
It works, it doesn’t work when I put “(when …)” in use-package :config.
I will try to extend lsp-mode to provide a way to make this work out of the box. In the future, if you hit such “awkwardness” when using lsp-mode feel free to go ahead and file an issue. Two of the possible solutions:
Allow specifying file extensions as in @BlindingDark example
This functionality is missing. Having a better message will be an improvement. Also, I am planning to add function which will be like company-diag which will provide information about which servers are available, which mode could be handled by them + information about the current buffer.
@twlz0ne Take a look at https://github.com/emacs-lsp/lsp-mode/pull/611 - I believe some of the workarounds discussed in this thread are no longer needed. You may eventually contribute the proper activation command for vue.