typestrong / tspms Goto Github PK
View Code? Open in Web Editor NEWAn abstraction on top TypeScript language service, that let you consume it in the context of a project.
An abstraction on top TypeScript language service, that let you consume it in the context of a project.
Subtask of #1
@fdecampredon can you review this file. We can add it to this project directly for now instead of creating a seperate npm dependency (we can move it out once it stabilizes).
In particular the API does two nice things:
Specifically how do you get createLanguageService
(https://github.com/TypeStrong/typescript-project-services/blob/186c4bec51c72d7238919137e04ecb605abe3d9f/src/main/project.ts#L473-L474) to execute in a non UI thread. @fdecampredon I suspect its handled by brackets
and the code is not in this project. But I might be wrong.
Alternatively you might be calling createLanguageService
with a language service host that doesn't have getScriptFileNames
populated and then populating them lazily.
Ok now that the project is a little stable I would like to create a little roadmap.
I quite hate the name that I have given to this project, if anybody has a better idea ... :D
Actually I have hidden the dependency over 'bluebird' (see : https://github.com/TypeStrong/typescript-project-services/blob/master/src/main/project.ts#L20-L21) to avoid forcing people consuming this project to have a bluebird declaration file, however in fact it would be better to let people inject the promise library they are comfortable with.
The project need a read me a description and any kind of documentation helping to consume this project.
Actually the project expose 4 services, completion, definition, error, formatting. The project needs to expose pretty much all the possibilities given by the typescript language service.
The project services interfaces are pretty much all the time consuming/emitting positions based on line/column (see: https://github.com/TypeStrong/typescript-project-services/blob/master/src/main/index.ts#L10-L13), it's pretty handy for brackets-typescript, since it's the format used for codemirror, however will it be the case for atom-typescript ?
Also I guess we should integrate the project with tsconfig instead of using a custom config format
Some parts of the project are somewhat well tested (like project/projectManager) but some others are not tested at all, since the project want to become a foundation for other project it needs to be well-tested and we need code-coverage
Finally we need a contributing.md+ code guideline, also we need to add tslint, that will help anybody that want to contribute to respect our coding standard.
Feel free to comment to give me your point of view, I'll edit the issue if I missed something.
Edit: added tslint part and tsconfig part
Edit2: added the task list
*Edit3 : remove bullet point that won't be addressed
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.