-
-
Notifications
You must be signed in to change notification settings - Fork 387
Open
Labels
Info NeededMore information is requiredMore information is requiredbugSomething isn't workingSomething isn't working
Description
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Formatting, Plugins
Expected Behaviour
Syntax colouring should be preserved when using plugin.lua transformations
Actual Behaviour
I'm having an issue with syntax colouring when using plugin.lua, note the colour of the inline any annotation.
Reproduction steps
plugin.lua:
function OnSetText(uri, text)
if uri == "file:///c%3A/dev/test/annotation_test/any.lua" then
return {{
start = 15,
finish = 18,
text = " --[[@type any]]"
}}
endSource file (note the new line)
local anything:any
-- new line --Additional Notes
No response
Log File
No response
Metadata
Metadata
Assignees
Labels
Info NeededMore information is requiredMore information is requiredbugSomething isn't workingSomething isn't working
