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

Updates to usage of PortAttributes VSC API #13506

Merged
merged 2 commits into from
May 16, 2023
Merged

Conversation

DonJayamanne
Copy link
Contributor

Due to changes in upstream vs code API

@DonJayamanne DonJayamanne enabled auto-merge (squash) May 16, 2023 20:39
@DonJayamanne DonJayamanne merged commit cd19546 into main May 16, 2023
30 checks passed
@DonJayamanne DonJayamanne deleted the fixPortAttributeUsage branch May 16, 2023 21:46
@alexr00
Copy link
Member

alexr00 commented May 17, 2023

Thanks for updating so quickly!

Copy link
Member

Choose a reason for hiding this comment

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

@DonJayamanne are you able to use a selector when you register the provider (first param here):

this.disposables.push(workspace.registerPortAttributesProvider({}, this));
} catch (ex) {

I'm thinking about having an error if the selector is empty like this. The selector will result in a better experience for users as it will prevent extra trips to the extension host for ports that won't have attributes provided.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alexr00 please could you file an issue, so it never gets forgotten/lost
Will look into it when i get back

Copy link
Member

Choose a reason for hiding this comment

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

Done! #13553

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.

None yet

3 participants