Conversation

XzZZzX02

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.

@XzZZzX02XzZZzX02 changed the title Modification Add Code Snippets and Daily Challenge Selection Features Nov 17, 2024
Sign up for free to join this conversation on . Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

@XzZZzX02