GithubHelp home page GithubHelp logo

ryancavanaugh / sample-ts-plugin Goto Github PK

View Code? Open in Web Editor NEW
68.0 2.0 4.0 10 KB

Sample TypeScript Language Service Plugin

License: Apache License 2.0

TypeScript 100.00%
typescript plugin extensibility

sample-ts-plugin's Issues

Question about tsserverlibrary import.

At first thanks for your sample, it is very helpfull.

https://github.com/angelozerr/tslint-language-service is a plugin for tslint. We have done like your sample to import tsserverlibrary:

import * as ts_module from "../node_modules/typescript/lib/tsserverlibrary";

But I tell me why you have not done like this:

import * as ts_module from "typescript/lib/tsserverlibrary";

With this declaration typescript can be hosted in several node_modules folder. no?

Logging/debugging instructions with VS Code

Hi ๐Ÿ‘‹

I try to create a TypeScript plugin and followed most of your instructions, but it looks like the plugin isn't really used. So some questions:

  1. Should I see an error somewhere, if I misconfigured the plugins setting? (I can't see an error from the language server inside VS Code or inline inside the tsconfig.json.
  2. If the plugin loads correctly, should I see my logging in the Output pane of VS Code, if I set "typescript.tsserver.trace": "verbose" in my workspace settings?
  3. Can name of an plugin be a path as well (either absolute or relative) or refer to a file inside a package (e.g. cool-lib/ts-plugin) or is it the name of the package and the TypeScript plugin must be the main file?

Thank you :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.