Skip to content

Commit ba0f6c7

Browse files
committed
misc: add README.md
1 parent dbb004a commit ba0f6c7

File tree

4 files changed

+32
-1
lines changed

4 files changed

+32
-1
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Drupal LS
2+
The missing language server for Drupal.
3+
4+
WIP!
5+
6+
## Features
7+
### Hover
8+
- Service references
9+
- Service class
10+
- Route references
11+
- Route controller/form
12+
- Hook references
13+
### Go to definition
14+
- Service references
15+
- Service class
16+
- Route references
17+
- Route controller/form
18+
- Hook references
19+
### Completion
20+
- Services
21+
- Routes
22+
- Hook snippets
23+
- General snippets
24+
25+
## Roadmap
26+
### Completion
27+
- [ ] Autocomplete permissions.
28+
- [ ] Autocomplete plugin IDs (eg. queue workers, blocks, fields, migrate source/process/destination).
29+

src/server/handle_notification.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ pub fn handle_notification(notification: Notification) -> () {
1212
"textDocument/didChange" => handle_text_document_did_change(notification.params),
1313
"textDocument/didClose" => (),
1414
"textDocument/didSave" => (),
15+
"exit" => (),
1516
_ => log::warn!("Unhandled notification {:?}", notification),
1617
};
1718
}

src/server/handle_request.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ pub fn handle_request(request: Request) -> Response {
1212
"textDocument/hover" => handle_text_document_hover(request),
1313
"textDocument/definition" => handle_text_document_definition(request),
1414
"textDocument/completion" => handle_text_document_completion(request),
15+
"shutdown" => None,
1516
_ => {
1617
log::warn!("Unhandled request {:?}", request);
1718
None

src/server/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ pub async fn start_lsp() -> Result<()> {
7575
io_threads.join()?;
7676

7777
// Shut down gracefully.
78-
log::warn!("Shutting down Drupal LSP server");
78+
log::info!("Shutting down Drupal LSP server");
7979
Ok(())
8080
}

0 commit comments

Comments
 (0)