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

Fix the folder-opening dialog #479

Merged
merged 1 commit into from
Sep 30, 2022
Merged

Fix the folder-opening dialog #479

merged 1 commit into from
Sep 30, 2022

Conversation

stijndcl
Copy link
Collaborator

@stijndcl stijndcl commented Sep 30, 2022

When no folder is opened, the wrong function was used. This resulted in the pop-up not appearing.

The fix proposed in this PR first tells users that they have to pick a folder, and adds a button to allow students to choose a folder.

For ease-of-mind, selecting files & multiple folders are disabled. Just choose a folder.

Note: this doesn't show the documents anymore after opening the folder, as window and workspace don't really exist anymore (choosing a folder re-creates these). The file is still created. Students can just click on the exercise again afterwards.

@stijndcl stijndcl added the bug 🐛 Something isn't working label Sep 30, 2022
@stijndcl stijndcl self-assigned this Sep 30, 2022
@codecov
Copy link

codecov bot commented Sep 30, 2022

Codecov Report

Base: 52.28% // Head: 51.73% // Decreases project coverage by -0.55% ⚠️

Coverage data is based on head (c34ec59) compared to base (88fb6ee).
Patch coverage: 8.33% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #479      +/-   ##
==========================================
- Coverage   52.28%   51.73%   -0.56%     
==========================================
  Files          34       34              
  Lines         568      576       +8     
  Branches       99      100       +1     
==========================================
+ Hits          297      298       +1     
- Misses        238      246       +8     
+ Partials       33       32       -1     
Flag Coverage Δ
integration 51.21% <8.33%> (-0.55%) ⬇️
unit 75.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/commands/createNewExercise.ts 44.00% <8.33%> (-8.39%) ⬇️
src/api/client.ts 61.53% <0.00%> (+1.92%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@stijndcl stijndcl merged commit fe32b87 into master Sep 30, 2022
@stijndcl stijndcl deleted the fix-folder-select branch September 30, 2022 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants