Skip to content

Language server freeze for couple of seconds with large template file #378

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

Closed
drakeee opened this issue Feb 3, 2021 · 2 comments
Closed
Labels
performance Related to the performance of the langauge server

Comments

@drakeee
Copy link

drakeee commented Feb 3, 2021

Describe the bug
I have a large template Lua file with around thousands of functions in it. Unfortunately the language server can't keep up with the large file and it hangs up for couple of seconds.

To Reproduce
Steps to reproduce the behavior:

  1. Place the Lua file from the archive anywhere in your workspace native.zip
  2. Try to type some function: native.somefunctionamehere

Expected behavior
It shouldn't take ten seconds to search for the function

Environment (please complete the following information):

  • OS: Windows 10, 64 bit
  • Is WSL remote? No
  • Client: VSCode
@sumneko sumneko added the performance Related to the performance of the langauge server label Feb 4, 2021
@sumneko sumneko closed this as completed in cf2c5fe Feb 4, 2021
@drakeee
Copy link
Author

drakeee commented Feb 4, 2021

Arigato gozaimasu <3

@drakeee
Copy link
Author

drakeee commented Feb 4, 2021

Oh, looks like there is another bug, some of the functions aren't shown in the list when I'm typing, but it get recognized when I hover the function :(

(changed the class name to nativea to check if it's a cache issue)
test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Related to the performance of the langauge server
Projects
None yet
Development

No branches or pull requests

2 participants