Граф коммитов

295 Коммитов

Автор SHA1 Сообщение Дата
Hana (Hyang-Ah) Kim c233889958 all: remove reference to the nightly extension
The nightly is deprecated in favor of the new pre-release versions.
Clean up docs and references.

Use "Pre-release" instead of "Preview" in user-facing doc.
(We also use "insiders" or "preview" to refer to VS Code Pre-release
inside our code or project to distinguish from semver's prerelease,
but outside our project, "Pre-release extension" is the term to use)

For golang/vscode-go#1953

Change-Id: Id9e5cc53fb1f459e69e7aa264ef76799b069c676
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/613178
kokoro-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
2024-09-18 13:52:14 +00:00
Russell Webb 0099728ac6 docs: fix broken links to VSCode Workspace/User Settings documentation
Change-Id: Icdba4abbdd59e9b11224b98b4447d5b6040f8c20
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/599596
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
kokoro-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
Commit-Queue: Michael Matloob <matloob@golang.org>
Reviewed-by: Hongxiang Jiang <hxjiang@golang.org>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
2024-07-25 02:52:45 +00:00
Hana (Hyang-Ah) Kim 982638e41c docs/features.md: add details about custom formatter setting
Fixes golang/vscode-go#3397

Change-Id: I49fdf614538e01f42f4a25d8c56c6035b3af8e6e
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/597296
kokoro-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
2024-07-11 17:30:33 +00:00
Hana (Hyang-Ah) Kim 4cd8eb146d extension: stop referencing go.languageServerExperimentalFeatures
And fix the issue tracker URL in CHANGELOG.md

Fixes golang/vscode-go#3428

Change-Id: Ia7e217ea84681908f4f96c958691d3ecd6a3326e
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/596275
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
kokoro-CI: kokoro <noreply+kokoro@google.com>
2024-07-02 21:44:55 +00:00
Hana (Hyang-Ah) Kim dfdb3b8f7e extension/tools: update license.sh to work with extension/LICENSE
And add LICENSE to the docs module.

Change-Id: Ib1b60b2022cd31d033370e26a1d098a5d525a74c
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/592815
Reviewed-by: Suzy Mueller <suzmue@golang.org>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
kokoro-CI: kokoro <noreply+kokoro@google.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
2024-06-21 23:06:29 +00:00
Hana (Hyang-Ah) Kim 55843514ed extension/tools/goplssetting: update to work with gopls v0.16.0 settings
Temporarily map "any" to "boolean" until CL 593656 is released.

For golang/go#68057

Change-Id: Id134337269b26b9a9ddb546c63f645996d3c3c83
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/593678
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
kokoro-CI: kokoro <noreply+kokoro@google.com>
2024-06-21 01:55:48 +00:00
ossan f907536117 docs: fix typo in debugging.md
Change-Id: Ib64c2616c6c14ebeafc824d235cb0e508fc121ad
GitHub-Last-Rev: f9be4890c8
GitHub-Pull-Request: golang/vscode-go#3255
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/571955
kokoro-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Commit-Queue: Ian Lance Taylor <iant@golang.org>
Reviewed-by: David Chase <drchase@google.com>
2024-05-09 19:54:44 +00:00
Hana (Hyang-Ah) Kim fe57357337 docs/faq.md: update the vscode default text mate rule project
VS Code changed its TextMate rule source to worlpaker/go-syntax.

Change-Id: I5c59ac851731c388a2a8a317ed5a3c5ca0946a69
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/582675
Reviewed-by: Peter Weinberger <pjw@google.com>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
kokoro-CI: kokoro <noreply+kokoro@google.com>
2024-05-01 15:00:11 +00:00
Hana (Hyang-Ah) Kim b501de3e1a Revert "docs: update the debugging doc about remote mode default adapter"
This reverts commit 5b0d6db961.

Reason for revert: Need to address path mapping issue: golang/vscode-go#3175

