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

Use description field as thread stopped status. fixes #13049 #13050

Merged
merged 2 commits into from
Nov 13, 2023

Conversation

EvilBeaver
Copy link
Contributor

If thread Stopped event contains description field, UI must show description as is

What it does

Fixes #13049

How to test

  1. Create debug adapter which sets "Description" field of Stopped event of DAP
  2. See that description is shown in UI

Follow-ups

It would be nice to localize "Paused on {0}" text, but I'm not sure how it translates in other languages. Should it be two separate NLS keys "Paused on {0}" + "reason" (like now) or should it be single NLS key "paused on step" where word order depends on specific language.

Review checklist

Reminder for reviewers

…3049

If thread Stopped event contains description field, UI must show description as is
@tsmaeder
Copy link
Contributor

tsmaeder commented Nov 3, 2023

@EvilBeaver thx for the pull request, could you please address the linter issues?

@EvilBeaver
Copy link
Contributor Author

@EvilBeaver thx for the pull request, could you please address the linter issues?

@tsmaeder done

@tsmaeder
Copy link
Contributor

@EvilBeaver

Create debug adapter which sets "Description" field of Stopped event of DAP

is a bit much to ask from testers. Do you know or have a plugin that allows to test this?

@msujew
Copy link
Member

msujew commented Nov 13, 2023

@tsmaeder The builtin JS debugger vscode extension already does this.

@tsmaeder
Copy link
Contributor

@msujew I don't get it: when I break on a breakpoint in the Theia source code, I already get the description "ANGEHALTEN FÜR HALTEPUNKT" in the threads view. What are we fixing?

@msujew
Copy link
Member

msujew commented Nov 13, 2023

@tsmaeder The js-debug extension is supposed to send "Bei Haltepunkt angehalten" in the German localization (compare with German vscode to test this).

@tsmaeder tsmaeder merged commit 7ac24b7 into eclipse-theia:master Nov 13, 2023
13 checks passed
@vince-fugnitto vince-fugnitto added this to the 1.44.0 milestone Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Theia does not respect StoppedEvent description in Debug Adapter Protocol
4 participants