A Typescript Language Service plugin for YAML.
# With PNPM
pnpm add typescript-plugin-yaml -D
# With Yarn
yarn add -D typescript-plugin-yaml
And then add this to tsconfig.json
.
{
"compilerOptions": {
"plugins": [{ "name": "typescript-plugin-yaml" }]
}
}
To use this plugin with Visual Studio Code, you should set your workspace's version of TypeScript, which will load plugins from your tsconfig.json
file. see: Using the workspace version of TypeScript.
You can view TS Server log by enter Typescript: Open TS Server log
in Command Palette.
This plugin was inspired by typescript-plugin-css-modules and borrows heavily from its approach. Thanks for this awesome project.