Skip to content
This repository has been archived by the owner on Oct 10, 2018. It is now read-only.

Commit

Permalink
feat: add JavaScript mode to support javascript files for importing (#…
Browse files Browse the repository at this point in the history
…263)


Adding javascript mode to enable javascript files for beeing imported. Also upgrades the dependencies.
  • Loading branch information
buehler authored Aug 10, 2017
1 parent 95298dc commit 0ea7816
Show file tree
Hide file tree
Showing 15 changed files with 1,562 additions and 74 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ Here is a brief list, of what TypeScript Hero is capable of (more at the end):
- "Light bulb feature" that fixes code you wrote
- Sort and organize your imports (sort and remove unused)
- Code outline view of your open TS / TSX document
- All the cool stuff for JavaScript as well! (experimental stage though, better description below.)
- Add imports from javascript files
- Code outline for JS / JSX files
- Intellisense for JS / JSX files

## Commands

Expand Down Expand Up @@ -83,6 +87,7 @@ The following settings do have the prefix `resolver`. So an example setting coul
| disableImportSorting | Disable sorting during organize imports action |
| importGroups | The groups that are used for sorting the imports (description below) |
| ignoreImportsForOrganize | Imports that are never removed during organize import (e.g. react) |
| resolverMode | Which files should be considered to index for TypeScript Hero |

### Code outline view

Expand Down Expand Up @@ -213,6 +218,16 @@ see what's in them. If you click on an element, the editor will jump to the loca
By now, only typescript / typescript-react is supported. Maybe this will wander in it's own extension to support
more languages than those two.

### ES6 / JavaScript support

As of now, this is kind of an experimental stage. TypeScript Hero can be set into an `ES6` or `Both` mode, instead
of only `TypeScript`. With one of either modes, it will scan for javascript files in the workspace.

Right now, only files in the workspace are considered "worth", because of the immense amount of javascript files
in the `node_modules`. So if you set TSH to `ES6` it will scan all typescript declarations in the `node_modules`, and
your javascript files in the workspace. If you set it to `Both`, it will scan all typescript files and the javascript
files in the workspace (as well as the declarations).

## Known Issues

Please visit [the issue list](https://github.com/buehler/typescript-hero/issues) :-)
Loading

0 comments on commit 0ea7816

Please sign in to comment.