jbaron / cats

Code Assistant for TypeScript
Apache License 2.0
408 stars 66 forks source link

Support outline for JS #132

Closed duanyao closed 8 years ago

duanyao commented 9 years ago

Is it possible to show outline view of JS as well? TS is claimed to be backward-compatible with JS, so maybe it's possible to use TS language service to do this.

jbaron commented 9 years ago

Actually a lot of the current TS only functionality could be made available also to JS files. However if I would just handle them as regular TS files, they would be added to the build etc *the language service would think they are part of the project".

So will have to create a special JS worker that handles the intellisense for JS files. Not completely trivial, but doable and I can imagine a help to a lot of developers. So will put it on the todo list.

duanyao commented 9 years ago

Good, thanks!

jbaron commented 8 years ago

More flexible now. Anything that is part of a tsconfig project will benefit from outline, code completion etc.