You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Volar.js to implement the TypeScript Language Service Plugin. To do this, I have created an object that satisfies import('@volar/language-core').LanguagePlugin<string>. However, I have written code in the LanguagePlugin.getLanguageId function that causes a runtime error.
I would have expected the error to be contained in the tsserver.log. However, it was not actually contained. This made it difficult to determine why the TypeScript Language Service Plugin was not working.
I would like the error to be contained in tsserver.log for debugging.
Summary
I use Volar.js to implement the TypeScript Language Service Plugin. To do this, I have created an object that satisfies
import('@volar/language-core').LanguagePlugin<string>
. However, I have written code in theLanguagePlugin.getLanguageId
function that causes a runtime error.I would have expected the error to be contained in the
tsserver.log
. However, it was not actually contained. This made it difficult to determine why the TypeScript Language Service Plugin was not working.I would like the error to be contained in tsserver.log for debugging.
Reproduction
repository: https://github.com/mizdra/repro-volar-get-language-id-error
Expected behavior
tsserver.log
containssomething wrong
.Actual behavior
tsserver.log
does not containsomething wrong
.Additional context
Functions such as
LanguagePlugin.createVirtualCode
,LanguagePlugin.typescript.getServiceScript
seem to cause similar problems.The text was updated successfully, but these errors were encountered: