Skip to content

Convert AST and CFG commands to typed commands#2196

Merged
koesie10 merged 7 commits intomainfrom
koesie10/ast-cfg-typed-commands
Mar 22, 2023
Merged

Convert AST and CFG commands to typed commands#2196
koesie10 merged 7 commits intomainfrom
koesie10/ast-cfg-typed-commands

Conversation

@koesie10
Copy link
Copy Markdown
Member

Please review this commit-by-commit. This converts the AST and CFG commands to typed commands. It also moves them to a separate file to reduce the size of extension.ts.

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.

@koesie10 koesie10 requested a review from a team March 21, 2023 15:19
@koesie10 koesie10 marked this pull request as ready for review March 21, 2023 16:27
@koesie10 koesie10 requested a review from a team as a code owner March 21, 2023 16:27
Base automatically changed from koesie10/typed-local-query-commands to main March 22, 2023 10:34
...variantAnalysisManager.getCommands(),
...databaseUI.getCommands(),
...dbModule.getCommands(),
...getAstCfgCommands({
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hmm, this is a lot of arguments and it obscures things a bit. I think it's fine for this PR and I'm not suggesting anything right now, but it would be nice if we could make this clearer and clearer in the future.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I completely agree. In the future we should probably create separate modules and then we'd be able to just pass any dependent modules to it, and create the AST viewer and template providers in the module itself. However, this is something for the future.

@koesie10 koesie10 enabled auto-merge March 22, 2023 12:04
@koesie10 koesie10 merged commit e724577 into main Mar 22, 2023
@koesie10 koesie10 deleted the koesie10/ast-cfg-typed-commands branch March 22, 2023 12:32
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