Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: OSS via LS [HEAD-78] #393

Merged
merged 16 commits into from
Nov 29, 2023
Merged

feat: OSS via LS [HEAD-78] #393

merged 16 commits into from
Nov 29, 2023

Conversation

j-luong
Copy link
Contributor

@j-luong j-luong commented Nov 17, 2023

Description

Provide description of this PR and changes, if linked Jira ticket doesn't cover it in full.

Checklist

  • Tests added and all succeed
  • Linted
  • CHANGELOG.md updated
  • README.md updated, if user-facing

Screenshots / GIFs

Visuals that may help the reviewer. Please add screenshots for any UI change. GIFs are most welcome!

PeterSchafer and others added 9 commits November 23, 2023 11:23
* feat: adds new LS based OssService class
* chore: read OSS settings for LS initialisation options
* chore: add unit tests for new OssService

---------

Co-authored-by: Peter Schäfer <[email protected]>
* refactor: rename and move ossSuggestionWebviewProviderLanguageServer

* feat: add new OSS (LS) panel in Snyk UI

* feat: configure new views and activation events for LS OSS treeview

* refactor: OSS messages for LS implementation; OssIssueCommandArgLanguerServer type

* refactor: getIssueRange abstract method to allow undefined

* feat: implement OSS vulnerability tree via LS class

* feat: configure extension.ts to show LS OSS vulnerability tree view

* feat: update issue types to support LS OSS issue command args

* refactor: getOpenIssueCommand abstract method to support LS OSS implementations

* feat: implement initial LS OSS treeview
* chore: introduce observerable in ProductService

* feat: enable LS based Vulnerability Count Service

* fix: creating subject

* chore: introduce static getOssIssueArgCommand()

* chore: adapt vuln count code action provider

* chore: remove dependency to old OSSService

* fix: linter & cleanup

* chore: adapt test to use LS versions of classes

* chore: delete now obsolote classes

* fix: duplicate diagnostics message

* fix: use strict equal

* chore: convert severities explicitely

* fix: typo
* docs: update instructions for contribution to include `npm run build`

Signed-off-by: Bastian Doetsch <[email protected]>

* chore: use ls based oss service in cmdcontroller

* chore: move convertion of Issue to OssVulnerability

* chore: adapt test

* chore: delete vulnerabilityCountCodeActionProviderLS class as LS handles CodeActions now

* chore: delete vulnerabilityCountHoverProvider class as LS handles hovers now

* chore: clean up codeaction/hovers where they are not needed anymore

* fix: linting

* check license data if undefined

* chore: display received details html

* chore: initial version taking html from ls

* chore: inject learn icon

* chore: inject nonce and cspsource

* fix: linter

---------

Signed-off-by: Bastian Doetsch <[email protected]>
Co-authored-by: Bastian Doetsch <[email protected]>
Co-authored-by: Jason Luong <[email protected]>
* chore: do not show vuln count text if vuln count is 0

* chore: updated changelog
@j-luong j-luong marked this pull request as ready for review November 29, 2023 15:12
@j-luong j-luong requested a review from a team as a code owner November 29, 2023 15:12
@j-luong j-luong merged commit 85c1a4c into main Nov 29, 2023
10 checks passed
@j-luong j-luong deleted the feat/HEAD-78_oss_via_ls branch November 29, 2023 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants