javascript - Files generated by TypeScript compiler not recognized as project files in PhpStorm -


i use phpstorm 2017.2.3. don't know if it's ide bug, or if i'm doing wrong .js files generated typescript compiler somehow "invisible" far project concerned.

i have created separate project demonstrate issue in isolation. contains 4 files: 1 javascript file added manually (manually-added.js), 1 javascript file generated typescript compiler (typescript-generated.js), typescript file (typescript-generated.ts) , tsconfig.json file following configuration:

{   "compileroptions": {     "target": "es5",     "moduleresolution": "node",     "module": "commonjs"   } } 

the thing have done apart creating these files checking enable typescript comipler in phpstorm settings , pointing tsconfig.json file.

and here's how looks in phpstorm:

enter image description here

note different icon of typescript-generated.js file. suggests wrong file (and indeed case). here's what:

  • it has different icon mentioned above.
  • you can't use mark plain text on (if nothing happens).
  • it "invisible" file watchers , scopes.

as can see scopes , file watchers detect 3 files instead of 4:

enter image description here

all suggestions appreciated.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -