You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect the reserved word to be suggested first, then any other variables that start with that name. OR I would expect the reserved word to be the only suggestion until I got to "repeat_", then I would expect the other variables to be suggested.
Actual behaviour
Only the reserved word is ever suggested.
The text was updated successfully, but these errors were encountered:
The listed Expected Behavior after OR is actually what happens currently, though it takes 2-3 extra characters after the reserved word for any suggestion to appear. Underscores are apparently not counted in those extra required characters either?
This also occurs when any completion item is suggested. Given the following example where completions are requested after smu:
localsmu_stuff=1smu
The variable smu_stuff would not be suggested because the smu completion item would be in the list. However, narrowing the scope of the variable name to smu_stuwould suggest smu_stuff because the extension has run out of possible suggestions.
When we run out of suggestions, then native VSCode suggestions take over and start populating found words. This native suggestion engine seems to have trouble with underscores. Consider the following example where completions are requested after smus:
Subject of the issue
Variable names are not suggested if they start with a reserved word.
Your environment
Version: 1.28.0 (user setup)
Commit: 431ef9da3cf88a7e164f9d33bf62695e07c6c2a9
Date: 2018-10-05T14:58:53.203Z
Electron: 2.0.9
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64
Steps to reproduce
Code example:
local repeat_id = display.create(settings_id, display.OBJ_EDIT_NUMBER, 200, 260, "Repeat Tolerance", "Repeat readings are ignored", display.NFORMAT_INTEGER, repeatThreshold*100, 1, 100, '%')
display.setevent(repea)
Expected behaviour
I would expect the reserved word to be suggested first, then any other variables that start with that name. OR I would expect the reserved word to be the only suggestion until I got to "repeat_", then I would expect the other variables to be suggested.
Actual behaviour
Only the reserved word is ever suggested.
The text was updated successfully, but these errors were encountered: