Skip to content

Commit b82f9cf

Browse files
authored
Pass correct workspaceFolder in configuration response (sublimelsp#29)
The break in the loop was missing, causing us to send less relevant workspace folder when there was multiple that matched the file URI. The session folders are sorted longest-first so the first found is the most relevant one. Resolves sublimelsp#28
1 parent 005d211 commit b82f9cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ def on_workspace_configuration(self, params, configuration) -> None:
3636
for folder in session.get_workspace_folders():
3737
if folder.includes_uri(scope_uri):
3838
configuration['workspaceFolder'] = folder.to_lsp()
39+
break

0 commit comments

Comments
 (0)