New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A lot of Pending Requests #969
Comments
I have a similar issue. Please help us on this one, because working in Atom right now is a bit frustrating :) |
Do you mind posting your tsconfig file? |
I have same problem. My project is build on: https://github.com/preboot/angular2-webpack with almost no changes... So my tsconfig is:
|
I had the same issue. Basically, the plugin wasn't able to find my ts files and thats why the pending requests were getting queued up. I got around it by including
and
In my tsconfig. This will rewrite the tsconfig file by scanning through your application for .ts files. Also, make sure that the tsconfig is the root folder of your app src and does not have node_modules as any child. |
@DNRN @nikhildev @pstawinski the solusion is very easy: tsconfig.json
We add:
and compiler ignore the tone of aditional files. |
Thank you! |
So, another data point. I originally had "files": [
"src/ts/main.ts",
"typings/index.d.ts"
] My "filesGlob": [
"src/ts/**/*.ts",
"typings/index.d.ts"
] This apparently lets TS build its index much faster and seems to be the recommended way. My question is, though, is my first way supposed to be supported? |
I also can't understand how there's such a large difference in performance between atom-typescript and VSCode. I wonder what VSCode is doing differently to make it work flawlessly with an angular-cli generated project. I have a component like this: import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit {
constructor(private router: Router) { }
ngOnInit() {
}
onLogin(user) {
// this.router.navigate(['village']);
}
} If I open up the project in VSCode and go to add another import from If I try the same with atom-typescript, my autocompletes can take between 3seconds, 1 minute or sometimes they don't appear at all if I have errors in my code. I'm using TS 2.0.2 and my tsconfig.json inside the root of the project: {
"compilerOptions": {
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": ["es6", "dom"],
"mapRoot": "./",
"module": "es6",
"moduleResolution": "node",
"outDir": "../dist/out-tsc",
"sourceMap": true,
"target": "es5",
"typeRoots": [
"../node_modules/@types"
]
}
} I wouldn't say it's anything to do with Webpack or Broccoli as both of those build-systems are not running at the moment. |
Any solution for this? I am having the same problem in a Anguar 2 project, for me Infinity Pending Requests freezes a lot number. tsconfig.json
|
This issue has been marked as stale because it did not have any activity for the last 90 days or more. Remove the stale label or comment or this will be closed in 14 days |
Hi. I am using Angular 2 and Webpack for developing an Atom with atom-typescript. On every save I have increasing of pending requests. I tried to find solution, however they are old...
Thanks!
The text was updated successfully, but these errors were encountered: