-
-
Notifications
You must be signed in to change notification settings - Fork 351
Line pickup issues #398
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
Comments
I can also reproduce it in VSCode. |
Please show me the log, see https://github.com./sumneko/lua-language-server/wiki/Default-log-path |
VSCode: Sublime Text: |
I still cannot reproduce this, please apply this patch and show me the new log, thank you! --- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -270,6 +270,7 @@ proto.on('textDocument/didChange', function (params)
end
files.clearDiff(uri)
local text = files.getText(uri) or ''
+ log.debug('didChange-param', util.dump(text), util.dump(changes))
for _, change in ipairs(changes) do
if change.range then
local start, finish = files.unrange(uri, change.range)
@@ -278,6 +279,7 @@ proto.on('textDocument/didChange', function (params)
text = change.text
end
end
+ log.debug('didChange-result', util.dump(text))
files.setText(uri, text, true)
end) |
Many thanks! Now I can reproduce it now! |
Please checkout this commit and check if it works! |
Seems to be good now. Thanks! |
Please help me test if this commit works! |
Yeah this one seems to work properly. |
Typing something at the end of the file doesn't seem to get picked up the the server, when hovered a named function for example it produces no tooltip, unless you reopen the file itself.
The text was updated successfully, but these errors were encountered: