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
Both options will enable logging from the NetBeans server in the VS Code Output Channel.
126
+
127
+
### Cleaning the Extension
80
128
81
129
Often it is also important to properly clean everything. Use:
82
130
83
131
```bash
84
-
ant clean-vscode-ext
85
-
cd netbeans/
86
-
netbeans$ ant clean
132
+
$ ant clean-vscode-ext
133
+
$ cd netbeans/
134
+
$ ant clean
87
135
```
88
136
89
-
### Testing
137
+
### Testing the Extension
90
138
91
139
The `java.lsp.server` module has classical (as other NetBeans modules) tests.
92
140
The most important one is [ServerTest](https://github.com/apache/netbeans/blob/master/java/java.lsp.server/test/unit/src/org/netbeans/modules/java/lsp/server/protocol/ServerTest.java)
@@ -107,3 +155,29 @@ $ npm_config_https_proxy=http://your.proxy.com:port ant test-vscode-ext
107
155
108
156
when executing the tests for the first time. That shall overcome the proxy
109
157
and download an instance of `code` to execute the tests with.
158
+
159
+
## Working with git submodules
160
+
161
+
This project uses [git submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules) . In particular netbeans and netbeans-l10n are submodules pointing to specific commits in their respective repositories .
162
+
163
+
### Switching Branches
164
+
165
+
Add the --recurse-submodules flag to the git checkout command to update the submodules during the checkout.
166
+
```bash
167
+
git checkout --recurse-submodules <branch_name>
168
+
```
169
+
Note:- Merging branches with submodules pointing to different commits can be tricky. Refer the [git submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules) for more details on the same.
170
+
171
+
### Changing submodules versions
172
+
173
+
```bash
174
+
# Fetching changes from remote submodule repositories
0 commit comments