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
configures the TypeScript plugin using the following VSCode settings:
{"mdx.config": {"plugins": []}}
The TypeScript plugin would look something like this:
module.exports=createAsyncTSServerPlugin(['.mdx'],2,// This tells Volar at which `tsconfig.json` key to look.'mdx',async(ts,info,options)=>{// The options are available here somehow.})
This would be equivalen to having the following tsconfig.json:
Based on the VSCode documentation on
contributes.typescriptServerPlugins
, it’s possible to send configuration via an extension.We could use this to provide a uniform interface to configure Volar based TypeScript plugins through either
tsconfig.json
or VSCode settings.The following VSCode extension:
configures the TypeScript plugin using the following VSCode settings:
The TypeScript plugin would look something like this:
This would be equivalen to having the following
tsconfig.json
:Related:
checkJs
mdx-js/mdx-analyzer#352 (comment)The text was updated successfully, but these errors were encountered: