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 Code Snippets and Daily Challenge Selection Features #982

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

XzZZzX02
Copy link

This pull request introduces two features to the VSCode extension: code snippets and pick daily challenges. The most important changes include adding a new command for picking the daily challenge, modifying the existing configuration to support custom code snippets.

New Feature: Pick Daily Challenge

  • Added a new command leetcode.pickDaily to pick the daily challenge. (package.json, src/commands/show.ts, src/extension.ts) [1] [2] [3] [4]
  • Implemented the queryDailyChallenge function to fetch the daily challenge ID from the LeetCode API. (src/request/query-daily-challange.ts)

New Feature: Code Snippets

  • Updated the LeetCodeExecutor class to insert custom code snippets into the problem template if provided. (src/leetCodeExecutor.ts)

Configuration Improvements

  • Added a new configuration option leetcode.codeSnippets for custom code snippets. (package.json)

These changes enhance the functionality of the LeetCode extension by allowing users to easily access the daily challenge and customize their coding experience with custom snippets.

@XzZZzX02 XzZZzX02 changed the title Modification Add Code Snippets and Daily Challenge Selection Features Nov 17, 2024
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.

1 participant