Skip to content

Develop new function to show the content of problem #126

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

Closed
wants to merge 3 commits into from

Conversation

qyazhang
Copy link

This PR is started from the consideration that when I use this extension to solve leetcode problem, I always want to first check the description of the problem and then consider whether I will start to solve it or not. But right now "show problem" function only assume I want to solve it and create a source code file, and I could only see the problem description in that.
So I start to create a new "show problem" function to replace the original one, which could get the context of problem description and show it in a new window instead of creating a source code file.

What have done:

  • create new "showProblem" function

  • rename original "showProblem" function to "showToSolveProblem"

  • send post request to leetcode's graphql and open a WebView to show the description content referring to leetcode-cli

  • add "show problem" to right-click menu, and rename original "show problem" to "solve problem"

What haven't done:

  • Haven't add the "showProblem" support for "leetcode-cn.com"

  • Haven't add the left-click event to problem items to directly open the description content when we left-click (I've tried to implement it, and inherit LeetCodeNode from TreeItem and give command to each LeetCodeNode, but it didn't work. It may need further discussion)

@qyazhang
Copy link
Author

I find I did't merge the newest master

@qyazhang qyazhang closed this Feb 15, 2019
@jdneo
Copy link
Member

jdneo commented Feb 15, 2019

This pull request introduces 1 alert when merging 978732f into b15f4f8 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

Comment posted by LGTM.com

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