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

10 Коммитов

Автор SHA1 Сообщение Дата
Hana (Hyang-Ah) Kim 25448e0a5e extension/src/config.ts: handle the version with '-dev' as prerelease
And change the version string in package.json on master to v0.44.0-dev
to indicate it is the dev version for v0.44.0.
Prerelease versions will use v0.43.X.

While doing so, I learned that the version string must have
Major.Minor.Patch[-prerelease] format, and strings like "v0.44-dev"
are not acceptable. Otherwise, `vsce` and vscode
test framework fails to build the extension quite mysteriously.

Change-Id: I6e73b2bf6d0f41b491844345193064320dd401e3
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/615775
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Hongxiang Jiang <hxjiang@golang.org>
kokoro-CI: kokoro <noreply+kokoro@google.com>
2024-09-25 17:35:17 +00:00
Hana (Hyang-Ah) Kim cce5f072a5 extension/package-lock.json: npm audit fix
micromatch  <4.0.8
Severity: moderate
Regular Expression Denial of Service (ReDoS) in micromatch - https://github.com/advisories/GHSA-952p-6rrq-rcjv
fix available via `npm audit fix`
node_modules/micromatch

path-to-regexp  0.2.0 - 1.8.0
Severity: high
path-to-regexp outputs backtracking regular expressions - https://github.com/advisories/GHSA-9wv6-86v2-598j
fix available via `npm audit fix`
node_modules/path-to-regexp

2 vulnerabilities (1 moderate, 1 high)

Change-Id: Icd5d74e86e19805de89d5226f6367ee507483ebd
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/613976
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
kokoro-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Hongxiang Jiang <hxjiang@golang.org>
2024-09-20 12:42:34 +00:00
Hana (Hyang-Ah) Kim 136441b15b extension/tsconfig.json: target es2022
Regexp capturing group used in extesion/src/goTest/utils.ts `moduleNameRegex`
is available from es2018

Originally targetted to switch to es2018, but Ethan Reesor pointed out
the current vscode-go targets vscode 1.75.0+ and according to
https://github.com/ewanharris/vscode-versions, it must be able to
support node 16.14.2+. node.green shows 16.14.2 supports up through
es2022. From https://compat-table.github.io/compat-table/es2016plus/
es2022 is widely supported. So, bump up to es2022.

Fixes golang/vscode-go#3540

Change-Id: I033ef645f77b06ca1c9cf5415f3c7c95887be409
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/606695
Reviewed-by: Ethan Reesor <ethan.reesor@gmail.com>
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>
Reviewed-by: Hongxiang Jiang <hxjiang@golang.org>
2024-09-17 20:05:45 +00:00
Hana (Hyang-Ah) Kim be7de091b6 extension: import js-green-licenses for license checking
github.com/google/js-green-licenses is the license checker
used by many google-authored open source JS/TS projects.
Use it instead of using ./extension/tools/license.sh

Usage:
 cd extension; npx jsgl --local .

Configured js-green-licenses to skip checking on the
es5class package. This package was published long ago
and the last version lacks the license metadata
so js-green-licenses cannot process it.
A new version to fix the metadata won't be published
since it is officially deprecated (for a while).
The latest version was published with MIT license
(https://github.com/pocesar/ES5-Class/blob/master/LICENSE)

Change-Id: I952938cbc56aa93258de43653d531e405ea40683
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/610257
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
kokoro-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Hongxiang Jiang <hxjiang@golang.org>
2024-09-13 20:56:19 +00:00
Hana (Hyang-Ah) Kim 25fd122913 extension: update version to 0.43.0-dev
For golang/vscode-go#3453

Change-Id: I627ded0f80703d7b5753367769ec0afe28187d89
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/606696
Reviewed-by: Hongxiang Jiang <hxjiang@golang.org>
kokoro-CI: kokoro <noreply+kokoro@google.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
2024-08-19 21:30:44 +00:00
Hana (Hyang-Ah) Kim 579016336b extension: npm audit fix (braces, yarn)
braces: https://github.com/advisories/GHSA-grv7-fg5c-xmjg
yarn: https://github.com/advisories/GHSA-mpwj-fcr6-x34c

These are all dev dependencies.

$ npm audit

braces  <3.0.3
Severity: high
Uncontrolled resource consumption in braces - https://github.com/advisories/GHSA-grv7-fg5c-xmjg
fix available via `npm audit fix`
node_modules/braces

yarn  <1.22.13
Severity: high
Yarn untrusted search path vulnerability - https://github.com/advisories/GHSA-mpwj-fcr6-x34c
fix available via `npm audit fix --force`
Will install yarn@1.22.22, which is outside the stated dependency range
node_modules/yarn

$ npm ls braces
...

$ npm audit fix

$ npm install --save-dev yarn@1.22.2

$ npm install

Change-Id: I77a1917655f65f7424ff69a57ef48fd6aee1adbf
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/598195
kokoro-CI: kokoro <noreply+kokoro@google.com>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Hongxiang Jiang <hxjiang@golang.org>
2024-07-15 15:00:39 +00:00
Hana (Hyang-Ah) Kim 9480a16788 extension: start v0.42.0 dev cycle
For golang/vscode-go#3167

Change-Id: I279dcfd0d71ec75a0bf1cc1af5e19094ed13286e
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/564596
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
kokoro-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
2024-02-16 18:47:02 +00:00
Hana (Hyang-Ah) Kim 8d10f634c9 package.json: update vscode type and vsce dependencies
vscode TestItemCollection interface was extended, so
adjusted MockTestCollection type.

Change-Id: I4a21ef5392bd5660bf2be8e1c4116c99efc2072a
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/559737
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2024-02-02 22:33:42 +00:00
Hana (Hyang-Ah) Kim 15be937e0f build: fix nightly release to include README
README.md is outside the extension directory.
Updated @vscode/vsce to get --readme-path flag support.
(Still in a prerelease state.
See https://github.com/microsoft/vscode-vsce/issues/905).

Change-Id: Ie9ed25643307ae8827bbf15589be131019a9159b
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/556535
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2024-01-18 13:19:48 +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