Skip to content

Commit fe11824

Browse files
committed
Fix ht use in favour of using lsp-protocol.el
1 parent 5806549 commit fe11824

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

lsp-java.el

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,15 +1311,17 @@ current symbol."
13111311
(with-lsp-workspace workspace
13121312
(lsp--set-configuration (lsp-configuration-section "java"))
13131313
(lsp--server-register-capability
1314-
(ht ("id" "test-id")
1315-
("method" "workspace/didChangeWatchedFiles")
1316-
("registerOptions" (ht ("watchers"
1317-
(vector (ht ("globPattern" "**/*.java"))
1318-
(ht ("globPattern" "**/pom.xml"))
1319-
(ht ("globPattern" "**/*.gradle"))
1320-
(ht ("globPattern" "**/.project"))
1321-
(ht ("globPattern" "**/.classpath"))
1322-
(ht ("globPattern" "**/settings/*.prefs"))))))))))
1314+
(lsp-make-registration
1315+
:id "test-id"
1316+
:method "workspace/didChangeWatchedFiles"
1317+
:register-options? (lsp-make-did-change-watched-files-registration-options
1318+
:watchers
1319+
(vector (lsp-make-file-system-watcher :glob-pattern "**/*.java")
1320+
(lsp-make-file-system-watcher :glob-pattern "**/pom.xml")
1321+
(lsp-make-file-system-watcher :glob-pattern "**/*.gradle")
1322+
(lsp-make-file-system-watcher :glob-pattern "**/.project")
1323+
(lsp-make-file-system-watcher :glob-pattern "**/.classpath")
1324+
(lsp-make-file-system-watcher :glob-pattern "**/settings/*.prefs")))))))
13231325
:completion-in-comments? t
13241326

13251327
:download-server-fn #'lsp-java--ensure-server))

0 commit comments

Comments
 (0)