Skip to content

Set variant analysis view title to query name#1681

Merged
koesie10 merged 3 commits intomainfrom
koesie10/variant-analysis-view-title
Oct 31, 2022
Merged

Set variant analysis view title to query name#1681
koesie10 merged 3 commits intomainfrom
koesie10/variant-analysis-view-title

Conversation

@koesie10
Copy link
Copy Markdown
Member

This sets the title of the variant analysis view to {queryName} - CodeQL Query Results. It does so by retrieving the variant analysis in the getPanelConfig method and updating the title whenever the variant analysis is updated.

It's probably easiest to review this commit-by-commit. The actual change for setting the view title is quite small, but we first need to allow getPanelConfig to return a promise.

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

This will make the creation of a webview panel async to allow the
`getPanelConfig` method to be an async function. This will allow us to
do some work (like retrieving the variant analysis) in the
`getPanelConfig` method.
@koesie10 koesie10 requested review from a team as code owners October 31, 2022 10:49
Copy link
Copy Markdown
Contributor

@robertbrignull robertbrignull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggested change but otherwise this LGTM.

I haven't been able to verify it manually because I'm having trouble running my extension, but this change looks fine.

Comment thread extensions/ql-vscode/src/abstract-webview.ts Outdated
Comment thread extensions/ql-vscode/src/abstract-webview.ts
@koesie10 koesie10 enabled auto-merge October 31, 2022 12:58
@koesie10 koesie10 merged commit b641007 into main Oct 31, 2022
@koesie10 koesie10 deleted the koesie10/variant-analysis-view-title branch October 31, 2022 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants