admin管理员组文章数量:1391937
I have an VSCode extension that uses the LSP. It offers suggestions within block quotes. It is working for 'plaintext' files, but does nothing in other languages.
In extension.ts I have the activate function
export function activate(context: ExtensionContext) {
...
// Options to control the language client
const clientOptions: LanguageClientOptions = {
// Register the server for documents
documentSelector: [
{ scheme: 'file', language: 'python'},
{scheme: 'file', language: 'plaintext'},
],
package.json has the following activationEvents
"activationEvents": [
"onStartupFinished",
"onLanguage:plaintext",
"onLanguage:python"
]
All the functionality works in plaintext, and nothing at all happens in Python files.
本文标签: visual studio codeMy VScode extension responds to one language type but not anotherStack Overflow
版权声明:本文标题:visual studio code - My VScode extension responds to one language type but not another - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744704659a2620770.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论