Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.44 KB

README.md

File metadata and controls

48 lines (35 loc) · 1.44 KB

typescript-plugin-yaml

A Typescript Language Service plugin for YAML.

Usage

# 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.

Debugging

You can view TS Server log by enter Typescript: Open TS Server log in Command Palette.

About

This plugin was inspired by typescript-plugin-css-modules and borrows heavily from its approach. Thanks for this awesome project.