microsoft/language-server-protocol

DidChangeConfigurationParams should contain a workspace URI

Open

#457 创建于 2018年4月22日

在 GitHub 查看
 (1 评论) (2 反应) (0 负责人)HTML (956 fork)batch import
configurationfeature-requesthelp wanted

仓库指标

Star
 (12,810 star)
PR 合并指标
 (平均合并 19小时 29分钟) (30 天内合并 12 个 PR)

描述

With 3.6.0 the protocol specification got multi-workspace support, however the workspace/didChangeConfiguration notification is still specced for single workspace roots. Often there is project/workspace specific configuration which should also trigger the workspace/didChangeConfiguration notification, however the server has no way of knowing for which workspace this new configuration applies and could just apply it to all workspaces which may yield in wrong future behaviour of the server.

Adding the workspace URI to DidChangeConfigurationParams is an easy way to make servers aware of workspace specific configuration without breaking backwards compatibility. If the field is unset/empty the server can just treat it like it did before such a change and if the server doesn't even support it, it will just treat it like before.

贡献者指南