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
console.log("Select 'TypeScript: Use TypeScript Go (Experimental)' in the command palette to enable the extension and disable built-in TypeScript support.\n");
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -45,13 +45,18 @@ This is mainly a testing entry point; for higher fidelity with regular `tsc`, ru
45
45
46
46
### Running LSP Prototype
47
47
48
-
To try the prototype LSP experience:
48
+
* Run `hereby build` to build the LSP server
49
+
* Run `hereby install-extension` to build and install the VS Code extension. (Use `--insiders` to target `code-insiders` instead of `code`.)
50
+
* Copy the `"typescript-go.executablePath"` setting printed by `hereby install-extension` to your VS Code settings.
51
+
* Select "TypeScript: Use TypeScript Go (Experimental)" from the VS Code command palette (or set `"typescript.experimental.useTsgo"` in your VS Code settings).
52
+
53
+
Alternatively, to debug and run the VS Code extension without installing it globally:
49
54
50
55
* Run VS Code in the repo workspace (`code .`)
51
56
* Copy `.vscode/launch.template.json` to `.vscode/launch.json`
52
57
* <kbd>F5</kbd> (or `Debug: Start Debugging` from the command palette)
53
58
54
-
This will launch a new VS Code instance which uses the Corsa LS as the backend. If correctly set up, you should see "typescript-go" as an option in the Output pane:
59
+
This will launch a new VS Code instance which uses the Corsa LS as the backend. If correctly set up, you should see "tsgo" in the status bar when a TypeScript or JavaScript file is open:
0 commit comments