vscode-cfml icon indicating copy to clipboard operation
vscode-cfml copied to clipboard

Jumping to method does not work when brace ({) is on same line as component directive

Open neoramos opened this issue 7 years ago • 1 comments

Firstly, thank you so much for providing this great plugin to the CF community.

After a recent vscode upgrade, I noticed that in some cfc's when I pressed cmd+r (mac) to type in a method or function name and jump to it was no longer working.

I noticed this functionality still worked in other languages (e.g. go, js, etc).

Don't know why, but I decided to move the component starting brace to the next line and the functionality returned.

Here is an example: Brace on line 1: component name="BaseService" accessors=true output=false inject=true singleton=true { vs Brace on line 2 (this fixed the issue for me): component name="BaseService" accessors=true output=false inject=true singleton=true {

neoramos avatar Feb 01 '19 18:02 neoramos

Just realized there is something else going on. I closed and opened the same component (where I moved the starting brace to line 2) and the functionality is gone again. To try it out, I moved the brace back to line 1 and saved and it works again. Have no idea what's going on (perhaps caching) :(

neoramos avatar Feb 01 '19 18:02 neoramos