Commit Graph

78 Commits

Author SHA1 Message Date
Connor Peet
2e3df8a8b1 testing: coverage decorations in high contrast, better default behavior for position-only exts (#202676)
* testing: coverage decorations in high contrast, better default behavior for position-only exts

* update snapshot
2024-01-17 11:15:21 -08:00
Connor Peet
1c0c4726d3 testing: finish up coverage decorations (#202391)
* testing: finish up coverage decorations

- Adds an inline decorator for empty-range branches
- Adds hover information for inline coverage hovers
- Fixes the editor not handling decorations that get after/before
  content in `updateDecorationOptions`
- Adds an option `label` for branches
- A bunch of other misc tweaks to get coverage looking nice
- Keep decorations in sync if a user makes changes in editor

* update tests
2024-01-13 07:35:11 +01:00
Martin Aeschlimann
74f8c5cd89 Make the watermark editor labels themable (#202228) 2024-01-11 10:16:00 +01:00
Henning Dieterichs
ad18bb00ce Fixes #199351 2024-01-09 23:40:26 +01:00
Connor Peet
0e743a2d91 testing: add initial editor decorations
This is the first pass at decorations in-editor. This PR doesn't
actually register the contribution, as it's not ready for selfhosting
yet. This PR creates decorations that look like this. The idea is that
coverage decorations in the glyph margin will always be visibile when
there's coverage, and users can get coverage in their code via hover or
shortcut, with the intention of making coverage unobtrusive and easy to
run all the time.

![](https://memes.peet.io/img/24-01-8e61f4db-f115-4732-affe-59dea879a335.png)

The notable thing is that there is now a third glyph margin row. I
reworked some of the editor code to handle this.

![](https://memes.peet.io/img/24-01-f400369f-650c-4303-be65-e65903f8ad17.png)

Some open questions:

- The glyph margin coverage wants doesn't need to be full-width, should
  we add a new 'leftmost' glyph lane instead that's thinner?
- Adding breakpoints in files with coverage is a little annoying since
  the breakpoint hint widget can expand the glyph margin on lines with
	coverage, and jump back over otherwise. Probably we should never
	decrease the number of lanes shown whenever the cursor is over the
	glyph margin.

		![](https://memes.peet.io/img/24-01-79b53dd9-6fca-41dd-87b5-a113f9c25efb.gif)
2024-01-08 16:11:42 -08:00
Aiday Marlen Kyzy
16894205b6 Changing from outputEditor to outputView (#201290)
changing outputEditor to outputView
2023-12-20 17:14:32 +01:00
Aiday Marlen Kyzy
d19f384e1a Merge pull request #200251 from microsoft/aiday/outputViewStickyScroll
Setting a different color for the output view
2023-12-13 16:09:20 +01:00
Aiday Marlen Kyzy
d3d984d0ca registering two new colors for outputEditor and outputEditorStickyScroll background colors 2023-12-08 18:04:05 +01:00
Aiday Marlen Kyzy
14d593fb5f Adding colors vscode-editorStickyScroll-border and vscode-editorStickyScroll-shadow (#200239)
* adding two more colors

* rewording text and making the border color null
2023-12-08 17:25:59 +01:00
Aiday Marlen Kyzy
b5ad415b68 adding new color for sticky scroll inside of the panel 2023-12-08 15:05:20 +01:00
Aiday Marlen Kyzy
797f78fb64 wip 2023-12-07 17:30:32 +01:00
Aiday Marlen Kyzy
b49fc606c5 definining a new color for the lightbulb ai icon 2023-11-29 16:07:41 +01:00
Connor Peet
e0ef3fcd18 testing: initial test coverage UI (#198812)
This continues on the coverage API I started a few years ago. It adds
initial integration where a "Show Test Coverage" tree item is shown in
the Test Results view, which then opens a dedicated Test Coverage view.
The Test Coverage view is a fairly basic tree view following the draft
design, with further improvements to come.

The 'bars' widget is also built in a reusable way such that it can be
integrated into the explorer, as this was a popular ask both inside and
outside the team.

For #123713.
2023-11-22 07:08:34 -08:00
Ladislau Szomoru
9a207df841 SCM - adjust statistics badge border when item is selected/focused (#198367) 2023-11-15 15:07:09 -08:00
Ladislau Szomoru
5fcda6b8c5 SCM - improve statistics badge (#198353) 2023-11-15 13:31:00 -08:00
Dipta Mahardhika
6518c0099c chore: rename color var for comment input box (#197950)
* chore: rename color var for comment input box

also change the default color to inherit from input.background

* Keep using peekview title background and update editor too

---------

Co-authored-by: Alex Ross <alros@microsoft.com>
2023-11-13 13:25:08 +00:00
Aiday Marlen Kyzy
df2dd86b0c Merge pull request #197817 from microsoft/aiday/sparkleOnHover
Add a setting to make the sparkle appear on hover or always
2023-11-10 09:20:08 +01:00
Henning Dieterichs
f85a095fd2 Merge pull request #197652 from microsoft/hediet/b/pregnant-mink
Implements first iteration of multi diff editors.
2023-11-09 19:15:12 +01:00
Aiday Marlen Kyzy
c90a53543b polishing the code 2023-11-09 15:59:03 +01:00
Aiday Marlen Kyzy
fba876b51f adding setting to make the sparkle appear only on hover 2023-11-09 13:09:44 +01:00
Daniel Imms
dcdd8555dc Merge branch 'main' into tyriar/172742_sticky_scroll 2023-11-08 11:36:28 -08:00
Alex Ross
43a6f0562f comment reply box background should have it's own color (#197738)
Fixes #196584
2023-11-08 15:41:03 +01:00
Daniel Imms
e2870f6765 Merge branch 'main' into tyriar/172742_sticky_scroll 2023-11-08 06:31:11 -08:00
Henning Dieterichs
3f0f51bde0 Fixes #197552 2023-11-08 10:20:42 +01:00
Henning Dieterichs
090fd2c772 Implements first iteration of multi diff editors.
Co-authored-by: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com>
2023-11-07 16:51:38 +01:00
Daniel Imms
3cfbb33383 Fix most sticky scroll bg styles 2023-11-06 12:49:52 -08:00
David Dossett
eb6ffc2378 Fix color name 2023-10-23 17:12:15 -07:00
David Dossett
2423f43195 Update chat avatar styles 2023-10-23 17:10:19 -07:00
ermin.zem
bf9068c750 fix: fix editor progress position when enabled pinnedTabsOnSeparateRow (#195314)
* fix: fix editor progress position when enabled pinnedTabsOnSeparateRow

* fix: fix editor progress position

* fix: fix editor progress position

* fix: add commit to editor title progress style

* Revert "fix: add commit to editor title progress style"

This reverts commit 302ec88c9a.

* Revert "fix: fix editor progress position"

This reverts commit ec445b607c.

* Revert "fix: fix editor progress position"

This reverts commit cea64becfa.

* Revert "fix: fix editor progress position when enabled pinnedTabsOnSeparateRow"

This reverts commit 8f2c0e7022.

* feat: add --editor-group-tabs-height css variable to set progress bar position

* update height in lyout

* Remove setting redraws as already done elsewhere

* Remove 2px for progress bit height

---------

Co-authored-by: ermin.zem <ermin.zem@alibaba-inc.com>
Co-authored-by: BeniBenj <besimmonds@microsoft.com>
2023-10-23 12:14:58 +02:00
David Dossett
243e6cec50 Tweak text preformat foreground and background (#195821) 2023-10-17 22:18:28 +02:00
Benjamin Pasero
90aee6d79c voice - more tweaks to icon animation (#195681)
* voice - more tweaks to icon animation

* more tweaks
2023-10-16 12:16:59 +02:00
Bhavya U
1d7b8b8a43 Update color-registry (#194756) 2023-10-03 17:53:59 -07:00
Sandeep Somavarapu
20212f2b7b overlay gear on profile icon (#193806) 2023-09-22 15:08:24 +01:00
Benjamin Pasero
7d7dfa8f3e debt - refer to tab height also in code 2023-09-09 13:28:26 +02:00
BeniBenj
908d5f155d variable renaming 2023-09-06 15:20:49 +02:00
BeniBenj
2e33655e9c rename variables title height, added super methods 2023-09-06 10:39:10 +02:00
BeniBenj
09a9c0140e Support different tab heights 2023-09-04 18:00:07 +02:00
Aiday Marlen Kyzy
14c1d7c061 adding code changes 2023-08-28 15:04:43 +02:00
Aiday Marlen Kyzy
74a11f3d2b adding some working code, use classes instead 2023-08-28 14:25:26 +02:00
Henning Dieterichs
e5a07457e4 Improves moved code arrow rendering. 2023-08-22 18:16:39 +02:00
Benjamin Pasero
f19d123095 status bar - introduce kind and adopt (fix #184967) (#190947)
* status bar - introduce `kind` and adopt (fix #184967)

* adopt for extensions

* deprecate colors
2023-08-22 12:37:40 +02:00
David Dossett
cf4f089eef Add hover foreground for prominent status bar items (#190925) 2023-08-21 16:35:12 -07:00
David Dossett
c69eb8f67a Add status bar item hover foreground color (#190906)
* Add status bar item hover foreground color

* Use status bar item foreground instead
2023-08-21 10:42:37 -07:00
Henning Dieterichs
04dd69f669 Renders toggle state in action bar. Fixes #186403. 2023-08-14 18:45:24 +02:00
Aiday Marlen Kyzy
f7f8fea209 Merge pull request #187698 from microsoft/aiday/limitingWidthOfHover
Limiting the width of the content hover to the content inside
2023-08-14 14:28:14 +02:00
David Dossett
1b8729178c Remove background color for chat requests (#190297)
Don't use background color for chat requests
2023-08-12 07:58:25 -07:00
Alex Dima
684270ac2e Use consistent names for variables, fall back to defaults when wrapping is on 2023-08-11 17:39:24 +02:00
Alexandru Dima
6e7ea55068 Merge branch 'main' into aiday/limitingWidthOfHover 2023-08-11 17:17:07 +02:00
David Dossett
d1c4bf3fcb Add CSS vars for slash commands and tweak styling (#189965)
Add css vars for slash commands and tweak styling
2023-08-08 13:37:37 -07:00
Aiday Marlen Kyzy
a31f703941 Making sticky scroll scrollable (#189466)
* work in progress make it scrollabel

* adding changes

* adding changes

* cleaning the code

* cleaning the code

* not usnig a vertical scrollbar

* scanning the dom node only on mouse over

* requires tweaking

* now the scrollbar can be used alongside the hovering on the sticky scroll

* setting handle mouse wheel to false in order not to scroll vertically inside of the scrollable element with wheel

* separated the line numbers and the actual line in order to be able to just move one of the scrollbars, the editor one and the line numbers remain the same

* cleanin the code

* we are able to make the full line appear

* the width is correctly updated on the width layout change of the editor

* only rendering when top scroll changed, not when horizontal scroll changed

* using the correct editor layout info, not the one saved in the constructor

* setting the linehtml node style width to 100% so that the whole line is covered, but still not covered after the end of the viewport

* changing the total width after rendering

* placing the color into sticky line number

* removing the direct setting of the colors

* adding the background color inside of sticky line number

* using the view zone in order to increase the scroll width of the editor

* placing the view zone at the very bottom of the file

* limiting the scrollable dom height to the height of the sticky widget lines node inside, so now the sticky widget works as before

* cleaning the code

* cleaning the code

* removing useless variable

* adding 100 pixels in order to see the end of the line

* removing the console logs

* putting back the check to what it was

* using the same string convention

* adding inheritance properties in order for the background color to be propagated

* cleaning the code

* cleaning the code

* using or instead of and in the zone accessos

* cleaning the code

* cleaning the code

* cleaning the CSS

* chaning the order of the CSS properties

* cleaning the code

* Improve rendering

* No need to resize the widget from the outside, the widget resizes itself

* placing the focus method inside of the sticky widget

* céeanig the code

* Minor tweaks

* Also update widget width when the scroll width changes

* Allow overlay widgets to pass in a minimum content width

* Also update the min content width if the position doesn't change

* defining method for mi content width in px

* updating the minimum content width

* adding setting in order to be able to control whether sticky scroll scrolling should be influenced by editor horizontal scrolling

* removing redundant new line

* Fix typo

* Extract code in a function

---------

Co-authored-by: Alexandru Dima <alexdima@microsoft.com>
2023-08-07 17:35:57 +01:00