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

Add support for account login #30

Merged
merged 5 commits into from
Apr 16, 2023
Merged

Add support for account login #30

merged 5 commits into from
Apr 16, 2023

Conversation

ktiays
Copy link
Member

@ktiays ktiays commented Apr 16, 2023

The old version API of Cursor is currently no longer available and calling the interface will not return any data. This PR has deprecated the use of the old API and added support for logging in with a Cursor account.

@@ -53,6 +55,9 @@ export function activate(context: vscode.ExtensionContext) {
},
} as any;

setExtensionContext(new ExtensionContext());
Copy link
Member

@unixzii unixzii Apr 16, 2023

Choose a reason for hiding this comment

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

Add some explanations for the crypto polyfill.


#[wasm_bindgen]
extern "C" {
pub type CancellationToken;
Copy link
Member

Choose a reason for hiding this comment

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

This is never used, maybe we can remove it for now.

let context = get_extension_context();
match context
.show_information_message(
"You have to sign in / sign up or configure API key to use Cursor AI feature",
Copy link
Member

Choose a reason for hiding this comment

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

"features"

Copy link
Member

@unixzii unixzii left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants