-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
markers: improve 'description' #7209
Conversation
The following pull-request improves the `description` for the `MarkerInfoNodes`: `marker-tree-label-provider.ts`: The `marker-tree-label-provider.ts` has been updated to handle extra cases where we want custom behavior when displaying the description. These cases include omitting the description for when a file resource located at the workspace root is opened with markers in both single and multiple root workspaces. This behavior aligns the `problems-view` further with what VS Code provides. `marker-tree-label-provider.spec.ts` The `marker-tree-label-provider.spec.ts` has been updated to include a new label contribution provider (`WorkspaceUriLabelProviderContribution`), in order to get a better label representation of a real-world application. The test cases have also been updated and split into a more readable and verbose format. The test cases for `getLongName()` have been updated to include both single and multiple root test cases. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
c11c4f0
to
1da07bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on Ubuntu 18.08, Chrome and Electron.
Works fine as expected and tests are also running fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worked really well.
I tested on gitpod. The following edge cases worked:
- Opens one folder as a workspace, and one ts file outside the workspace.
- Opens one folder, and its parent folder as the second root, to make a multi root workspace.
Thank you for the change !
Thank you for the review @lmcbout @Anasshahidd21 @elaihau ! |
What it does
The following pull-request improves the
description
for theMarkerInfoNodes
:marker-tree-label-provider.ts
:The
marker-tree-label-provider.ts
has been updated to handleextra cases where we want custom behavior when displaying the description.
These cases include omitting the description for when a file resource
located at the workspace root is opened with markers in both single
and multiple root workspaces. This behavior aligns the
problems-view
further with what VS Code provides.
marker-tree-label-provider.spec.ts
:The
marker-tree-label-provider.spec.ts
has been updated to include a newlabel contribution provider (
WorkspaceUriLabelProviderContribution
), inorder to get a better label representation of a real-world application. The test
cases have also been updated and split into a more readable and verbose format.
The test cases for
getLongName()
have been updated to include both single andmultiple root test cases.
How to test
description
)Review checklist
Reminder for reviewers
Signed-off-by: Vincent Fugnitto vincent.fugnitto@ericsson.com