ls1intum / Artemis

Artemis - Interactive Learning with Automated Feedback
https://docs.artemis.cit.tum.de
MIT License
506 stars 294 forks source link

Copy Code out of Repositories Commit History #9686

Open Haideworks opened 1 week ago

Haideworks commented 1 week ago

Describe the bug

When you are in the commit history of a commit were you can see the differences between the last and current commit. Then you have to put the artemis site on the right split view in windows. I personally used chrome. Then you can do a left click on a line and a window pops up with "copy changed line (40)" when you click on it line 39 is copied to your clipboard. Screenshot 2024-11-06 172010

To Reproduce

  1. Open Artemis in Chrome
  2. push Window to the right side of the screen (split view)
  3. open commit history were you can see the plain text commit differences
  4. left click on a deleted line
  5. click "copy changed line" on the pop up window

Expected behavior

Expected line should be copied

Screenshots

No response

Which version of Artemis are you seeing the problem on?

7.6.5

What browsers are you seeing the problem on?

Chrome

Additional context

No response

Relevant log output

No response

pzdr7 commented 1 week ago

Good find, thanks for reporting :+1:

I was able to reproduce this in the Monaco editor playground, so this is a bug in that dependency. I've opened the issue https://github.com/microsoft/monaco-editor/issues/4743 describing this problem