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

Initial work on Arc tree view #11008

Merged
merged 2 commits into from
Jun 18, 2020
Merged

Initial work on Arc tree view #11008

merged 2 commits into from
Jun 18, 2020

Conversation

Charles-Gagnon
Copy link
Contributor

~75% done but wanted to get this out before it got too large. Will follow up with further missing features and fixes.

Implemented :

  • Controllers, MIAA and PG instances all have nodes implemented
  • Launch dashboard
  • Delete added controllers

Yet to do:

  • Persist controllers
  • Dialog for entering controller information
  • Create separate action for creating new controller

@coveralls
Copy link

coveralls commented Jun 18, 2020

Coverage Status

Coverage increased (+0.1%) to 35.077% when pulling b530a08 on chgagnon/arcTreeView into 935733d on main.

} else if (error instanceof Error) {
} else if (error.message) {
if (error.response?.statusMessage) {
// Some Http errors just have a status message as additional detail, but it's not
Copy link
Contributor

Choose a reason for hiding this comment

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

Are there words missing at the end of this comment?

private _controllerNodes: ControllerTreeNode[] = [];

constructor(private _context: vscode.ExtensionContext) {
// TODO:
Copy link
Contributor

Choose a reason for hiding this comment

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

What is to be done here? I assume it's related to the 5 second delay.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Load the persisted controllers (one-time action done upon creation)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(I didn't bother to write context here since I'm fixing that right now myself)


public async openDashboard(): Promise<void> {
const miaaDashboard = new MiaaDashboard(this._controllerModel, this._model);
await Promise.all([
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the controller model be refreshed here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Possibly - I was thinking about it but I wasn't sure if that was necessary since in order for the node to show up it'd have to have been refreshed already.

I need to do a pass through through of correctly handling stuff being stale so this will likely be a part of that.

@Charles-Gagnon Charles-Gagnon merged commit 88fce76 into main Jun 18, 2020
@Charles-Gagnon Charles-Gagnon deleted the chgagnon/arcTreeView branch June 18, 2020 23:50
ktech99 pushed a commit that referenced this pull request Aug 23, 2020
* Initial work on Arc tree view

* finish my thoughts
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