Skip to content

Commit 061a1eb

Browse files
Copilotobserverw
andcommitted
Improve error message and add missing Position import to example
Co-authored-by: observerw <[email protected]>
1 parent cef6612 commit 061a1eb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/tsserver.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import anyio
1212

13+
from lsp_client import Position # noqa: F401 - Used in commented example code
1314
from lsp_client.clients.tsserver import TsserverClient, TsserverLocalServer
1415

1516

src/lsp_client/clients/tsserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,6 @@ async def ensure_installed(self) -> None:
9898
return
9999
except CalledProcessError as e:
100100
raise RuntimeError(
101-
"Could not install typescript-language-server. Please install it manually with 'npm install -g typescript-language-server typescript'. "
101+
"Could not install typescript-language-server and typescript. Please install them manually with 'npm install -g typescript-language-server typescript'. "
102102
"See https://github.com/typescript-language-server/typescript-language-server for more information."
103103
) from e

0 commit comments

Comments
 (0)