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

12 Коммитов

Автор SHA1 Сообщение Дата
Hana (Hyang-Ah) Kim bb6f0ead80 src/goInstallTools,goTelemetry: add TelemetryReporter
TelemetryReporter buffers counter updates and periodically
invokes a go program (vscgo) that writes the counter to the
disk.

installVCSGO in goInstallTools.ts installs vscgo.
If vscgo installation fails, TelemetryReporter will keep
holding the counter in memory. The buffer is a set keyed
by the counter and we expect there is a finite set of counters.

That installs the vscgo binary in the extension path.
The location was chosen so that when users update the
extension, a new version can be installed. VS Code will
manage the extension path and delete the directory when
the extension is uninstalled or the version is no
longer used.

The extension operates in four different modes
and we need to choose how to build the vscgo.
The extension includes the vscgo main package source
file in it.

1) golang.go, stable/rc releases: PRODUCTION mode. try to
install from the remote source (proxy) so its checksum
is verified and build version and telemetry counter file
matches the extension version. The source repo needs
to be tagged. In case of failure, we attempt to fallback to the
build with the source code included in the extension.

2) golang.go-nightly, preview release: PRODUCTION mode.
Nightly is released daily automatically. Tagging the repo
everyday is not practical. Moreover, the nightly extension
does not use semver but encodes the release timestamp,
so it is not compatible with go commands.
Installing from @master or @latest isn't ideal either since
vscgo functionality is tied with the extension version.
The telemetry data will be labeled with `devel` version.

3) golang.go, preview release: PRODUCTION mode. Used for
local testing during development (e.g. npm run package &
code --install-extension). The version will include `-dev`.
We want to build from the local source included in the
extension since there is no usable tag in the remote origin.
The telemetry data will be labeled with `devel` version.

4) golang.go, preview release: DEVELOPMENT mode. Used for
local testing using the launch.json configuration.
VS Code will use the project source code as the extension
path. Build vscgo from the project repo on disk. The
telemetry data will be labeled with `devel` version.

5) golang.go, preview release: TEST mode. Currently same
as 4. No telemetry data is materialized. Tests
that are designed for telemetry testing write test data in
temporary text file for inspection during tests.

For golang/vscode-go#3023

Change-Id: Ic408e7b296fdcb9ed33b68293ea82f5e29a81515
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/549244
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-12-27 22:31:11 +00:00
Suzy Mueller 5a65ba3e0d test/goDebugConfiguration.test.ts: test settings.json debug config effects
The delveConfig user settings applied in settings.json, should be applied
to the debug configuration. Test that these are correctly applied.

Additionally, testFlags and buildFlags do not currently affect the debug
configuration, so we also test that to document that behavior. This behavior
is likely to change and the test should be updated when it does.

This change also reintroduces the --user-data-dir= argument to the launch
configuration for running the integration tests. This starts the test with
the default user settings, so running the tests should not be affected by
the user settings.

Update golang/vscode-go#43

Change-Id: I99c9d7f17892e6766fae731c9288880b109ba3fd
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/267217
Trust: Suzy Mueller <suzmue@golang.org>
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2020-11-10 22:16:23 +00:00
OneOfOne 4d671d3dd1 webpack: bundle the extension
This PR allows the extension to be bundled.

Fixes golang/vscode-go#53

Change-Id: I0b9ac399c485f04fd7ddae885c277093f9931e34
GitHub-Last-Rev: c77c4580dc
GitHub-Pull-Request: golang/vscode-go#286
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/241041
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2020-07-08 18:49:07 +00:00
Hana (Hyang-Ah) Kim 502dd3fa28 images/goIcon.png: delete unused gopher image
We are using the go logo.
Also, skip .github directory from vsce packaging.

Change-Id: If3acde40ba4e46ec1dd398e147c01bdfb32cb33d

Change-Id: If3acde40ba4e46ec1dd398e147c01bdfb32cb33d
GitHub-Last-Rev: f6bc80201b
GitHub-Pull-Request: golang/vscode-go#80
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/234662
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-05-20 23:06:41 +00:00
Ramya Achutha Rao dee4ffd557 Prepping for 0.6.63 2017-07-17 12:21:41 -07:00
Guilherme Oenning 5fab6f6635 move env consolidation after loading envFile (#935)
* fix for #934

* fix travis build, forgot to tsc

* ignore DS_Store and some clean up on env consolidation

* precedence: launch env -> file env -> process env
2017-04-19 23:39:47 -07:00
roblou 7665244325 Ignore vsix 2016-10-11 13:40:40 -07:00
Luke Hoban 32f255bbea Initial work on travis setup 2016-01-27 13:23:23 -08:00
Luke Hoban 1c9cfbc2c9 Update README and enable `npm install` for installation. 2015-09-21 21:36:53 -07:00
Luke Hoban 8a13a98d8d Initial work on debugger support 2015-09-19 10:03:40 -07:00
Erich Gamma e272c6f98a make vscode.d.ts a symlink and add it to .gitignore 2015-09-16 08:30:26 +02:00
Erich Gamma 0201072236 do not check the out folder 2015-09-14 16:37:29 +02:00