typescript-jsdoctag-completions-plugin

2.0.4-beta • Public • Published

GitHub

TypeScript JSDoc Tag Completions Plugin

This plugin provides jsdoc tag completion and completion details. (with document of tag

  • In the Preset API, by defining documentation and syntax for each tag,
    it will be displayed in the completion detail.

How to try?

$ npm install --save-dev typescript typescript-jsdoctag-completions-plugin

next, configure plugin to tsconfig.json.

{
  "compilerOptions": {
    "target": "es2019",
    "module": "esnext",
    "strict": true,
    // In TypeScript 5.x, compilerOptions/locale was removed,
    // so Moved locale to plugin settings.
    // however, for older versions of ts,
    // this value is still referenced as before from this plugin.
    // "locale": "ja",
    "plugins": [
      {
        "name": "typescript-jsdoctag-completions-plugin",
        // Plugin specific configuration
        // builtin preset is "default" and "closure".
        // If you want to use a jsdoc tag preset that you have defined yourself based on the preset API,
        // specify the path of that module.
        "preset": "closure",
        "verbose": true,     // enable/disable plugin logging
        // plugin refers to the value of `@compilerOptions/plugins[@name=typescript-jsdoctag-completions-plugin]/locale`
        // If not set, use the OS locale
        "locale": "ja"
      }
    ]
  }
}

then launch Visula Studio Code, etc

About JSDoc Tag Preset

  • plugin builtin
Preset name Details
default TypeScript builtin JSDoc Tags with Inline JSDoc Tags
closure Closure Compiler JSDoc Tags
  • external defined preset

    • To create your own preset, implement TJSDocTagRawPreset as defined in preset-api.d.ts

Locale priority

License

This project is licensed under the MIT License - see the LICENSE file for details

Package Sidebar

Install

npm i typescript-jsdoctag-completions-plugin

Weekly Downloads

12

Version

2.0.4-beta

License

MIT

Unpacked Size

264 kB

Total Files

15

Last publish

Collaborators

  • motrohi