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(
147147 }
148148
149149 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)
152152
153153 val root = Paths .get(parseURI(change.uri))
154154
155- sf.addWorkspaceRoot (root)
156- val refreshed = cp.addWorkspaceRoot (root)
155+ sf.removeWorkspaceRoot (root)
156+ val refreshed = cp.removeWorkspaceRoot (root)
157157 if (refreshed) {
158158 sp.refresh()
159159 }
160160 }
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)
163163
164164 val root = Paths .get(parseURI(change.uri))
165165
166- sf.removeWorkspaceRoot (root)
167- val refreshed = cp.removeWorkspaceRoot (root)
166+ sf.addWorkspaceRoot (root)
167+ val refreshed = cp.addWorkspaceRoot (root)
168168 if (refreshed) {
169169 sp.refresh()
170170 }
You can’t perform that action at this time.
0 commit comments