vscode-matlab
vscode-matlab copied to clipboard
if, else, end one liners disrupt the outline
Hello,
function printNice(param)
if param; disp('true'); else; disp('false'); end
cmd = '@echo nice';
dos(cmd);
end
produces a wrong outline:
else and cmd are shown outside the function.
Regards, Simon
Ouch will have to disable folds in vscode-textmate-languageservice
when they are on the same line.
This one wasn't as critical as the other perf issues, but I spent some time and sketched out a fold algorithm that could handle the issue. It'll be fixed when the pull is merged 😃
FWIW I also killed the ability to generate multiple symbols per line.
The VS Code team made a design decision to accept the first keyword token per line as the only important one.