You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: eclipse/tern.eclipse.ide.server.nodejs.core/schema/nodeJSInstalls.exsd
+24-7Lines changed: 24 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -45,34 +45,51 @@
45
45
</element>
46
46
47
47
<elementname="install">
48
+
<annotation>
49
+
<documentation>
50
+
This extension point allows developers to specify their own Node.js install location. This can be done in two ways:
51
+
<ol>
52
+
<li>A developer can implement <i>INodejsInstallProvider</i> interface to programmatically tell Tern.java where Node.js is installed. This is useful for situations where you need to do some computations before specifying the location path.
53
+
<li>Bundle Node.js in the extending bundle and specify the location of the Node program relative to the bundle. If you ship Node.js in your bundle in the form of a ZIP archive, make sure you specify the ZIP location withing the bundle using the <i>zip</i> attribute.
54
+
</ol>
55
+
</documentation>
56
+
</annotation>
48
57
<complexType>
49
-
<sequence>
50
-
</sequence>
51
58
<attributename="id"type="string"use="required">
52
59
<annotation>
53
60
<documentation>
54
-
61
+
The id of this Nodejs install. Each known Nodejs install has a distinct id. Ids are intended to be used internally as keys; they are not intended to be shown to end users.
55
62
</documentation>
56
63
</annotation>
57
64
</attribute>
58
65
<attributename="name"type="string"use="required">
59
66
<annotation>
60
67
<documentation>
61
-
68
+
The displayable name for this Nodejs install.
69
+
</documentation>
70
+
</annotation>
71
+
</attribute>
72
+
<attributename="class"type="string">
73
+
<annotation>
74
+
<documentation>
75
+
Provides a way to programmatically specify the install location of a Node.js within the system. This allows extenders to compute install locations that are not in the extending bundle. Extenders must implement <i>tern.eclipse.ide.server.nodejs.core.INodejsInstallProvider</i> interface.
If path doesn't exist, specify a ZIP archive within the bundle that contains the node program. This extension will unzip it and look for the node path.
Copy file name to clipboardExpand all lines: eclipse/tern.eclipse.ide.server.nodejs.core/src/tern/eclipse/ide/server/nodejs/internal/core/NodejsInstall.java
+41-23Lines changed: 41 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,32 @@
1
1
/**
2
-
* Copyright (c) 2013-2016 Angelo ZERR.
2
+
* Copyright (c) 2013-2016 Angelo ZERR, IBM.
3
3
* All rights reserved. This program and the accompanying materials
4
4
* are made available under the terms of the Eclipse Public License v1.0
5
5
* which accompanies this distribution, and is available at
6
6
* http://www.eclipse.org/legal/epl-v10.html
7
7
*
8
8
* Contributors:
9
9
* Angelo Zerr <angelo.zerr@gmail.com> - initial API and implementation
10
+
* Victor Sosa <sosah.victor@gmail.com> - Extension to allow locations computed programmatically
0 commit comments