From b2f755ac07ee57113e11d2d8b160cd76dbbaefee Mon Sep 17 00:00:00 2001 From: Danny Tuppeny Date: Wed, 17 Jun 2020 15:06:54 +0000 Subject: [PATCH] Add a note about passing client-id/client-version to LSP doc Change-Id: Ic82e5915e512c78c99b963bbaa74aaed42374726 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151506 Reviewed-by: Brian Wilkerson Commit-Queue: Danny Tuppeny --- pkg/analysis_server/tool/lsp_spec/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/analysis_server/tool/lsp_spec/README.md b/pkg/analysis_server/tool/lsp_spec/README.md index a96bd24952c..8d41b70e92d 100644 --- a/pkg/analysis_server/tool/lsp_spec/README.md +++ b/pkg/analysis_server/tool/lsp_spec/README.md @@ -8,10 +8,10 @@ ## Running the Server -The analysis server snapshot is included in the `bin/snapshots` folder of the Dart SDK. Pass the `--lsp` flag to start the server in LSP mode: +The analysis server snapshot is included in the `bin/snapshots` folder of the Dart SDK. Pass the `--lsp` flag to start the server in LSP mode and the `--client-id` and `--client-version` flags to identify your editor/plugin and version: ``` -dart bin/snapshots/analysis_server.dart.snapshot --lsp +dart bin/snapshots/analysis_server.dart.snapshot --lsp --client-id my-editor.my-plugin --client-version 1.2 ``` Note: In LSP the client makes the first request so there is no obvious confirmation that the server is working correctly until the client sends an `initialize` request. Unlike standard JSON RPC, [LSP requires that headers are sent](https://microsoft.github.io/language-server-protocol/specification).