sample-ts-plugin icon indicating copy to clipboard operation
sample-ts-plugin copied to clipboard

Question about tsserverlibrary import.

Open angelozerr opened this issue 7 years ago • 2 comments

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?

angelozerr avatar Apr 19 '17 07:04 angelozerr

@egamma what do you think about that?

angelozerr avatar Apr 28 '17 14:04 angelozerr

I have a question about this library: is it possible to use this library in order to parse & generate typescript code. Currently we're building an editor and we're using a lot of regular expressions in order to change typescript code. But we're looking for a better approach. Thanks a lot, Frank

frankps avatar May 30 '17 15:05 frankps