Initialize请求需要填写那些配置参数? #4579
Unanswered
fenixjiang
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我实现了一个自己的LSPClient,在
node vue-language-server.js -- stdio
启动服务器后,Initialize请求的时候,我需要填写那些配置参数? 我希望支持vue,typescript。我找了主页中提到的插件相关的配置,并且尝试了使用其中提到的一些配置,但是我不确定是否是正确的。 例如
'typescript = {
serverPath = '/usr/lib/node_modules/typescript/lib/tsserverlibrary.js',
},
languageFeatures = {
references = true,
definition = true,
typeDefinition = true,
callHierarchy = true,
hover = true,
rename = true,
signatureHelp = true,
codeAction = true,
completion = {
defaultTagNameCase = 'both',
defaultAttrNameCase = 'kebabCase',
getDocumentNameCasesRequest = true,
getDocumentSelectionRequest = true,
},
documentLink = true,
codeLens = true,
diagnostics = true,
},
documentFeatures = {
selectionRange = true,
foldingRange = true,
documentSymbol = true,
documentColor = true,
documentFormatting = {
defaultPrintWidth = 100,
getDocumentPrintWidthRequest = true,
},
},'
我对TS不是很熟悉,通过调试也没有发现问题所在?
有没有类似经历,尝试使用自定义LSP客户端连接这个语法服务的朋友给出一些建议?
另外: 我自己的LSP客户端是可以正常连接ESLint的。
Beta Was this translation helpful? Give feedback.
All reactions