Skip to content

"Format Code" in .js files doesn't work (ts server died) #4817

@crabulik

Description

@crabulik
  • VSCode Version: 0.10.11
  • OS Version: Windows 7 Enterprise

I don't know, how reproduce this issue on the other system, but in my case it looks like that.

I've started JS project with Aurelia Framework.
And at the begining "Code Format" was working, but after some time i noticed, that:

  1. Code Format isn't working in JS files;
  2. VS Code shows me warning, that TS engine died 5 times for the last 5 minutes;
  3. Code Format works fine, when folder "jspm_packages" in my root folder is delited or contains not all libs from jspm.

After some investigations i've found that, if I add "tsconfig.json" with:

"exclude": [
"node_modules",
"jspm_packages",
"build"
]

Code Format works fine, but TS starts to analyse my JS code, but my project isn't TS, it's ES6 project with Gulp compilation.

Thanks!

Metadata

Metadata

Assignees

Labels

javascriptJavaScript support issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions