Open kanlukasz opened 4 years ago
Not sure about this one. The reason the opening brace is selected first is because the cursor is next to it and this is deemed more important than whitespace so it becomes the terminal node in the syntax tree and the ranges computed from there. You're right that it differs from the default vscode implementation but it is still possible to select the block without the braces if started within the block.
Comparing to another language, Typescript, ts server shows similar behaviour to intelephense when the cursor is adjacent to opening brace.
Describe the bug Smart Select cannot select content without parentheses The first expansion marks first bracket (what for ??), and then second expansion select all the content, including the brackets. In the end, it is impossible to mark the whole without brackets
To Reproduce
Screenshot - Current behavior
Screenshot - Expected behavior
Platform and version