Change-Id: Iade1d9f2438993025ac1ef5ec9ad6f1213d79ed6
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/580019
kokoro-CI: kokoro <noreply+kokoro@google.com>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
2024-04-19 16:52:10 +00:00
monitor1379 78deb71774 docs: fix tools information doc link
Change-Id: I9085d2c2fd5299eb199ec43c2299c5baba06580e
GitHub-Last-Rev: a376d21520
GitHub-Pull-Request: golang/vscode-go#3309
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/575897
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
kokoro-CI: kokoro <noreply+kokoro@google.com>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
2024-04-03 22:19:13 +00:00
Hana (Hyang-Ah) Kim 6dd3745f82 docs/tools.md: fix vscgo package doc link
Change-Id: Ie46108795d8ec362182f2c150af3f365122be8ea
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/563363
Reviewed-by: Robert Findley <rfindley@google.com>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2024-02-13 15:39:43 +00:00
Hana (Hyang-Ah) Kim 5b0d6db961 docs: update the debugging doc about remote mode default adapter
From v0.41.0, we are switching the default to dlv-dap.

Fixes golang/vscode-go#2205

Change-Id: Iaef25bd94620fd74e7721ab7a55721a9f4f91355
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/562678
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
2024-02-10 00:48:32 +00:00
Hana (Hyang-Ah) Kim 95d6a45b81 docs: update images and docs to reflect changes in v0.41.0
README - update the setup instruction. The "Analysis Tools Missing"
notification was removed and important tools are installed
automatically.

UI - Go status bar was moved to right, Language status bar is added.
Add the screenshot for Go explorer view. Rephrase the go version
management section to direct users to use GOTOOLCHAIN env var. But
we still need to rethink/rewrite this workflow.

Tools - mention the vscgo binary.

For golang/vscode-go#3167

Change-Id: Iad5528fdfcd9f9b282e6a873259e2c8cecdec227
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/562681
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2024-02-10 00:03:31 +00:00
Hana (Hyang-Ah) Kim 5382d03d51 extension/package.json: update the gopls setting @ v0.15.0-pre.2
Change-Id: Iaf9d707ebd16255f68603db9d4407b0c5f4d0f7d
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/561996
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
2024-02-08 15:16:06 +00:00
Hana (Hyang-Ah) Kim a671ba3dd8 extension: replace src/goLogging with vscode LogOutputChannel API
goLogging was used for extension's verbose/debug logging and debug
session's client-side logging ("Go Debug") output channel.

vscode's LogOutputChannel API provides log level control consistent
across all VS Code components. More importantly, this allows users
to inspect verbose/debug level logging messages from the Go output
channel easily, instead of relying on the Developer's debug console
(which is not guaranteed to be accessible from non-desktop editor
integration products).

Convert the "Go Debug" output channel to vscode LogOutputChannel.
This allows us to control the logging level separate from the shared
go.logging.level configuration.

In fact, 'go.logging.level' setting is no longer necessary.
Mark it deprecated.

Change-Id: I4180eb1ce8afee63863d741b3501f0624aa42433
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/559739
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
2024-02-05 21:23:30 +00:00
Hana (Hyang-Ah) Kim c5607ecbf6 docs: update contribution instruction
Updates golang/vscode-go#3122

Change-Id: I7e8958a8943ccfd104c08e7aca70bf2d805933fd
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/556855
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
2024-01-19 01:38:41 +00:00
Hana (Hyang-Ah) Kim 690cf2e3ff extension: move extension code to a separate module
The vscgo command line tool is moved to the repo root module.
This simplifies the release process.

The extension module is meant to be used only for development
and majority of the code is non-Go code.

src/goInstallTools.ts installVSCGO is modified too -
Nightly installs with @master.

Updates golang/vscode-go#3122
Updates golang/vscode-go#3121

Change-Id: I04e441ecac71b4ab42e635835d91dcf344353e67
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/554316
Reviewed-by: Suzy Mueller <suzmue@golang.org>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
2024-01-11 19:42:29 +00:00
Hana (Hyang-Ah) Kim b01b0b756e package.json: sync gopls settings (gopls@v0.15.0-pre.1)
Change-Id: If55c3a89cd28fd7ea7b7c022b98ec9b6c7b3fec1
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/554060
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
2024-01-05 19:38:02 +00:00
Hana (Hyang-Ah) Kim 4d53cdc646 docs: update fill struct feature documentation
The latest version no longer offers the "Go: Fill struct" command.
Suggest the code action.

