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

VSCode plugin + CLI watch #102

Merged
merged 13 commits into from
Nov 4, 2024
Merged

Conversation

danielgerlag
Copy link
Contributor

Description

Added Drasi explorer to VSCode plugin that enables the user to manage the drasi instance of the current context.
image

This includes inspecting and deleting Drasi resources (Sources, Queries, Reactions).
You can also attach to a running query to see the live results.

Added Debug and Apply actions to Drasi resources that are discovered in thew editor:
image

When the results windows of the debug session is closed or the connection is broken, the query, indexes, etc... will be cleaned up on the query host.

image

Added watch command to the CLI the exposes the same functionality to attach to running queries.
image

These features are supported by the debug and watch routes added to the Management API.

Also includes 2 small fixes:

  • Error reporting for the Debezium reactivator, when it fails.
  • The CLI looks for an open port to use for port forwarding, rather than a single hard coded value. This enables multiple sessions concurrently.

Type of change

@danielgerlag danielgerlag requested a review from a team as a code owner October 28, 2024 23:03
control-planes/mgmt_api/src/domain/result_service.rs Dismissed Show dismissed Hide dismissed
dev-tools/vscode/drasi/src/drasi-client.ts Dismissed Show dismissed Hide dismissed
dev-tools/vscode/drasi/src/drasi-client.ts Dismissed Show dismissed Hide dismissed
dev-tools/vscode/drasi/src/drasi-client.ts Dismissed Show dismissed Hide dismissed
dev-tools/vscode/drasi/src/drasi-client.ts Dismissed Show dismissed Hide dismissed
dev-tools/vscode/drasi/src/drasi-client.ts Dismissed Show dismissed Hide dismissed
dev-tools/vscode/drasi/src/drasi-client.ts Dismissed Show dismissed Hide dismissed
@@ -29,7 +29,13 @@ async function main() {
const extensionTestsPath = path.resolve(__dirname, './suite/index');

// Download VS Code, unzip it and run the integration test
await runTests({ extensionDevelopmentPath, extensionTestsPath });
await runTests({
extensionDevelopmentPath,
Copy link
Contributor

Choose a reason for hiding this comment

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

wow 😲 tests for the vscode plugin

Copy link
Contributor

Choose a reason for hiding this comment

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

rip radioactive icon

vscode.commands.registerCommand('editor.resource.apply', this.applyResource.bind(this));
}

provideCodeLenses(document: vscode.TextDocument, token: vscode.CancellationToken): vscode.CodeLens[] {
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need codelenses for reactionproviders and sourceproviders?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's look into that for the next iteration

@danielgerlag danielgerlag merged commit cce5fc8 into drasi-project:main Nov 4, 2024
30 checks passed
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