Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix the unable to login problem each time VSCode starts#212

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jdneo merged 2 commits intoLeetCode-OpenSource:masterfromhoutianze:master
Mar 17, 2019

Conversation

houtianze
Copy link
Contributor

@houtianzehoutianze commentedMar 17, 2019
edited by Vigilans
Loading

First, thanks for this awesome plugin 👍

The change is just one line.

The Problem

  • Each time I (re)started VS Code, the extension asks me to login to leetcode.com, though I can see from the directory~/.lc that the user secrets have been previously saved.

The Cause

  • Because theleetcode.cn leetcode-cli plugin is not installed by default with this extension, and if the user has never installed it manually (which most of the time is the case), online 62 inextension.ts: this call await leetCodeExecutor.switchEndpoint(plugin.getLeetCodeEndpoint()); will throw an exception (because it will eventually try to disable theleetcode.cn plugin, which has not been installed) and the next line which is to load the leetcode user information won't get executed (or error out? I didn't debug further).

The Fix

  • Installsleetcode.cn leetcode-cli plugin by default.

Vigilans reacted with thumbs up emoji
@VigilansVigilans self-requested a reviewMarch 17, 2019 07:31
Vigilans
Vigilans previously approved these changesMar 17, 2019
Copy link
Contributor

@VigilansVigilans left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution.

The commit you made has already been covered in a review in another PR:#193 (comment), in which I brought up with a solution but did not get shipped in the latest version.

However, although I know how to suppress the problem, I didn't figure out how the problem([ERROR] Plugin not found!) comes up, and the same problem has been reported by many users in#211.

Your analysis essentially solves my doubt. I then test executingleetcode plugin -d leetcode.cn in a new machine, and the errorPlugin not found was popped out as expected.

I can make sure your commit will solve both your problem and one that's discussed above. Good work!

houtianze reacted with thumbs up emoji
@VigilansVigilans requested a review fromjdneoMarch 17, 2019 07:48
@VigilansVigilans added this to the0.13.1 milestoneMar 17, 2019
Copy link
Member

@jdneojdneo left a comment

Choose a reason for hiding this comment

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

@houtianze Great work!:shipit:

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jdneojdneojdneo approved these changes

@VigilansVigilansVigilans left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
0.13.1
Development

Successfully merging this pull request may close these issues.

3 participants
@houtianze@jdneo@Vigilans

[8]ページ先頭

©2009-2025 Movatter.jp