-
Notifications
You must be signed in to change notification settings - Fork 295
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
Can the ports attributes provider use a selector? #13553
Comments
@alexr00
Thus the suggestion i have is,
I believe this will work, only difference from what we have today is that
Please can you advice this approach works. |
@DonJayamanne I don't see a problem with that. If you find that it doesn't work then I will fix whatever bug that is uncovered. |
@DonJayamanne thanks for making this change! I will make the change in VS Code Insiders to start logging an error when an empty selector is passed. Then, next iteration I'll start throwing. |
Apologies for not getting to this sooner |
This extension registers a ports attributes provider so that ports that are listened on for the internal workings of the extension don't get picked up by automatic port forwarding when connected to a remote. ✅
Right now, the provider is registered with an empty selector, which means that VS Code will ask this extension for port attributes for each and every port that it automatically forwards.
Is it feasible to use a selector when the ports attributes provider is registered here?
vscode-jupyter/src/kernels/portAttributeProvider.node.ts
Lines 20 to 21 in cd19546
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.
The text was updated successfully, but these errors were encountered: