Skip to content

[folding] [lua] Weird code folding with Lua #3602

Closed

Description

A minor observation about an otherwise great feature! Using the Insiders build, the following Lua code causes weird folding:

function someFunc()

    local longString = [[this is a long
string that spans multiple lines
and has some weird folding]]

    print longString
end

You'll notice that a + shows up on the same "function someFunc()" line and on the last line of the longString declaration. The first + folds up to the declaration line and the second + folds the rest of the function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

editor-foldingEditor code folding issuesfeature-requestRequest for new features or functionalitylanguages-basicBasic language support issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions