Open paulvi opened 11 years ago
However even added Node.js library would created problem because client and server side would be mixed:
http://www.eclipse.org/forums/index.php/t/590420/ by Pavel Sosin
In our environment JavaScript is used for both client side and server side development. To distinguish between client side and server-side JavaScript the new "server side" content types (file extension) are defined via JSDT extension point org.eclipse.wst.jsdt.core.jsSource. It caused the problem of cross content type visibility in code completion: variables and functions are visible regardless the file type. The same problem exists also for Libraries: content of Client side and Server side libraries is always visible when either client side or server side script is edited. Is it possible to separate visibility of JavaScript artifacts for CodeCompletionRobot according the Project Path using, for example, org.eclipse.wst.jsdt.core.sourcePathProvider extension point?
getting started with adding custom library support to JSDT http://www.eclipse.org/forums/index.php/t/206427/ started by Philippe Marschall (JSDT jQuery author)
If adding User Library, as JSDT doesn't not support CommonJS modules, modules are exposed entirely, creating mess (as they form one namespace).
To programmatically add a JS library to a project: private void addJSLibToProj(IProject proj) { IJavaScriptProject jsProj = JavaScriptCore.create(proj);