Fixes golang/vscode-go#3104

Change-Id: Ida95173f0f88322b32ac319d3f8aa1d3d7cf1b5c
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/553075
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
2023-12-28 18:12:14 +00:00
rogeryk 07bea2267a docs/contributing.md: remove unnecessary quote
There is an extra quote in the command, which should be an error.

Change-Id: I6ff7c00fa7cacaaef9476232637bff110647ff40
GitHub-Last-Rev: 703b7a1691
GitHub-Pull-Request: golang/vscode-go#3042
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/541875
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-11-22 21:24:26 +00:00
Hana (Hyang-Ah) Kim 1964a4ee4c src/welcome,README: update welcome docs to discuss telemetry
Change-Id: I2332a946807c05e0dbc7768b7403d7309d03bb1b
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/540035
Run-TryBot: Suzy Mueller <suzmue@golang.org>
Commit-Queue: Suzy Mueller <suzmue@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2023-11-07 01:11:30 +00:00
Hana (Hyang-Ah) Kim 9c57ee2b06 src/goToolsInformation: clean up the tools list
Remove legacy tools.
Update docs/tools.md and tools/installtools too.

And, unskip gotests feature tests.

For golang/vscode-go#2799

Change-Id: I99c6c2892864aac887a23a720c19c1218f61f7d6
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/535098
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-11-06 02:08:21 +00:00
Hana (Hyang-Ah) Kim 053cd93987 src/goToolsInformation: delete legacy tools
Fixes golang/vscode-go#2799
For golang/vscode-go#1652

Change-Id: Ib7e046a1df0a63bd3babcf2019851bdcfe7e6726
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/538762
TryBot-Result: kokoro <noreply+kokoro@google.com>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
2023-11-06 01:00:45 +00:00
Suzy Mueller 324992b8b3 src/goDebugConfiguration: allow buildFlags passed in array
For golang/vscode-go#3009

Change-Id: Icbba8db80fa6213e59152106fa01b2cf5f71ee69
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/538057
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Commit-Queue: Suzy Mueller <suzmue@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-11-02 19:09:30 +00:00
Hana (Hyang-Ah) Kim eaef5b08a0 package.json: remove godoctor-based extract func/var commands
This change removes "Go: Extract to function" and "Go: Extract to
variable" commands, which were using godoctor.
Extract function/var features are implemented in gopls, which can
be accessible by
  selecting the range to extract
  trigger code action

If users want access through commands, we can consider to add
commands (as we are doing for "Go: Fill struct" command).

Updates golang/vscode-go#2862

Change-Id: Id43374513dcd347c06ae8107aa1c25a41e884641
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/538756
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-11-01 18:05:54 +00:00
Hana (Hyang-Ah) Kim 6b4ee4d563 src/goFillStruct: remove Go: Fill struct command
VSCode's `editor.action.codeAction` provides a unified way
of accessing refactoring features, including "fill struct".

Gopls returns the appropriate fill struct options based on
the selection or cursor position when invoked with

"args": {
  "kind": 'refactor.rewrite',
}

https://code.visualstudio.com/docs/editor/refactoring#_keybindings-for-code-actions

We no longer require a separate fillstruct tool.

Delete the 'fill struct' tests. I hoped we could move these
tests to the gopls integration test, but it turned out
that is more complicated than I thought.

- Starting a VS Code editor instance is costly, so our integration
test starts the editor only once and restarts the gopls instances
for each test suite or test case.

- VSCode does not expose a way to close text document explicitly
by design. We can close visible editors, tabs, or tab groups
and make them disappear (as many stackoverflow posts suggest),
but VSCode keeps open text documents internally for some time
(and some hard-coded eviction age limit like 3minutes).

