-
Notifications
You must be signed in to change notification settings - Fork 92
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
API for extending the connections pane #5785
Conversation
E2E Tests 🚀 ? |
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.
Couple of nits but LGTM and connections pane looked healthy when I built this branch! Nice to see this becoming more extensible.
src/positron-dts/positron.d.ts
Outdated
@@ -1101,6 +1101,53 @@ declare module 'positron' { | |||
pasteText(text: string): void; | |||
} | |||
|
|||
export interface ConnectionsInput { | |||
// The unique identifier for the input. |
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.
These comments on interface members should use either the ///
form or the /**
form so that they show up in intellisense (etc).
if (!driver || !driver.checkDependencies) { | ||
throw new Error(`Driver ${driverId} does not support checking dependencies`); | ||
} | ||
return await driver.checkDependencies(); |
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.
Nit: here and elsewhere, the await
is unnecessary here -- the async
syntax sugar will chain the promise for you if you return it directly
Addresses: #5689
Add a positron public API that can be used to register new connection drivers. Registered drivers are used by the connections pane 'New Connection' button.