ryancavanaugh / sample-ts-plugin Goto Github PK
View Code? Open in Web Editor NEWSample TypeScript Language Service Plugin
License: Apache License 2.0
Sample TypeScript Language Service Plugin
License: Apache License 2.0
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?
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:
plugins
setting? (I can't see an error from the language server inside VS Code or inline inside the tsconfig.json
.Output
pane of VS Code, if I set "typescript.tsserver.trace": "verbose"
in my workspace settings?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 :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.