Enhancement based on my personal view#582
Open
dantetemplar wants to merge 14 commits into
Open
Conversation
… Search for .cph folder from code file parent folder to workspace; Open CPH Judge tab only if .prob file is associated; Ctrl + Alt + B will open CPH Judge but will not create a .prob file until second invocation
Author
|
May broke some stuff with .prob files, but should not |
Author
|
Code for line numbers is hacky, sorry, can't do it cleaner yet |
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.
Rework
Cph › General: Save LocationNow .cph folder created inside Save Location.
Save location will be created instead of raising error.
It supports ${group} syntax 🔥
Description for the option is changed:
Rework finding .prob for code file
Now it will check every .cph folder from down to top until it will find such .prob that points to the code file via
srcPath(name of .prob may be any, but same name as code file is prioritized). Using such approach allow us to remove messy hash from .prob files.Auto-open CPH Judge only if associated .prob file exists
If no .prob file exists, most probably, that is not a problem code file, but just some file (may be scratch, or util).
Ctrl+Alt+Bwill not create new .prob until second invocationSo, firstly it will open CPH Judge tab, and on second keybind shot will create .prob file with empty testset.
Prettify .prob files
It will be with
indent=2so human will able to read those .json files.Speed up extension loading
Set
retainWebviewContexttotrueby default so IDE will keep extension in memory to open it instantly.Line number column and coloring

Now we have line number with synchronized highlight on hovering, also it shifts first line for input if T-testcases pattern (common in CodeForces) is detected. And coloring for good and bad tokens. Relates-to: #572 #577
Suppress warning about Content Security Policy
There was a warning in Extension Host:
It was fixed by adding Content Security Policy in App and generating nonce for scripts.