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

228 Коммитов

Автор SHA1 Сообщение Дата
dependabot[bot] 5b3022e4f5
Bump webpack from 5.76.0 to 5.94.0 (#570)
Bumps [webpack](https://github.com/webpack/webpack) from 5.76.0 to 5.94.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.76.0...v5.94.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-30 15:01:49 -07:00
dependabot[bot] a9c086079c
Bump ws from 8.13.0 to 8.17.1 (#566)
Bumps [ws](https://github.com/websockets/ws) from 8.13.0 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.13.0...8.17.1)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-25 08:03:23 -07:00
dependabot[bot] ebeb14dec8
Bump braces from 3.0.2 to 3.0.3 (#565)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-25 07:56:25 -07:00
Winston Liu 8bf16da119
Give GITHUB_TOKEN release permissions (#562) 2024-04-03 14:19:19 -07:00
Winston Liu bd06b99354
Update packaging steps in the release workflow (#561) 2024-04-03 20:53:13 +00:00
Chris Meyer 8a4ec46a3d
Upgrade to CodeQL v2 (#558)
Per https://github.blog/changelog/2023-01-18-code-scanning-codeql-action-v1-is-now-deprecated/
2024-04-03 13:46:42 -07:00
dependabot[bot] 3e9237b76e
Bump express from 4.18.2 to 4.19.2 (#560)
Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-28 16:34:49 -07:00
Chris Huynh 3c509e8357
Bump version to 3.4.4 (#559)
Co-authored-by: Chris Huynh <chhuynh@microsoft.com>
2024-03-28 16:20:53 -07:00
Chris Huynh 3c8f6aa25e
Address CPU usage spike: Perform case-insensitive search on win32 and added workspace.findFiles maxResults value (#556)
* Remove uri normalize and added workspace.findFiles maxResults value

* Fix space

* Add back platformUriNormalize and make file search case-insensitive

* perform case-insensitive search on win32

* Fix uppercase test

---------

Co-authored-by: Chris Huynh <chhuynh@microsoft.com>
2024-03-27 13:34:15 -07:00
Chris Meyer fb57ac256b
Bump package version (#533)
* Bump package version

* Add Andrew as code owner
2024-03-23 10:52:40 -10:00
dependabot[bot] eeee5d0e12
Bump webpack-dev-middleware from 5.3.3 to 5.3.4 (#557)
Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-23 10:11:23 -10:00
Winston Liu 68be3f0741
Don't show the SARIF Viewer if "Not now" is clicked (#554) 2024-03-21 22:17:11 +00:00
Chris Meyer 2ab5858e35
Add chrishuynhc as code owner (#555)
* Update CODEOWNERS

* Update CODEOWNERS
2024-03-21 09:46:12 -07:00
Winston Liu 9bb06e4bd6
Remove unnecessary dependencies (#553)
* Remove vsce

There's no real need for this to be locally installed.

* Remove a massive amount of unneeded deps

Mostly stemming from node-sass
2024-03-21 06:31:59 -10:00
dependabot[bot] 45a4af0f44
Bump follow-redirects from 1.15.4 to 1.15.6 (#552)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-19 10:58:19 -07:00
dependabot[bot] d9335b7df7
Bump ip from 2.0.0 to 2.0.1 (#550)
Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1.
- [Commits](https://github.com/indutny/node-ip/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-22 11:57:08 -08:00
dependabot[bot] 64285ff850
Bump follow-redirects from 1.14.8 to 1.15.4 (#546)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.8 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.8...v1.15.4)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-12 14:23:15 -08:00
dependabot[bot] a1740e7661
Bump postcss from 8.3.7 to 8.4.31 (#528)
Bumps [postcss](https://github.com/postcss/postcss) from 8.3.7 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.3.7...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris Meyer <cmeyer@microsoft.com>
2023-10-16 10:19:06 -10:00
dependabot[bot] 5c3f5f6dab
Bump @babel/traverse from 7.10.5 to 7.23.2 (#532)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.10.5 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-16 10:10:37 -10:00
Andrew Eisenberg 5456ae4109
Remove the reference to `sarif.toggleDrift` (#530)
This command does not exist.
2023-10-13 11:07:25 -07:00
Andrew Eisenberg 622952c030
Convert to linux runner for creating releases (#526) 2023-09-22 11:27:37 -07:00
Andrew Eisenberg 52557844cf
Add functionality to inject analysis on startup (#522)
* Add functionality to inject analysis on startup

If the `sarif-viewer.githubCodeScanningInitialAlert` setting has a
value, use the contents of the value as the alert to apply. This is
meant as a way to automatically apply fixes from a codescanning alert.

Additionally, if this alert has any fixes in it, they are automatically
applied. We also need to handle some slight differences in the SARIF
format. The fix objects that we are receiving are non-standard. We
expect that for each fix, there is a `diff` in its property bag that
contains a git-patch formatted version of the diff to apply.

Lastly, this adds some simple telemetry. It collects that the
autofix was applied, whether or not it was successful, and (if
unsuccessful) a failure message.

* Restructure `activateGithubAnalyses`

* Add retries for getting the remote fetch url

On codespaces, there is a race condition where sometimes the extension
starts before the filesystem is fully activated. When this happens, it
is not possible to get any of the remotes from the git api.

The solution is to perform some retries when getting the remotes.

* Add more logging to the output channel

No functional changes, just help with debugging and information.

* Address comments from review

* Bump version
2023-09-22 11:00:06 -07:00
Andrew Eisenberg 70d72ef604
Run tests during CI (#524)
* Run tests during CI

This change renames `eslint.yml` to `checks.yml` and adds a new job that
runs the tests in that workflow.

There are some additional changes associated with this:

1. The tests in `index.spec.ts` were hanging after they ran since they
   did not properly dispose the API after running. This is now fixed.
2. I added the `dispose` method to the `api`, which properly disposes
   all required objects.
3. I removed the `deactivate` method from `index.ts` since it is not
   used anywhere.
4. Similarly, I deleted `_options` from `openLogs` since it is not used.
5. I removed `async` from several api methods that do not need it.
6. I updated the typing in `index.d.ts` to properly reflect the type
   of the api.

* Disable extension tests that are hanging on CI

* Matrix over windows and linux

* Avoid making changes to external API

Though, this does add the `dispose` method to the API.
2023-09-06 15:34:12 -07:00
Andrew Eisenberg fc03086fd0
Fixes unit tests (#523)
* Fixes unit tests

With this change, running `npm run tests` will succeed.

It looks like the tests have not been run for a long time and the
implementation has drifted, making the tests harder to run.

There are lots of small changes here:

1. Change the `launch.json` to remove `--inspect-brk=9229`, which was
   preventing the tests from running.
2. Add some exclusions to `settings.json` so that some unnecessary
   folders are removed from the file open dialog.
3. Fix up the mock objects so that the tests correctly reflect the
   current implementation.
4. Add `await` and `async` to `setState` in indexStore.ts so that
   the function correctly waits for the post message to complete. (Note
   this is the _only_ change to non-test code in this PR.)
5. Change the test assertions so that they test the right things.

A few comments here on future work:

1. These tests all use stubs for the vscode API. This isn't ideal since
   it's complicated and we really should be testing the vscode API
   directly. Future work should be to run the unit tests from inside
   of a workbench so we don't need to stub out the vscode API.
2. We should be running the tests on each PR. I'll fix this in a
   followup PR.

* Remove commented code
2023-08-30 09:51:42 -07:00
Chris Meyer fcef0377fa
Add onUri activation event (#521)
* Add onUri to activation events

* Bump version

* Update package-lock.json
2023-08-15 07:07:19 -10:00
Chris Meyer 4146067d46
Update package.json (#520) 2023-08-11 11:18:35 -10:00
dependabot[bot] 31e2f22e23
Bump word-wrap from 1.2.3 to 1.2.5 (#519)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.5.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.5)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-11 07:40:35 -10:00
Chris Meyer f119d3d025
Fix AdvSec URL extraction (#518)
* Simplify url extraction

* Bump version + fix capitalization
2023-08-11 07:27:51 -10:00
Andrew Eisenberg 486233c234
Avoid crashing if a git repo has no `origin` (#516)
If there is no `origin`, then choose the first remote in the config.
If there are no remotes, exit early and send telemetry.
2023-07-27 09:27:00 -07:00
Chris Meyer 30ed6fbecf
Add support for ADO Alert uriHandler (#513)
* Update loadLogs.ts

* WIP

* Add auth manager

* Borrow auth handler from WAVE extension

* Fixes

* Tweaks

* Update alerts URL

* WIP

* WIP

* Update package.json

* WIP

* Update index.ts

* Bump version

* Remove unused files

* PR feedback

* PR feedback

* Add popup banner for illegal URL param

* Update src/extension/index.ts

Co-authored-by: Winston Liu <winstonliu@microsoft.com>

* PR feedback

* PR feedback

* PR feedback

---------

Co-authored-by: Winston Liu <winstonliu@microsoft.com>
2023-07-14 13:06:18 -10:00
Andrew Eisenberg 3a8320cb57
Fix compile errors and warnings (#511)
* Fix compile errors and warnings

- Updated launch config for mocha (tests are failing, but at least it
  launches)
- Updated versions in package-lock.json
- Updated `@types/vscode` to latest
- Removed two `onCommand` triggers that are now deprecated
- Added `const vscode: VsCodeApi` to `global.d.ts` to get properly typed
  references to `vscode` instance in the webview.
- Converted `return` to `return undefined` where appropriate to make
  compiler happy.
- Also, a handful of other errors that the compiler was complaining
  about.

* Update .vscode/launch.json
2023-07-12 12:27:44 -07:00
Chris Meyer b086b9a415
Bump version to v3.3.8 (#512)
* Update package.json

* Update CODEOWNERS
2023-06-28 10:48:39 -10:00
Winston Liu e09eed0fc2
Honor extension-provided uriBase (#508)
* Part 1: move uriBase logic into uriRebaser

* Step 2: Add translations

* Disable more schemes

* Also add translations for workspace prefixes

* Add support for uriBase

* Remove overrideUriBase

* Correct decorations URI checking

* Fix URI rebasing

* Relax strategy restrictions

* Clean up an any

* Remove now-unused Array.commonLength

* Allow file system strategy to work with filepaths

* Update localUri to be a real Uri

* Check uriBase before other strategies

* uriBase must be an absolute URI

* Remove bad comment

* Remove unused url-join

* Fix compile

* Can't use Uris as map keys
2023-06-28 11:15:20 -07:00
dependabot[bot] f2e275d9f3
Bump semver from 7.3.2 to 7.5.2 (#510)
Bumps [semver](https://github.com/npm/node-semver) from 7.3.2 to 7.5.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.3.2...v7.5.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-27 06:06:38 -10:00
Chris Meyer d161181d4f
Bump to v3.3.7 (#504) 2023-05-04 14:00:42 -10:00
Bowen Bao fc67d93995
Implement cache for 'workspaceHasDistinctFilename' (#502) 2023-05-02 06:36:42 -10:00
Chris Meyer d53a21da36
Update package.json (#499) 2023-04-13 12:58:53 -10:00
Chris Meyer 5e72c9dda9
Add selectByIndex to API + fixes (#498) 2023-04-12 14:20:21 -10:00
Chris Meyer 0c399f3d6e
Add selectResult function (#495)
* Add selectResult function

* Update panel.ts
2023-04-12 07:41:53 -10:00
dependabot[bot] 917b3e43a9
Bump webpack from 5.75.0 to 5.76.0 (#491)
Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-06 11:07:23 -10:00
Jaroslav Lobačevski 17236a6d16
Feature: download the source file from github if available (#481)
* Feature: download the source file from github if available

* Fix the check if the file was already downloaded

* Linting warnings

* Extract msg to variable

---------

Co-authored-by: Chris Meyer <cmeyer@microsoft.com>
2023-03-10 07:39:47 -10:00
Chris Meyer a075d2d0f7
Bump version to 3.3.5 (#488) 2023-01-31 13:52:44 -10:00
Bowen Bao 90921415c8
Cont: Fix stack selection in panel (#487)
* Fix stack selection

* Silence warning about missing key prop

---------

Co-authored-by: Kerem Çakırer <5321759+keremc@users.noreply.github.com>
2023-01-31 12:28:19 -10:00
Chris Meyer 28fe9460b5
Change badges to PNG (#485)
* Update README.md

* Remove the badges
2023-01-31 06:45:50 -10:00
Chris Meyer 0e5732bb34
Update badge URLs in README.md (#484)
* Update README.md

* Update CODEOWNERS
2023-01-30 13:24:19 -10:00
dependabot[bot] 41bf47157b
Bump flat and mocha (#479)
Bumps [flat](https://github.com/hughsk/flat) to 5.0.2 and updates ancestor dependency [mocha](https://github.com/mochajs/mocha). These dependencies need to be updated together.


Updates `flat` from 4.1.0 to 5.0.2
- [Release notes](https://github.com/hughsk/flat/releases)
- [Commits](https://github.com/hughsk/flat/compare/4.1.0...5.0.2)

Updates `mocha` from 7.1.1 to 10.2.0
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v7.1.1...v10.2.0)

---
updated-dependencies:
- dependency-name: flat
  dependency-type: indirect
- dependency-name: mocha
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris Meyer <cmeyer@microsoft.com>
2023-01-09 07:49:53 -10:00
dependabot[bot] c84079adca
Bump json5 from 2.1.3 to 2.2.3 (#480)
Bumps [json5](https://github.com/json5/json5) from 2.1.3 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.1.3...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-09 07:33:37 -10:00
Winston Liu 6fa7c82fe6
Watch files opened via API (#475)
* Update webpack to build

* Watch files opened via API

* Automatically remove if the log is deleted

* watcher.close is async

* Unwatch all on closeAllLogs

* Fix local TS errors

* Make a note of the race condition
2023-01-09 06:37:25 -10:00
dependabot[bot] 8a0ede8563
Bump express from 4.17.1 to 4.18.2 (#477)
Bumps [express](https://github.com/expressjs/express) from 4.17.1 to 4.18.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.17.1...4.18.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris Meyer <cmeyer@microsoft.com>
2022-12-28 10:10:16 -10:00
Jeff King 90e4e7f57a
Fix: Hide webview context menu commands as needed. 2022-12-24 01:16:32 +00:00