Reference: https://github.com/microsoft/vscode/issues/192308

- As a result, when a new Gopls instance starts, the editor
(LSP client) sends didOpen messages for the documents open
for previous testing. These documents belong to different
modules, and Gopls considers this misconfiguration.

- Fill struct is implemented as diagnostics. When we trigger
code action requests, Gopls tries to compute diagnostics first.
Unfortunately, gopls thinks the workspace is misconfigured,
produces various diagnostics about all the documents we've
ever opened in our integration test, and fails to suggest
or run fill struct action before timeout.

We can consider
- wait for gopls to support multiple-modules setup (aka
zero config gopls). That will handle the left-over files better.
- rearrange the test dataset to be in one workspace (go.work,
or a single module),
- arrange the integration test to work on a copied test data
and clean up used files at the end of every test. Still unclear
how quickly VSCode detects deleted files and invalidates the
contents in memory though, or
- arrange the lsp client middleware to hijack didOpen notification
and filter out messages about unwanted files during testing.

But given that the extension doesn't do anything special
beyond invoking the codeaction, I am not sure if we need to add
more complexity right now if the future gopls can handle this
better. So, I am dropping the tests now.

Fixes golang/vscode-go#2107

Change-Id: Ib5659274ae6bd7d25c7b3cdd432f2d5c17e0e30d
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/538755
TryBot-Result: kokoro <noreply+kokoro@google.com>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
2023-11-01 18:05:35 +00:00
Hana (Hyang-Ah) Kim a3d76a5512 package.json: remove deprecated settings
and remove legacy tools installation code.

Deleted settings
  - Gocode related settings (go.gocodeFlags, go.gocodeAutoBuild,
    go.gocodePackageLookupMode)
  - Code suggestion settings (go.useCodeSnippetsOnFunctionSuggest,
    go.useCodeSnippetsOnFunctionSuggestWithoutType,
    go.autocompleteUnimportedPackages)
  - go.gotoSymbol.includeCoroot
  - go.docsTool
  - go.useGoProxyToCheckForToolUpdates (obsolete by go.toolsManagement
    flag in 2020. Delete all the transition code as well)
  - go.liveErrors

For golang/vscode-go#2799

Change-Id: Id949d2f4ea5963553170a9c168b08752cc2e825f
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/535097
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-10-26 00:52:04 +00:00
Suzy Mueller 8411f2387f package.json: allow updating hideSystemGoroutines from stack context
Add a command to the callstack context menu that allows users to
toggle between hiding and showing system goroutines. This allows
for easier discovery of the feature.

For golang/vscode-go#1797

Change-Id: I7f085d5e7d50ec3f3ae2a9d515c99b2e935c5d3a
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/534955
Commit-Queue: Suzy Mueller <suzmue@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2023-10-13 20:00:02 +00:00
Hana (Hyang-Ah) Kim 75f9d504ad package.json: sync gopls settings (gopls@v0.14.0-pre.2)
and pin dlv version used for testing to v1.21.0
to unbreak the debug testing.

Updates golang/vscode-go#2999

Change-Id: If66962ae23b1af6530840937517a97802d654b88
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/533316
Reviewed-by: Suzy Mueller <suzmue@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
2023-10-06 21:36:31 +00:00
Hana (Hyang-Ah) Kim b9cfe62f41 package.json: update gopls settings to match 0.14
And update the github workflows to drop go 1.17, and add go 1.21.

Change-Id: Id1e9e25e56c435fb88a62bbd9256576ae6867715
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/531076
Commit-Queue: Robert Findley <rfindley@google.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
2023-09-27 22:02:21 +00:00
Hana (Hyang-Ah) Kim b2303c5ebf package.json: sync settings with gopls v0.13
Change-Id: I18df7657a642593244c7fdb9a389b4e94683fad4
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/514758
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
2023-08-02 19:13:21 +00:00
Alan Donovan 75770e1f85 package.json: add gopls.start_debugging
This command invokes the gopls command that starts its
internal debugging web server (and requests that the
client open the web page).

