Community
Participate
Working Groups
In our eslint Tern plugin we have a delegate we attach to the eslint options, which allows us to ask Tern questions from inside eslint rule code. The problem is we recreate this delegate each time the #run function is called. We should just create it once and reuse it (since it holds no state of any kind).
Created attachment 262409 [details] Proposed patch Might be good enough.
Created attachment 262440 [details] proposal Heres what I was thinking - only creating the entire object only once when the plugin is loaded and then initialize it per use.
Fixed in: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=c53cec5acd354bf2a7df54ca35ed8be0bb65b744