From e7459ed6d662a5f390274ed744e8140d662d7409 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Thu, 20 Feb 2025 14:29:40 +0100 Subject: [PATCH 1/2] lsp: Declare capability for handling change notifications Tailwind LSP server is already capable of handling change notifications, but it does not declare a capability in it's Server Capabilities. Thus, clients such as Zed do not send out this notification. --- packages/tailwindcss-language-server/src/tw.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/tailwindcss-language-server/src/tw.ts b/packages/tailwindcss-language-server/src/tw.ts index 587a5000..b795be5c 100644 --- a/packages/tailwindcss-language-server/src/tw.ts +++ b/packages/tailwindcss-language-server/src/tw.ts @@ -936,6 +936,11 @@ export class TW { return { capabilities: { textDocumentSync: TextDocumentSyncKind.Full, + workspace: { + workspaceFolders: { + changeNotifications: true, + }, + }, }, } } @@ -953,6 +958,11 @@ export class TW { resolveProvider: true, triggerCharacters: [...TRIGGER_CHARACTERS, ':'], }, + workspace: { + workspaceFolders: { + changeNotifications: true, + }, + }, }, } }) From 2d72e8e70acdf3fb8f65416d1439fd49f4455dde Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Thu, 20 Feb 2025 13:09:13 -0500 Subject: [PATCH 2/2] Update changelog --- packages/vscode-tailwindcss/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vscode-tailwindcss/CHANGELOG.md b/packages/vscode-tailwindcss/CHANGELOG.md index a7a371da..064bf62c 100644 --- a/packages/vscode-tailwindcss/CHANGELOG.md +++ b/packages/vscode-tailwindcss/CHANGELOG.md @@ -2,7 +2,7 @@ ## Prerelease -- Nothing yet! +- LSP: Declare capability for handling workspace folder change notifications ([#1223](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1223)) ## 0.14.6