File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
server/src/main/kotlin/org/javacs/kt Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -147,24 +147,24 @@ class KotlinWorkspaceService(
147
147
}
148
148
149
149
override fun didChangeWorkspaceFolders (params : DidChangeWorkspaceFoldersParams ) {
150
- for (change in params.event.added ) {
151
- LOG .info(" Adding workspace {} to source path" , change.uri)
150
+ for (change in params.event.removed ) {
151
+ LOG .info(" Dropping workspace {} from source path" , change.uri)
152
152
153
153
val root = Paths .get(parseURI(change.uri))
154
154
155
- sf.addWorkspaceRoot (root)
156
- val refreshed = cp.addWorkspaceRoot (root)
155
+ sf.removeWorkspaceRoot (root)
156
+ val refreshed = cp.removeWorkspaceRoot (root)
157
157
if (refreshed) {
158
158
sp.refresh()
159
159
}
160
160
}
161
- for (change in params.event.removed ) {
162
- LOG .info(" Dropping workspace {} from source path" , change.uri)
161
+ for (change in params.event.added ) {
162
+ LOG .info(" Adding workspace {} to source path" , change.uri)
163
163
164
164
val root = Paths .get(parseURI(change.uri))
165
165
166
- sf.removeWorkspaceRoot (root)
167
- val refreshed = cp.removeWorkspaceRoot (root)
166
+ sf.addWorkspaceRoot (root)
167
+ val refreshed = cp.addWorkspaceRoot (root)
168
168
if (refreshed) {
169
169
sp.refresh()
170
170
}
You can’t perform that action at this time.
0 commit comments