This repository was archived by the owner on Nov 21, 2025. It is now read-only.
Commit dd99170
Issue #909 - Explicit support for workspaceFolders
As per https://microsoft.github.io/language-server-protocol/specification#workspace_workspaceFolders
, it's recommended that Language Servers that can work with multi-root
workspaces declare support for workspaceFolders.
For the angular language server, it's able to work with any file,
independently of the workspace root; so it's naturally able to work with
multiple roots.
Declaring support for workspaceFolders allows clients that use the
workspaceFolder heuristic as a way to decide of server instance
multiplicity (should it be a single instance or 1 instance per root) to
decide of starting only 1 instance of the LS. Without such information
from the LS, the client integration has to audit the LS, and force some
strategy to decide of the multiplicity, often in an hardcoded way; at
the risk of being incorrect in the future if server changes its own
strategy.
So declaring workspaceFolders allow to automate a better integration in
clients.
Signed-off-by: Mickael Istria <[email protected]>1 parent 4ae5146 commit dd99170
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
139 | | - | |
| 140 | + | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
243 | 246 | | |
244 | 247 | | |
245 | 248 | | |
| |||
0 commit comments