Hello Pavel:
For 4.0, the preferred code assistant approach is server-side. We have done this work for Java, but not any other language. And even for Java, we have a lot more work left to do. In the Java plug-in, we include the JDT core and this gets injected into the workspace runtime when a developer adds a project that has Java files or a Java-related project type. We then place a standardized RESTful wrapper around these JDT services that is hooked into the editor. The performance and responsiveness is quite good - feels just like localhost development.
We have not done this for _javascript_. 4.0 uses the Orion editor, so currently when a _javascript_ file is detected, we use the embedded utilities of Orion for _javascript_ code assistants, which are client-side. This works ok for single files, but it does not handle any cross-project _javascript_ references.
As you indicate, a better approach would be to add in a Tern-style syntax analysis running within the workspace hooked up to the standard RESTful interfaces so that the remote editor in the browser can include those recommendations.
We do not have any near term plans to add this, but would be able to support you if you wanted to explore setting this up. We'd love to explore this together.