-
Notifications
You must be signed in to change notification settings - Fork 33
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
Execute Produce code lens in kafka file with progress #141
Conversation
This PR provides the ProducerCollection concept to be consistent with existing ConsumerCollection. The main idea is to store a wrapper of producer in a collection with a given uri (like consumer does). The uri of producer (identifier) use clusterId, key and value. I set this PR as draft because I need to clean my code but here a little demo where you can see |
b14f13e
to
2fa0a02
Compare
apart from the missing entry in the changelog, everything LGTM |
2fa0a02
to
ce4354c
Compare
Please note that I updat emy code to refresh code lensonly for connecting and disconnecting states. |
b174082
to
be846e7
Compare
src/commands/producers.ts
Outdated
channel.appendLine(`Error: ${error.message}`); | ||
} else { | ||
channel.appendLine(`Error: ${error}`); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should prolly disconnect the producer in case of an error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disconnect producer is a bad idea because producer connect takes some times. In otherwise you connect one time to the producer and you disconnect never.
4f3b013
to
269afab
Compare
9283388
to
3d2c14f
Compare
3d2c14f
to
fec5c7a
Compare
Fixes jlandersen#117 Signed-off-by: azerr <[email protected]>
Thanks @angelozerr! |
Execute Produce code lens in kafka file with progress
Fixes #117
Signed-off-by: azerr [email protected]