artbycrunk / vscode-maya

A Visual Studio Code extension with support for coding for Maya.
MIT License
45 stars 11 forks source link

Incorrect MEL procedure name extraction for some proc types #37

Open EoinODoodles opened 1 year ago

EoinODoodles commented 1 year ago

When listing a MEL file's procedures in the Outline view panel, the name of a proc seems to be retrieved incorrectly for some procedure return types. For example: "proc float myFloatFunction(float $input)" will have its name listed as "float" instead of "myFloatFunction". The same applies for float[], int, int[], bool, bool[]. "string" and "string[]" type procs do detect the proc name though.

Maybe it's related to this line in extension.ts? (Line 116)

let procTypes = ["string", "string[]"]