Skip to content

Commit

Permalink
Merge pull request #1 from Deep0Thinking/dev
Browse files Browse the repository at this point in the history
v0.0.3
  • Loading branch information
Deep0Thinking authored Oct 8, 2023
2 parents f24893f + 9093877 commit d164d18
Show file tree
Hide file tree
Showing 22 changed files with 1,374 additions and 859 deletions.
41 changes: 37 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,42 @@
# Change Log

All notable changes to the "codeforces" extension will be documented in this file.
All notable changes to the "vscode-CP-codeforces" extension will be documented in this file.

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
## [0.0.3]

## [Unreleased]
### Changes

- Initial release
- Add more supported coding languages
- Add "RECENT" directory for problems
- Introduce icon for sorting in "DIFFICULTY", "RECENT" and "ALL" directories
- Introduce welcome page for login
- Store user-handle and sorting preferences in extension settings
- Implement user preferences for coding languages and template
- Include "contestId-index" in question filename
- Add tags in problem descriptions
- Default to keeping all folders collapsed
- Add notifications prompting users to check out extension settings
- Remove half-passed icon of problems for clarity
- Remove redundant files and code blocks
- Code formatting and cleanup

### Fixed

- Ensure solution files are created with absolute paths
- Check validity of user handle

## [0.0.2]

### Changes

- Added user status and submission sync
- Added problems files sorting modules
- Updated problems files naming display
- Added coding module for every problem file
- Added submit button with defective submit module

## [0.0.1]

### Initialized

- Users can view the all the available Codeforces problems and the problems descriptions within VSCode.
44 changes: 29 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,60 @@ A VSCode extension that enables users to view and solve Codeforces problems with

# Demonstration

![demonstration](https://user-images.githubusercontent.com/103571424/232390418-239ee6ba-2666-41c6-9163-f5f72566d863.mov)
![demo](https://github.com/Deep0Thinking/vscode-CP-codeforces/assets/103571424/c366caaa-32ad-4c99-82a6-da7d88a48fb6)

# Features

## Fetch problems status with user handle
### Sign in with Codeforces handle

![Enter user handle](/resources/enter-user-handle-demo.png)
<img width="355" alt="enter-user-codeforces-handle-demo" src="https://github.com/Deep0Thinking/vscode-CP-codeforces/assets/103571424/536142f3-a161-48fc-9262-1026ce385db9">

![Enter your codeforces handle](/resources/enter-your-codeforces-handle-demo.png)
### Fetch user's solution status

Open vscode command palette (`Shift` + `Command` + `P` or `Ctrl` + `Shift` + `P`), choose `Codeforces: Enter User Handle`, then enter your handle.
<img width="360" alt="fetch-users-solution-status-demo" src="https://github.com/Deep0Thinking/vscode-CP-codeforces/assets/103571424/2a7585cc-68a5-4091-87d7-db7ca6f3668c">

## Refresh and refetching
### Refetch user's solution status

![Refresh button](/resources/refresh-button-demo.png)
<img width="411" alt="refresh-button-demo" src="https://github.com/Deep0Thinking/vscode-CP-codeforces/assets/103571424/91be559c-8301-48f6-b541-1a1e6f53adab">

Click on the `Refresh` button next to the `All` to refresh and refetching the problems status.
### Toggle problems' rating order

## Sorting problems
<img width="463" alt="toggle-rating-order-button-demo" src="https://github.com/Deep0Thinking/vscode-CP-codeforces/assets/103571424/7a76c737-20af-44e8-8b75-14819b7ffbd1">

![Sorting options button](/resources/sorting-options-button-demo.png)
### Preview problems

![Sorting options button](/resources/choose-a-sorting-option-demo.png)
<img width="1255" alt="preview-problems-demo" src="https://github.com/Deep0Thinking/vscode-CP-codeforces/assets/103571424/708189a6-53c7-480f-8512-15d3446d6f49">

Click on the `More Actions` button next to the `All` to choose the sorting option for the problems.
### Set preferred coding language

# Requirements
<img width="389" alt="set-preferred-coding-language-demo" src="https://github.com/Deep0Thinking/vscode-CP-codeforces/assets/103571424/8fbec9cf-c55c-435b-a3ce-497608e856b3">

### Set template code to initialize the solution file

<img width="474" alt="set-template-code-to-initialize-the-solution-file-demo" src="https://github.com/Deep0Thinking/vscode-CP-codeforces/assets/103571424/d6e2a336-cd05-4d30-ae74-14f97b41376e">

# Extension Settings
# Requirements

- [VS Code 1.77.0+](https://code.visualstudio.com/updates/v1_77)

# Extension Settings

# Known Issues
| Setting Name | Description | Default Value |
|--------------|-------------|---------------|
| `CPcodeforces.userHandle` | The last valid Codeforces user handle entered. | `""` |
| `CPcodeforces.defaultSolutionsFolderPath` | The absolute path for saving solutions. (Leave blank to use the default home path.) | `""` |
| `CPcodeforces.notifyPreferredLanguage` | Notify if the preferred coding language is not set. | `true` |
| `CPcodeforces.preferredCodingLanguage` | Preferred coding language for problem solutions. Supported languages: `C`, `C#`, `C++`, `D`, `Go`, `Haskell`, `Java`, `JavaScript`, `Kotlin`, `OCaml`, `Pascal`, `Perl`, `PHP`, `Python3`, `Ruby`, `Rust`, `Scala` | `""` |
| `CPcodeforces.notifySolutionTemplate` | Notify if the solution template is not set. | `true` |
| `CPcodeforces.solutionTemplate` | Template code for the solution file of the preferred language. | `""` |
| `CPcodeforces.sortOrder` | Sort order for the All problems list. Supported options: `"None"`, `"RatingAsc"`, `"RatingDesc` | `"None"` |
| `CPcodeforces.difficultySortOrder` | Sort order for the Difficulty folders list. Supported options: `"RatingAsc"`, `"RatingDesc"` | `"RatingAsc"` |



# Release Notes

Refer to [CHANGELOG](https://github.com/Deep0Thinking/vscode-CP-codeforces/blob/master/CHANGELOG.md)

# Attribution

Expand Down
Loading

0 comments on commit d164d18

Please sign in to comment.