Skip to content

Commit 3357165

Browse files
lsp: Declare capability for handling change notifications (#1223)
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. --------- Co-authored-by: Jordan Pittman <jordan@cryptica.me>
1 parent 899e734 commit 3357165

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

packages/tailwindcss-language-server/src/tw.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,11 @@ export class TW {
936936
return {
937937
capabilities: {
938938
textDocumentSync: TextDocumentSyncKind.Full,
939+
workspace: {
940+
workspaceFolders: {
941+
changeNotifications: true,
942+
},
943+
},
939944
},
940945
}
941946
}
@@ -953,6 +958,11 @@ export class TW {
953958
resolveProvider: true,
954959
triggerCharacters: [...TRIGGER_CHARACTERS, ':'],
955960
},
961+
workspace: {
962+
workspaceFolders: {
963+
changeNotifications: true,
964+
},
965+
},
956966
},
957967
}
958968
})

packages/vscode-tailwindcss/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Prerelease
44

5-
- Nothing yet!
5+
- LSP: Declare capability for handling workspace folder change notifications ([#1223](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1223))
66

77
## 0.14.6
88

0 commit comments

Comments
 (0)