I used the terms "language server" instead of gopls,
and "maintainer interface" instead of debug server
since "debug" has a different conntation in the VS Code UI.

Tested manually.

Change-Id: I9fe5d90f095ef3eed4ea2c1a7ba42117ceb002a2
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/506516
Run-TryBot: Alan Donovan <adonovan@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-07-05 16:25:37 +00:00
Hana (Hyang-Ah) Kim 0de0e1131c build: remove unused, outdated cloudbuild config
The config predates kokoro CI.
The GitHub-based test workflow is not accessible
by external, unapproved contributors.

Remove the docs/testing.md that mostly talks about
these outdated workflows.

Change-Id: Ie7502067d53494f9b28bc807313b35885e066cb3
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/506655
Reviewed-by: Suzy Mueller <suzmue@golang.org>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-06-28 16:45:08 +00:00
cuining 99f78ff1a4 package.json: add go.showWelcome
This new setting controls whether to show the Welcome
on first install.

Based on GitHub-Pull-Request: golang/vscode-go#2704
Hana Kim ran `go run tools/generate.go` to update
docs/settings.md.

Change-Id: I30a4c5fd6066b4c5e3052ba3d75e47e6b52a4a76
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/501208
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-06-08 16:43:27 +00:00
Hana (Hyang-Ah) Kim 50e2b64a49 package.json: remove go.languageServerExperimentalFeatures setting
The deprecation note was present for over two years. No objection
was raised.

Updates golang/vscode-go#1109
Updates golang/vscode-go#50

Change-Id: Ia78b894a200f4120c76fb473ec84ae39578f215f
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/501199
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-06-08 16:05:15 +00:00
Hana (Hyang-Ah) Kim 97f062777f src/goMain.ts: show notification about go.useLanguageServer
The notification provides options to open the settings
and suppress the notification forever.

Also update package.json to change the description of
the go.useLanguageServer setting.

Updates golang/vscode-go#2799

Change-Id: Ib0e4e4414942ab083d1932abcb34f5871911d3da
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/501198
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-06-08 16:05:03 +00:00
Hana (Hyang-Ah) Kim 0b6803bf47 package.json: add deprecation note for legacy tools settings
By adding the deprecation notes, the current users of these settings
will notice the deprecation when they happen to edit their
settings.json. Moreover, VS Code will exclude them from the default
settings UI and autocompletion list, which will help users not getting
distracted by these old settings.

Updates golang/vscode-go#2799

Change-Id: I771dd5aeb6f826882d2c234e80862a8fb7d45670
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/501206
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-06-06 22:52:31 +00:00
Zeke Lu 9ae57e8f91 docs/debbugging.md: fix the format of an example launch.json
Change-Id: I235fb4960de994f84a70e6b1460ed52b5a8ca3b1
GitHub-Last-Rev: 2cde5ded3d
GitHub-Pull-Request: golang/vscode-go#2774
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/495636
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-05-31 16:42:04 +00:00
Hana (Hyang-Ah) Kim e0d7ae9109 docs/debugging.md: update doc to reflect changes in cl/495816
Change-Id: Id7625ef22ff069c550536225b83bf05051dbcbbf
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/496440
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-05-19 20:45:28 +00:00
Hana (Hyang-Ah) Kim 69fd83a3f7 docs: update settings to sync with gopls@v0.12.0-pre.2
Change-Id: Ice4218b2e130bedfe175d40327f7d0d21787a612
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/495264
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-05-18 17:52:42 +00:00
Hana (Hyang-Ah) Kim 9547119de8 docs: update gopls settings (v0.12.0-pre.1)
Change-Id: I03819ef057a90b67b81d989f640836d838a3cee4
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/494475
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
2023-05-12 17:37:27 +00:00
Suzy Mueller fa820d45d7 docs/debugging.md: add tips for debugging with -trimpath
Updates golang/vscode-go#2609

Change-Id: I6fae938b428f834f8e55e2e8afd4d309db33d0a9
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/469916
Reviewed-by: Ethan Reesor <ethan.reesor@gmail.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Suzy Mueller <suzmue@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-03-02 19:06:27 +00:00
Xiaoming 6aaa26a047 add missing quotes
Fix launch.json formatting error caused by missing quotes

