Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Code completion takes seconds using Control+Space #306

Closed
ghost opened this issue Mar 12, 2016 · 4 comments
Closed

Code completion takes seconds using Control+Space #306

ghost opened this issue Mar 12, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Mar 12, 2016

Using Control+Space for Content Assist takes up to 5 seconds. I have tested this both in eclipse 4.5.2 and 3.8.1. Is there any way this delay could be improved? There are no issues with automatic code completion (After "." is pressed).

@derekcicerone-zz
Copy link
Contributor

Sorry, I'm not sure there is much I can do to fix this from the Eclipse side - that functionality comes entirely from the TypeScript team. One thing that might be worth checking is the version of Nodejs installed to ensure its the latest (newer versions tend to have better performance).

@ghost
Copy link
Author

ghost commented Mar 13, 2016

I upgraded from 4.3.1 to 5.8.0 - seems to take about half as long as it did for code completion. Not optimal, but a lot better. Thanks :-)

@mttcr
Copy link

mttcr commented Mar 14, 2016

Hello, just for info, why is the autocompletion almost immediate in Visual Studio Code ? How does the autocompletion works with eclipse-typescript ? Do you use the typescriptServices, or a tsserver running in background (microsoft/TypeScript#2041) ?

@derekcicerone-zz
Copy link
Contributor

Hmm, that's weird. The Eclipse plugin is just using the TypeScript language services which are running via a custom server (not tsserver - it came out well after this project was established). Perhaps there are some unnecessary disk operations or something similar? Perhaps someone would be interested in profiling the bad performance?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants