Repository navigation
Conversation
Replace the bundled vsc-leetcode-cli with GraphQL/REST calls for cookie authentication, problems, statements, solutions, tests, submissions, and favorites. Cookies live in SecretStorage, with local multi-account sessions. Require VS Code 1.90, remove the Node.js, leetcode.nodePath, and leetcode.useWsl requirements, adopt asWebviewUri with a nonce CSP, add esbuild bundling, ESLint, unit tests, a Node 20 CI matrix, and English/Simplified Chinese localization. Keep the upstream package identity, version, and default endpoint so the change stays reviewable.
Document cookie/Web Authorization login, VS Code 1.90, and the removal of Node.js, leetcode.nodePath, and leetcode.useWsl. Add an Unreleased changelog entry and keep the endpoint default unchanged.
yanxijian
force-pushed
the
pr/direct-graphql-apis
branch
from
October 21, 2026 12:29
45a6ea9 to
39c4802
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace the bundled
vsc-leetcode-cliwith direct GraphQL/REST calls and modernize the extension for current VS Code. The CLI is effectively unmaintained and forces a Node.js dependency; this change removes it and talks to LeetCode directly, while keeping the upstream package identity and default endpoint (leetcode) for compatibility.What changed
SecretStorage, plus Web Authorization. Local multi-account sessions.LCP/interview IDs), statements, official/top solutions, tags, companies, favorites.leetCodeExecutor,cliSession,cpUtils,wslUtils; removevsc-leetcode-cli, the Node.js requirement,leetcode.nodePath, andleetcode.useWsl.asWebviewUri+ nonce CSP, remove legacyvscode-resource/enableCommandUris/retainContextWhenHidden, addviewsWelcomeand a sign-in context key.dist/extension.js), ESLint, unit tests, Node 20 CI matrix, and smaller VSIX packaging.CHANGELOG.mdhas an Unreleased entry.Testing
npm cinpm run typechecknpm run lintnpm test— 6 unit tests (cookie parsing and problem-file generation)npm run package— VSIX builds and installs into an isolated extensions directoryleetcode.cnaccount covered the problem list, statements, solutions, test/submit, and favorites.Compatibility notes
name,publisher, version, and default endpoint remain unchanged; leetcode.cn is selected with Switch Endpoint.