Change-Id: Id94bf99c99e765abbe70a28eddf54947ce552c63
GitHub-Last-Rev: 224e7d0f0e
GitHub-Pull-Request: golang/vscode-go#2678
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/470115
Reviewed-by: Suzy Mueller <suzmue@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
2023-03-02 16:23:50 +00:00
Hyang-Ah Hana Kim 5ffadd31d5 docs: mention advanced semantic token options
They are:

"ui.noSemanticNumber": true,
"ui.noSemanticString": true

Updates golang/vscode-go#2682

Change-Id: I942b735af16ed7d070615baad231df4cdcba5d73
GitHub-Last-Rev: 9ac0a3eeb8
GitHub-Pull-Request: golang/vscode-go#2684
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/471280
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Peter Weinberger <pjw@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
2023-02-26 21:18:06 +00:00
Hana (Hyang-Ah) Kim a0f2369ef7 src/goTaskProvider: add default go task provider
This new provider provides the execution for tasks
with type = "go". The task runs the `go` command and runs
the build or test command, along with optional 'args'.

The provider provides the default task definitions including
  - go build <current package>
  - go test <current package>
  - go build ./...
  - go test ./...

VS Code offers users to create custom task configurations from
the default task definition this provide provides.

By default a Go task runs from the workspace root folder with
the tools execution environment unless options "cwd"/"env" are
configured. Users who need to work with a module in a nested
directory have to either set up `go.work` in the workspace root
folder, or create custom task configurations that set options
"cwd" property.

Fixes golang/vscode-go#194

Change-Id: I3ee54af6e1b37031a60fdcb511fd1d961687314e
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/467697
Reviewed-by: Suzy Mueller <suzmue@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
2023-02-22 01:50:46 +00:00
Beth Brown a736c61688 docs/debugging.md: docs clarity edits
- lowercased headings
- removed gerunds from headings
- edited 'Stay up to date' section and removed outdated mention of Jan
  2022 release
- edited `Switch to legacy debug adapter` section. May want to add link
  to legacy docs here
- Edited to "Launch" section. Added numbered lists for instructions.
- Edited to "Breakpoints" section. rewording for clarity.

Change-Id: I27840c690ea67b51eaabefbe029903832f31d1fd
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/461798
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-01-17 14:24:07 +00:00
Beth Brown 72095e9541 docs/debbugging.md: Reformatting prep for docs edits
Change-Id: I93cbe95a814e5293d69f20bd67fc4a64ebc9b678
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/461576
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-01-11 17:17:17 +00:00
Suzy Mueller 233f0a2659 docs/features.md: add link to inlayHints settings from features.md
Add more specific instructions for how to go about updating settings
for the inlay hints feature in VS Code.

For golang/go#57470

Change-Id: Ibb457ad1c8c8a092cc27fafc1a70b3f62812f783
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/459519
Run-TryBot: Suzy Mueller <suzmue@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2022-12-28 16:21:31 +00:00
Diogo Correia d28aeac9bb src/goTest: add codelens for sub tests
The current implementation did not support codelens for sub tests and this
made it quite cumbersome to test and debug codebases that use a large
number of subtests within vscode.

This pull request introduces:
- Test and debug codelenses support for subtests
- A new command "Go: Debug Subtest At Cursor"
- Fixes issues with subtests not running due to missing test name escaping

Fixes golang/vscode-go#2536

Change-Id: I82087b31bd102d3614f59d070c49e12c5d6d70c3
GitHub-Last-Rev: 094157961e
GitHub-Pull-Request: golang/vscode-go#2537
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/451755
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
2022-12-12 21:16:13 +00:00
Hana (Hyang-Ah) Kim 357391a30f docs/features: add vulncheck feature description
Change-Id: I52fad4016f23bc180f08c0dda9a0b6e7ee76277c
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/456756
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2022-12-12 20:25:48 +00:00