Skip to content

Commit 0522373

Browse files
committed
README.md: use wiki links instead of blob/master/docs
And change the use of https://github.com/golang/vscode-go/blob/master/docs from files in docs directory to relative paths so tools like docs2wiki can translate them consistently. Fixes #2094 Change-Id: I185f590d3d48704d648edcf4ad58b9aee5414690 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/412057 Reviewed-by: Jamal Carvalho <[email protected]>
1 parent 50fd79b commit 0522373

File tree

7 files changed

+38
-38
lines changed

7 files changed

+38
-38
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ For asking questions, see:
1313
- [`#vscode` channel in Gophers Slack](https://invite.slack.golangbridge.org/messages/vscode)
1414
1515
Before filing an issue, please review our troubleshooting guides
16-
* [Troubleshooting problems with debugging](https://github.com/golang/vscode-go/blob/master/docs/debugging.md#troubleshooting)
17-
* [Troubleshooting other problems](https://github.com/golang/vscode-go/tree/master/docs/troubleshooting.md)
16+
* [Troubleshooting problems with debugging](https://github.com/golang/vscode-go/wiki/debugging#troubleshooting)
17+
* [Troubleshooting other problems](https://github.com/golang/vscode-go/wiki/troubleshooting)
1818
1919
Please answer these questions before submitting your issue. Thanks!
2020
-->

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ provides rich language support for the
99
[Go programming language](https://golang.org/).
1010

1111
📣
12-
[Remote attach debugging](docs/debugging.md#connecting-to-headless-delve-with-target-specified-at-server-start-up) is now available via Delve's native DAP implementation with Delve v1.7.3 or newer. It enchances remote debugging with the same
13-
[debugging features](docs/debugging.md) that are already in use for local debugging. It is now the default with the
14-
[Go Nightly](docs/nightly.md) build of the extension and will become the default for the stable releases in mid 2022.
12+
[Remote attach debugging](https://github.com/golang/vscode-go/wiki/debugging#connecting-to-headless-delve-with-target-specified-at-server-start-up) is now available via Delve's native DAP implementation with Delve v1.7.3 or newer. It enchances remote debugging with the same
13+
[debugging features](https://github.com/golang/vscode-go/wiki/debugging) that are already in use for local debugging. It is now the default with the
14+
[Go Nightly](https://github.com/golang/vscode-go/wiki/nightly) build of the extension and will become the default for the stable releases in mid 2022.
1515
We recommend switching your remote attach configurations in `launch.json` to use
1616
`"debugAdapter":"dlv-dap"` now to verify that this works for you.
1717
Please [file a new issue](https://github.com/golang/vscode-go/issues/new/choose) if you encounter any problems.
@@ -29,7 +29,7 @@ extension fits your needs and enhances your development experience.
2929
* [Go installation guide]. This extension works best with Go 1.14+.
3030
* [Managing extensions in VS Code].
3131
* **Step 2.** To activate the extension, open any directory or workspace
32-
containing Go code. Once activated, the [Go status bar](docs/ui.md) will
32+
containing Go code. Once activated, the [Go status bar](https://github.com/golang/vscode-go/wiki/ui) will
3333
appear in the bottom left corner of the window and show the recognized Go
3434
version.
3535
* **Step 3.** The extension depends on [a set of extra command-line tools](#tools).
@@ -46,7 +46,7 @@ You are ready to Go :-) &nbsp;&nbsp; 🎉🎉🎉
4646

4747
Please be sure to learn more about the many [features](#features) of this
4848
extension, as well as how to [customize](#customization) them. Take a look at
49-
[Troubleshooting](docs/troubleshooting.md) and [Help](#ask-for-help) for further
49+
[Troubleshooting](https://github.com/golang/vscode-go/wiki/troubleshooting) and [Help](#ask-for-help) for further
5050
guidance.
5151

5252
If you are new to Go, [this article](https://golang.org/doc/code.html) provides
@@ -72,7 +72,7 @@ In addition to integrated editing features, the extension provides several
7272
commands for working with Go files. You can access any of these by opening the
7373
Command Palette (`Ctrl+Shift+P` on Linux/Windows and `Cmd+Shift+P` on Mac), and
7474
then typing in the command name. See the
75-
[full list of commands](docs/commands.md#detailed-list) provided by this
75+
[full list of commands](https://github.com/golang/vscode-go/wiki/commands#detailed-list) provided by this
7676
extension.
7777

7878
<p align=center>
@@ -85,7 +85,7 @@ Code, not by this extension.
8585

8686
For better syntax highlighting, we recommend enabling
8787
[semantic highlighting](https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide)
88-
by turning on [Gopls' `ui.semanticTokens` setting](https://github.com/golang/vscode-go/blob/master/docs/settings.md#uisemantictokens).
88+
by turning on [Gopls' `ui.semanticTokens` setting](https://github.com/golang/vscode-go/wiki/settings#uisemantictokens).
8989
```
9090
"gopls": { "ui.semanticTokens": true }
9191
```
@@ -94,7 +94,7 @@ by turning on [Gopls' `ui.semanticTokens` setting](https://github.com/golang/vsc
9494

9595
The extension uses a few command-line tools developed by the Go community. In
9696
particular, `go`, `gopls`, and `dlv` **must** be installed for this extension
97-
to work correctly. See the [tools documentation](docs/tools.md) for a complete
97+
to work correctly. See the [tools documentation](https://github.com/golang/vscode-go/wiki/tools) for a complete
9898
list of tools the extension depends on.
9999

100100
In order to locate these command-line tools, the extension searches
@@ -128,16 +128,16 @@ workspace layouts].
128128

129129
The extension needs no configuration and should work out of the box. However,
130130
you may wish to adjust settings to customize its behavior. Please see the
131-
[settings documentation](docs/settings.md) for a comprehensive list of settings.
132-
See [advanced topics](docs/advanced.md) for further customizations and unique
131+
[settings documentation](https://github.com/golang/vscode-go/wiki/settings) for a comprehensive list of settings.
132+
See [advanced topics](https://github.com/golang/vscode-go/wiki/advanced) for further customizations and unique
133133
use cases.
134134

135135
## Troubleshooting
136136

137137
If the extension isn't working as you expect, you can take a look at our
138138
troubleshooting guides. There is one for [general
139-
troubleshooting](docs/troubleshooting.md), and another specifically for
140-
[troubleshooting the debugging feature](docs/debugging.md#troubleshooting).
139+
troubleshooting](https://github.com/golang/vscode-go/wiki/troubleshooting), and another specifically for
140+
[troubleshooting the debugging feature](https://github.com/golang/vscode-go/wiki/debugging#troubleshooting).
141141

142142
## Ask for help
143143

@@ -154,13 +154,13 @@ Go.
154154

155155
If you'd like to get early access to new features and bug fixes, you can use the
156156
nightly build of this extension. Learn how to install it in by reading the
157-
[Go Nightly documentation](docs/nightly.md).
157+
[Go Nightly documentation](https://github.com/golang/vscode-go/wiki/nightly).
158158

159159
## Contributing
160160

161161
We welcome your contributions and thank you for working to improve the Go
162162
development experience in VS Code. If you would like to help work on the VS Code
163-
Go extension, please see our [contribution guide](docs/contributing.md). It
163+
Go extension, please see our [contribution guide](https://github.com/golang/vscode-go/wiki/contributing). It
164164
explains how to build and run the extension locally, and describes the process
165165
of sending a contribution.
166166

@@ -181,14 +181,14 @@ conduct-related issue, please mail [email protected].
181181
[VS Code Go extension]: https://marketplace.visualstudio.com/items?itemName=golang.go
182182
[Go installation guide]: https://golang.org/doc/install
183183
["Getting started with VS Code Go"]: https://youtu.be/1MXIGYrMk80
184-
[IntelliSense]: https://github.com/golang/vscode-go/blob/master/docs/features.md#intellisense
185-
[code navigation]: https://github.com/golang/vscode-go/blob/master/docs/features.md#code-navigation
186-
[code editing]: https://github.com/golang/vscode-go/blob/master/docs/features.md#code-editing
187-
[diagnostics]: https://github.com/golang/vscode-go/blob/master/docs/features.md#diagnostics
188-
[testing]: https://github.com/golang/vscode-go/blob/master/docs/features.md##run-and-test-in-the-editor
189-
[debugging]: https://github.com/golang/vscode-go/blob/master/docs/debugging.md#features
190-
[full feature breakdown]: https://github.com/golang/vscode-go/blob/master/docs/features.md
184+
[IntelliSense]: https://github.com/golang/vscode-go/wiki/features#intellisense
185+
[code navigation]: https://github.com/golang/vscode-go/wiki/features#code-navigation
186+
[code editing]: https://github.com/golang/vscode-go/wiki/features#code-editing
187+
[diagnostics]: https://github.com/golang/vscode-go/wiki/features#diagnostics
188+
[testing]: https://github.com/golang/vscode-go/wiki/features#run-and-test-in-the-editor
189+
[debugging]: https://github.com/golang/vscode-go/wiki/debugging#features
190+
[full feature breakdown]: https://github.com/golang/vscode-go/wiki/features
191191
[workspace documentation]: https://github.com/golang/tools/blob/master/gopls/doc/workspace.md
192-
[`Go: Install/Update Tools` command]: https://github.com/golang/vscode-go/blob/master/docs/commands.md#go-installupdate-tools
192+
[`Go: Install/Update Tools` command]: https://github.com/golang/vscode-go/wiki/commands#go-installupdate-tools
193193
[documentation about supported workspace layouts]: https://github.com/golang/tools/blob/master/gopls/doc/workspace.md
194194
[Workspace Folders]: https://code.visualstudio.com/docs/editor/multi-root-workspaces

docs/debugging.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ These debugging features are possible by using [Delve](https://github.com/go-del
66
The Go extension has been communicating with Delve through a custom debug adapter program (`legacy` mode).
77
As the new [`Delve`'s native debug adapter implementation](https://github.com/go-delve/delve/tree/master/service/dap) has become available (since Delve v1.6.1), the Go extension is transitioning to deprecate the legacy debug adapter in favor of direct communication with Delve via [DAP](https://microsoft.github.io/debug-adapter-protocol/overview).
88

9-
📣 **We are happy to announce that the new _`dlv-dap`_ mode of Delve integration is enabled for _local_ _debugging_ by default. For [_remote_ _debugging_](#remote-debugging) it is the default in [Go Nightly](docs/nightly.md) and is
9+
📣 **We are happy to announce that the new _`dlv-dap`_ mode of Delve integration is enabled for _local_ _debugging_ by default. For [_remote_ _debugging_](#remote-debugging) it is the default in [Go Nightly](nightly.md) and is
1010
available with stable builds on demand with `"debugAdapter": "dlv-dap"` attribute in `launch.json` or `settings.json`!**
1111

1212
Many features and settings described in this document may be available only with the new `dlv-dap` mode.
@@ -39,7 +39,7 @@ The easiest way to update `dlv` on demand is to use the `"Go: Install/Update Too
3939

4040
Once `dlv` is installed on your system, the extension will prompt you for update whenever installing a newer version is necessary (usually after the Go extension upgrade). You can set the `go.toolsManagement.autoUpdate` setting so the extension can update `dlv` automatically for you.
4141

42-
If you need to install `dlv` manually outside of VS Code (for example, you are building a dev container with necessary tools preinstalled, or install `dlv` built from the tree head), follow the instruction in [Manually installing `dlv`](https://github.com/golang/vscode-go/blob/master/docs/debugging.md#manually-installing-dlv).
42+
If you need to install `dlv` manually outside of VS Code (for example, you are building a dev container with necessary tools preinstalled, or install `dlv` built from the tree head), follow the instruction in [Manually installing `dlv`](debugging.md#manually-installing-dlv).
4343

4444
💡 The extension used to install a dev version of `dlv` as a separate binary (known as `dlv-dap`). As Delve DAP is stable and the transition work is near completion, from v0.31.0 (to be released in Jan 2022), the extension will switch to use `dlv`, instead of the `dlv-dap` binary. It is safe to delete `dlv-dap` installed on the system after v0.31.0 release.
4545

@@ -341,7 +341,7 @@ VS Code implements a generic, language-agnostic debugger UI based on [Debug Adap
341341

342342
<p align="center"><img src="images/vscode-go-debug-arch.png" alt="vscode-go debug architecture"> </p>
343343

344-
For information on debugging using the legacy debug adapter, please see the old [Debugging Documentation](https://github.com/golang/vscode-go/blob/master/docs/debugging.md). Note that many new or enhanced features discussed in this document may not be available with the legacy debug adapter.
344+
For information on debugging using the legacy debug adapter, please see the old [Debugging Documentation](debugging.md). Note that many new or enhanced features discussed in this document may not be available with the legacy debug adapter.
345345

346346
### Handling STDIN
347347

@@ -489,7 +489,7 @@ In `.vscode/launch.json`:
489489

490490
On rare occasions, you may want to install `dlv` by yourself instead of letting the extension handle its installation.
491491

492-
First, find where the Go extension finds tools. Like [other tools the extension uses](https://github.com/golang/vscode-go/blob/master/docs/tools.md#tools), the Go extension searches the `dlv` executable from `${GOPATH}/bin`, `${GOBIN}` and `${PATH}` (or `Path` in Windows). So, install `dlv` in the directory. The easiest way to check the tool installation location the Go extension uses is currently by running the `Go: Locate Configured Go Tools` command from the command palette (⇧+⌘+P or Ctrl+Shift+P).
492+
First, find where the Go extension finds tools. Like [other tools the extension uses](tools.md#tools), the Go extension searches the `dlv` executable from `${GOPATH}/bin`, `${GOBIN}` and `${PATH}` (or `Path` in Windows). So, install `dlv` in the directory. The easiest way to check the tool installation location the Go extension uses is currently by running the `Go: Locate Configured Go Tools` command from the command palette (⇧+⌘+P or Ctrl+Shift+P).
493493

494494
If your Go version is 1.16 or newer:
495495

@@ -529,7 +529,7 @@ In this mode the user must first manually start a [`dlv --headless`](https://git
529529

530530
The [headless dlv server](https://github.com/go-delve/delve/tree/master/Documentation/api) can now be used with both `"debugAdapter": "legacy"` (default value) and `"debugAdapter": "dlv-dap"` (with Delve v1.7.3 or newer) as well as Delve's [command-line interface](https://github.com/go-delve/delve/tree/master/Documentation/cli) via `dlv connect`. The `--accept-multiclient` flag makes this a multi-use server that persists on `Disconnect` from a client and allows repeated connections from any of the aforementioned clients. A combination of `--accept-multiclient --continue` flags can be used to resume process execution on start-up. Please see `dlv --help` and `dlv [command] --help` for dlv's command-line options.
531531

532-
We encourage you to give the newly added `"debugAdapter": "dlv-dap"` support a try and to [let us know of any issues](https://github.com/golang/vscode-go/issues/new). If you need to use the `legacy` mode, pleasse also see the [legacy remote debugging](https://github.com/golang/vscode-go/blob/master/docs/debugging-legacy.md#remote-debugging) documentation.
532+
We encourage you to give the newly added `"debugAdapter": "dlv-dap"` support a try and to [let us know of any issues](https://github.com/golang/vscode-go/issues/new). If you need to use the `legacy` mode, pleasse also see the [legacy remote debugging](debugging-legacy.md#remote-debugging) documentation.
533533

534534
For example, start external headless server:
535535
```
@@ -611,9 +611,9 @@ The suggestions below are intended to help you troubleshoot any problems you enc
611611

612612
1. Read documentation and [FAQs](#faqs). Also check the [Delve FAQ](https://github.com/go-delve/delve/blob/master/Documentation/faq.md) in case the problem is mentioned there.
613613
1. Check your `launch.json` configuration. Often error messages appearing in the DEBUG CONSOLE panel reveal issues.
614-
1. Update Delve (`dlv`) to pick up most recent bug fixes. Follow [the instruction](https://github.com/golang/vscode-go/blob/master/docs/debugging.md#staying-up-to-date).
614+
1. Update Delve (`dlv`) to pick up most recent bug fixes. Follow [the instruction](debugging.md#staying-up-to-date).
615615
1. Check if you can reproduce the issue with `dlv`, the command line tool from the integrated terminal. <!-- TODO(vscode-go): add instructions https://github.com/golang/vscode-go/issues/1931 --> If it's reproducible when using `dlv`, take a look at the [Delve project issue tracker](https://github.com/go-delve/delve/issues).
616-
1. Capture [logs](https://github.com/golang/vscode-go/blob/master/docs/debugging.md#collecting-logs) and inspect them.
616+
1. Capture [logs](debugging.md#collecting-logs) and inspect them.
617617
1. Look at the [existing debugging issues](https://github.com/golang/vscode-go/labels/Debug) if similar issues were reported.
618618
1. If none of these solve your problem, please [open a new issue](#reporting-issues).
619619

@@ -651,7 +651,7 @@ This problem often occurs when the source location used in compiling the debugge
651651

652652
### Debug sessions started with the "debug test" CodeLens or the test UI does not use my `launch.json` configuration.
653653

654-
The "debug test" CodeLens and the [test UI](https://github.com/golang/vscode-go/blob/master/docs/features.md#test-and-benchmark) do not use the `launch.json` configuration ([Issue 855](https://github.com/golang/vscode-go/issues/855)). As a workaround, use the `go.delveConfig` setting and the `go.testFlags` setting. Please note that these all apply to all debug sessions unless overwritten by a specific `launch.json` configuration.
654+
The "debug test" CodeLens and the [test UI](features.md#test-and-benchmark) do not use the `launch.json` configuration ([Issue 855](https://github.com/golang/vscode-go/issues/855)). As a workaround, use the `go.delveConfig` setting and the `go.testFlags` setting. Please note that these all apply to all debug sessions unless overwritten by a specific `launch.json` configuration.
655655

656656
### Starting a debug session fails with `decoding dwarf section info at offset 0x0: too short` or `could not open debug info` error.
657657

@@ -692,7 +692,7 @@ The logging will appear in the `Go Debug` output channel (Command Palette -> "Vi
692692

693693
The core part of Delve DAP implementation is in the [`service/dap`](https://github.com/go-delve/delve/tree/master/service/dap) package. Follow Delve project's [contribution guideline](https://github.com/go-delve/delve/blob/master/CONTRIBUTING.md#contributing-code) to send PRs.
694694

695-
Code for integration with the Go extension is mostly in [`src/goDebugFactory.ts`](https://github.com/golang/vscode-go/blob/master/src/goDebugFactory.ts) and tests are in [`test/integration/goDebug.test.ts`](https://github.com/golang/vscode-go/blob/master/test/integration/goDebug.test.ts). Please take a look at VS Code Go project's [contribution guideline](https://github.com/golang/vscode-go/blob/master/docs/contributing.md) to learn about how to prepare a change and send it for review.
695+
Code for integration with the Go extension is mostly in [`src/goDebugFactory.ts`](https://github.com/golang/vscode-go/blob/master/src/goDebugFactory.ts) and tests are in [`test/integration/goDebug.test.ts`](https://github.com/golang/vscode-go/blob/master/test/integration/goDebug.test.ts). Please take a look at VS Code Go project's [contribution guideline](contributing.md) to learn about how to prepare a change and send it for review.
696696

697697
### Testing
698698

docs/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ not by this extension.
1010

1111
For better syntax highlighting (including generics support), we recommend enabling
1212
[semantic highlighting](https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide)
13-
by turning on [Gopls' `ui.semanticTokens` setting](https://github.com/golang/vscode-go/blob/master/docs/settings.md#uisemantictokens).
13+
by turning on [Gopls' `ui.semanticTokens` setting](settings.md#uisemantictokens).
1414

1515
```json
1616
"gopls": { "ui.semanticTokens": true }

0 commit comments

Comments
 (0)