You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vscode-client/README.md
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,28 +6,27 @@ at once with minimal extra configuration per language.
6
6
7
7
## Using this extension
8
8
9
-
1. Follow the [Getting Started instructions for this project](../README.md)
10
-
1. Run `npm install`.
11
-
1. Run `npm run vscode` to start a new VSCode instance. Use `npm run vscode -- /path/to/mydir` to open the editor to a specific directory.
12
-
1. Open a `.go` file and hover over text to start using the Go language server.
9
+
10
+
1. Follow the [Develop against VS Code instructions](/../../#develop-against-vs-code)
11
+
1. Open a `.py` file and hover over text to start using the Python language server.
13
12
14
13
To view a language server's stderr output in VSCode, select View → Output.
15
14
To debug further, see the "Hacking on this extension" section below.
16
15
17
-
After updating the binary for a language server (during development or after an upgrade), just kill the process (e.g., `killall langserver-go`).
16
+
After updating the binary for a language server (during development or after an upgrade), just kill the process (e.g., `killall pyls`).
18
17
VSCode will automatically restart and reconnect to the language server process.
19
18
20
19
> **Note for those who use VSCode as their primary editor:** Because this extension's functionality conflicts with other VSCode extensions
21
-
(e.g., showing Go hover information), the `npm run vscode` script launches an separate instance of VSCode and stores its config in `../.vscode-dev`.
20
+
(e.g., showing Python hover information), the `yarn run vscode` script launches a separate instance of VSCode and stores its config in `../.vscode-dev`.
22
21
It will still show your existing extensions in the panel (which seems to be a VSCode bug), but they won't be activated.
23
22
24
23
## Adding a language server
25
24
26
-
Register your language server at the bottom of [`extension.ts`](https://github.com/sourcegraph/langserver/blob/master/vscode-client/src/extension.ts).
25
+
Register your language server at the bottom of [`extension.ts`](src/extension.ts).
27
26
28
27
## Hacking on this extension
29
28
30
-
1. Run `npm install` in this directory (`vscode-client`).
29
+
1. Run `yarn install` in this directory (`vscode-client`).
31
30
1. Open this directory by itself in Visual Studio Code.
32
31
1. Hit F5 to open a new VSCode instance in a debugger running this extension. (This is equivalent to going to the Debug pane on the left and running the "Launch Extension" task.)
0 commit comments