You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to generate bindings for the VsCode proposed API, which is shipped as a .d.ts file that contains API additions to the base vscode d.ts file.
In this PR I'm documenting the steps taken so far.
Specifically, for this vscode.proposed.d.ts code (which is in the 'vscode' module per the declaration at the top of the d.ts file):
exportnamespaceauthentication{/** * Get an authentication session matching the desired scopes. Rejects if a provider with providerId is not * registered, or if the user does not consent to sharing authentication information with * the extension. If there are multiple sessions with the same scopes, the user will be shown a * quickpick to select which account they would like to use. * * Currently, there are only two authentication providers that are contributed from built in extensions * to the editor that implement GitHub and Microsoft authentication: their providerId's are 'github' and 'microsoft'. * @param providerId The id of the provider to use * @param scopes A list of scopes representing the permissions requested. These are dependent on the authentication provider * @param options The {@link AuthenticationGetSessionOptions} to use * @returns A thenable that resolves to an authentication session */exportfunctiongetSession(providerId: string,scopes: readonlystring[],options: AuthenticationGetSessionOptions&{forceNewSession: true}): Thenable<AuthenticationSession>;exportfunctiongetSession(providerId: string,scopes: readonlystring[],options: AuthenticationGetSessionOptions&{forceNewSession: {detail: string}}): Thenable<AuthenticationSession>;}
ts2fable 0.8.0-build.616 generates bindings of the form
This appears to be an incorrect module name that would fail at runtime.
One other thing I noticed was that the current mechanisms (interfaces) are hard to extend with these kinds of proposed members. The user cannot convert between the Authentication.IExports defined here and the same ones defined in the 'base' vscode bindings. It's almost like ideally we'd be able to define a new Authentication.IExports that extended the interface from the base package.
The text was updated successfully, but these errors were encountered:
I'm attempting to generate bindings for the VsCode proposed API, which is shipped as a
.d.ts
file that contains API additions to the base vscode d.ts file.In this PR I'm documenting the steps taken so far.
Specifically, for this vscode.proposed.d.ts code (which is in the 'vscode' module per the declaration at the top of the d.ts file):
ts2fable 0.8.0-build.616 generates bindings of the form
This appears to be an incorrect module name that would fail at runtime.
One other thing I noticed was that the current mechanisms (interfaces) are hard to extend with these kinds of proposed members. The user cannot convert between the Authentication.IExports defined here and the same ones defined in the 'base' vscode bindings. It's almost like ideally we'd be able to define a new Authentication.IExports that extended the interface from the base package.
The text was updated successfully, but these errors were encountered: