Skip to content

Commit a5c96d1

Browse files
Copilotobserverw
andcommitted
Add documentation references for initialization options and TypeScript dependency
Co-authored-by: observerw <[email protected]>
1 parent bc1f3d6 commit a5c96d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lsp_client/clients/typescript.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class TypescriptClient(
5555
"""
5656

5757
# Preferences for TypeScript/JavaScript language features
58+
# Reference: https://github.com/typescript-language-server/typescript-language-server#initializationoptions
5859
suggest_complete_function_calls: bool = True
5960
include_automatic_optional_chain_completions: bool = True
6061
include_completions_for_module_exports: bool = True
@@ -91,6 +92,8 @@ async def ensure_installed(self) -> None:
9192
)
9293

9394
try:
95+
# typescript-language-server requires the TypeScript compiler as a peer dependency
96+
# Reference: https://github.com/typescript-language-server/typescript-language-server#installing
9497
await anyio.run_process(
9598
["npm", "install", "-g", "typescript-language-server", "typescript"]
9699
)

0 commit comments

Comments
 (0)