Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Small IntelliSense delay when using Go modules #2217

Closed
mmcmm opened this issue Dec 27, 2018 · 7 comments
Closed

Small IntelliSense delay when using Go modules #2217

mmcmm opened this issue Dec 27, 2018 · 7 comments
Labels
go-modules Related to Go modules upstream

Comments

@mmcmm
Copy link

mmcmm commented Dec 27, 2018

I'm noticing a very small delay between typing and auto complete, of course not a big deal but I do find it a little annoying, I did a test between a ts file and go file

here is the go file https://gyazo.com/f2658d3c4c2e57514b554cb05bed4a41
here is the tsx file https://gyazo.com/7299d9e89040a6a308aedadcf1d30130

Maybe is just me, but I'm seeing a small milliseconds delay. I'm using go modules.

Thanks

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Dec 29, 2018

Thanks for reporting this @mxxcx
Since you are using Go modules, can you please create this issue in https://github.com/stamblerre/gocode?

@stamblerre can help figuring out what is going on.

@ramya-rao-a ramya-rao-a changed the title Small IntelliSense delay Small IntelliSense delay when using Go modules Dec 29, 2018
@ramya-rao-a ramya-rao-a added go-modules Related to Go modules upstream labels Dec 29, 2018
@ramya-rao-a
Copy link
Contributor

Also, just to be sure that you are using the latest gocode for Go modules, please run the command Go: Install/Update Tools, select gocode-gomod, press Ok to update it and try again

@mmcmm
Copy link
Author

mmcmm commented Dec 29, 2018

@ramya-rao-a I just updated, although I do update the tools regularly, and the delay is still there. Thanks

https://gyazo.com/c74cb48d0aaa0af2c8dd4fa11b30ecab

@ramya-rao-a
Copy link
Contributor

@mxxcx The auto-completion in module mode is known to be slower than in the non-module mode. @stamblerre and her team are working on improving performance in this area.

@stamblerre Is there anything @mxxcx can share to see if the slowness being seen is what we are already aware about or if it is being caused by something else?

@stamblerre
Copy link
Contributor

@mxxcx: is your Go project very large?

@mmcmm
Copy link
Author

mmcmm commented Jan 2, 2019

@stamblerre decently large, over 14k lines of code.

@stamblerre
Copy link
Contributor

I expect the delay you are seeing is a result of the speed of go/packages on large codebases. This is something we're working on, but unfortunately it's not a specific result of gocode. Hopefully, we will have a fix for this soon, and I apologize for the latency issues.

@mmcmm mmcmm closed this as completed Jan 3, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
go-modules Related to Go modules upstream
Projects
None yet
Development

No branches or pull requests

3 participants