Skip to content

Support status bar command and service stats logging#840

Merged
JakeDawkins merged 4 commits intomasterfrom
AT-9
Jan 17, 2019
Merged

Support status bar command and service stats logging#840
JakeDawkins merged 4 commits intomasterfrom
AT-9

Conversation

@JakeDawkins
Copy link
Copy Markdown
Contributor

@JakeDawkins JakeDawkins commented Dec 18, 2018

Goals

  • Add an action to the action bar item at the bottom of the VSCode editor that opens up the output for the Apollo extension and prints out basic service info
  • Add support on the language server for reporting that service info
  • Supports multiple projects open in the workspace (like in a monorepo). Stats printed are for the project associated with the open file. If no file is open, it just prints extension version

Client projects when loaded successfully:
screen shot 2019-01-10 at 4 34 45 pm

Error when projects can't load stats (either because of misconfiguration or other language server/extension errors):
screen shot 2019-01-10 at 4 35 20 pm

Note: Service projects currently aren't supported for stats, so clicking the status bar icon just prints the extension version and opens the output pane

Comment thread packages/apollo-language-server/src/languageProvider.ts Outdated
Comment thread packages/vscode-apollo/src/extension.ts Outdated
Comment thread packages/apollo-language-server/src/project/client.ts Outdated
Comment thread packages/apollo-language-server/src/project/client.ts Outdated
Comment thread packages/apollo-language-server/src/project/base.ts Outdated
@JakeDawkins JakeDawkins changed the title [WIP] Support action bar command and service stats logging Support action bar command and service stats logging Jan 10, 2019
Comment thread packages/vscode-apollo/src/utils.ts Outdated
Copy link
Copy Markdown
Member

@abernix abernix left a comment

Choose a reason for hiding this comment

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

This looks awesome! Just a few unsolicited comments!

Comment thread packages/apollo-language-server/src/fileSet.ts
Comment thread packages/vscode-apollo/src/extension.ts Outdated
Comment thread packages/apollo-language-server/src/project/client.ts Outdated
Comment thread packages/apollo-language-server/src/project/client.ts Outdated
Comment thread packages/vscode-apollo/src/utils.ts Outdated
@JakeDawkins JakeDawkins force-pushed the AT-9 branch 2 times, most recently from cc54122 to 7d29070 Compare January 17, 2019 17:51
@JakeDawkins JakeDawkins changed the title Support action bar command and service stats logging Support status bar command and service stats logging Jan 17, 2019
* Added action to vscode to request stats
* Linked status bar onclick to run stats action
* Added stats printing utils for output pane
* Added languageProvider method to request stats from projects
* Added ability to run commands from a parent dir for monorepo support in editors
@JakeDawkins JakeDawkins merged commit 1b34e65 into master Jan 17, 2019
@JakeDawkins JakeDawkins deleted the AT-9 branch January 17, 2019 23:45
glasser added a commit that referenced this pull request Jun 16, 2020
It was registered under the wrong name since its introduction in #840.
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