Przeglądaj źródła

Adds open/closed/virtual repo icons

Refines workspace repo nodes
main
Eric Amodio 1 rok temu
rodzic
commit
9a92387ade
23 zmienionych plików z 125 dodań i 17 usunięć
  1. +5
    -0
      images/dark/icon-repo-cloud-blue.svg
  2. +5
    -0
      images/dark/icon-repo-cloud-green.svg
  3. +5
    -0
      images/dark/icon-repo-cloud-red.svg
  4. +5
    -0
      images/dark/icon-repo-cloud-yellow.svg
  5. +5
    -0
      images/dark/icon-repo-cloud.svg
  6. +4
    -0
      images/dark/icon-repo-solid-blue.svg
  7. +4
    -0
      images/dark/icon-repo-solid-green.svg
  8. +4
    -0
      images/dark/icon-repo-solid-red.svg
  9. +4
    -0
      images/dark/icon-repo-solid-yellow.svg
  10. +4
    -0
      images/dark/icon-repo-solid.svg
  11. +5
    -0
      images/light/icon-repo-cloud-blue.svg
  12. +5
    -0
      images/light/icon-repo-cloud-green.svg
  13. +5
    -0
      images/light/icon-repo-cloud-red.svg
  14. +5
    -0
      images/light/icon-repo-cloud-yellow.svg
  15. +5
    -0
      images/light/icon-repo-cloud.svg
  16. +4
    -0
      images/light/icon-repo-solid-blue.svg
  17. +4
    -0
      images/light/icon-repo-solid-green.svg
  18. +4
    -0
      images/light/icon-repo-solid-red.svg
  19. +4
    -0
      images/light/icon-repo-solid-yellow.svg
  20. +4
    -0
      images/light/icon-repo-solid.svg
  21. +22
    -10
      src/views/nodes/repositoryNode.ts
  22. +7
    -3
      src/views/nodes/workspaceMissingRepositoryNode.ts
  23. +6
    -4
      src/views/viewDecorationProvider.ts

+ 5
- 0
images/dark/icon-repo-cloud-blue.svg Wyświetl plik

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#C5C5C5" d="M12 5.536a3.5 3.5 0 0 1 0 6.928V15h-1v-2.536a3.5 3.5 0 0 1 0-6.928V0h1v5.536ZM14 9a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"/>
<path fill="#C5C5C5" d="M2 10c0 .28.38 2 2 2h3.5a5 5 0 0 0 1 1H4c-2 0-3-1.47-3-3 0-1.48 1.02-3 3-3 0-2.08 1.58-4 4-4 .579 0 1.075.067 1.5.18v1.083C9.11 4.103 8.619 4 8 4 6.36 4 5 5.61 5 7v1H4c-1.65 0-2 1.83-2 2Z"/>
<path fill="#1A79FF" stroke="#C5C5C5" stroke-linejoin="bevel" stroke-width=".5" d="M11.5 5.75a3.25 3.25 0 1 1 0 6.5 3.25 3.25 0 0 1 0-6.5Z"/>
</svg>

+ 5
- 0
images/dark/icon-repo-cloud-green.svg Wyświetl plik

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#C5C5C5" d="M12 5.536a3.5 3.5 0 0 1 0 6.928V15h-1v-2.536a3.5 3.5 0 0 1 0-6.928V0h1v5.536ZM14 9a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"/>
<path fill="#C5C5C5" d="M2 10c0 .28.38 2 2 2h3.5a5 5 0 0 0 1 1H4c-2 0-3-1.47-3-3 0-1.48 1.02-3 3-3 0-2.08 1.58-4 4-4 .579 0 1.075.067 1.5.18v1.083C9.11 4.103 8.619 4 8 4 6.36 4 5 5.61 5 7v1H4c-1.65 0-2 1.83-2 2Z"/>
<path fill="#0F5" stroke="#C5C5C5" stroke-linejoin="bevel" stroke-width=".5" d="M11.5 5.75a3.25 3.25 0 1 1 0 6.5 3.25 3.25 0 0 1 0-6.5Z"/>
</svg>

+ 5
- 0
images/dark/icon-repo-cloud-red.svg Wyświetl plik

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#C5C5C5" d="M12 5.536a3.5 3.5 0 0 1 0 6.928V15h-1v-2.536a3.5 3.5 0 0 1 0-6.928V0h1v5.536ZM14 9a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"/>
<path fill="#C5C5C5" d="M2 10c0 .28.38 2 2 2h3.5a5 5 0 0 0 1 1H4c-2 0-3-1.47-3-3 0-1.48 1.02-3 3-3 0-2.08 1.58-4 4-4 .579 0 1.075.067 1.5.18v1.083C9.11 4.103 8.619 4 8 4 6.36 4 5 5.61 5 7v1H4c-1.65 0-2 1.83-2 2Z"/>
<path fill="#F05" stroke="#C5C5C5" stroke-linejoin="bevel" stroke-width=".5" d="M11.5 5.75a3.25 3.25 0 1 1 0 6.5 3.25 3.25 0 0 1 0-6.5Z"/>
</svg>

+ 5
- 0
images/dark/icon-repo-cloud-yellow.svg Wyświetl plik

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#C5C5C5" d="M12 5.536a3.5 3.5 0 0 1 0 6.928V15h-1v-2.536a3.5 3.5 0 0 1 0-6.928V0h1v5.536ZM14 9a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"/>
<path fill="#C5C5C5" d="M2 10c0 .28.38 2 2 2h3.5a5 5 0 0 0 1 1H4c-2 0-3-1.47-3-3 0-1.48 1.02-3 3-3 0-2.08 1.58-4 4-4 .579 0 1.075.067 1.5.18v1.083C9.11 4.103 8.619 4 8 4 6.36 4 5 5.61 5 7v1H4c-1.65 0-2 1.83-2 2Z"/>
<path fill="#FF5" stroke="#C5C5C5" stroke-linejoin="bevel" stroke-width=".5" d="M11.5 5.75a3.25 3.25 0 1 1 0 6.5 3.25 3.25 0 0 1 0-6.5Z"/>
</svg>

+ 5
- 0
images/dark/icon-repo-cloud.svg Wyświetl plik

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#C5C5C5" d="M12 5.536a3.5 3.5 0 0 1 0 6.928V15h-1v-2.536a3.5 3.5 0 0 1 0-6.928V0h1v5.536ZM14 9a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"/>
<path fill="#C5C5C5" d="M2 10c0 .28.38 2 2 2h3.5a5 5 0 0 0 1 1H4c-2 0-3-1.47-3-3 0-1.48 1.02-3 3-3 0-2.08 1.58-4 4-4 .579 0 1.075.067 1.5.18v1.083C9.11 4.103 8.619 4 8 4 6.36 4 5 5.61 5 7v1H4c-1.65 0-2 1.83-2 2Z"/>
<path fill="none" stroke="#C5C5C5" stroke-linejoin="bevel" stroke-width=".5" d="M11.5 5.75a3.25 3.25 0 1 1 0 6.5 3.25 3.25 0 0 1 0-6.5Z"/>
</svg>

+ 4
- 0
images/dark/icon-repo-solid-blue.svg Wyświetl plik

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#C5C5C5" d="M13.725 7.025a3.5 3.5 0 0 0-1.975-.99V.5h-1v5.536a3.5 3.5 0 0 0 0 6.928V15.5h1v-2.536a3.5 3.5 0 0 0 1.975-5.939Zm-.707.707a2.5 2.5 0 1 1-3.536 3.536 2.5 2.5 0 0 1 3.536-3.536ZM7.123 4.67l.408-.18H8.8V2.501H7.707L6.85 1.65l-.344-.15H1.5l-.488.5v3.504H6.3l.822-.833ZM14.996 3 15 4.49h-1.2V2.501h.7l.496.499ZM6.434 6.493l.372-.165a5.5 5.5 0 0 0 .719 7.172H1.5L1 13V6.493h5.434Z"/>
<circle cx="11.25" cy="9.5" r="3" fill="#1A79FF"/>
</svg>

+ 4
- 0
images/dark/icon-repo-solid-green.svg Wyświetl plik

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#C5C5C5" d="M13.725 7.025a3.5 3.5 0 0 0-1.975-.99V.5h-1v5.536a3.5 3.5 0 0 0 0 6.928V15.5h1v-2.536a3.5 3.5 0 0 0 1.975-5.939Zm-.707.707a2.5 2.5 0 1 1-3.536 3.536 2.5 2.5 0 0 1 3.536-3.536ZM7.123 4.67l.408-.18H8.8V2.501H7.707L6.85 1.65l-.344-.15H1.5l-.488.5v3.504H6.3l.822-.833ZM14.996 3 15 4.49h-1.2V2.501h.7l.496.499ZM6.434 6.493l.372-.165a5.5 5.5 0 0 0 .719 7.172H1.5L1 13V6.493h5.434Z"/>
<circle cx="11.25" cy="9.5" r="3" fill="#0F5"/>
</svg>

+ 4
- 0
images/dark/icon-repo-solid-red.svg Wyświetl plik

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#C5C5C5" d="M13.725 7.025a3.5 3.5 0 0 0-1.975-.99V.5h-1v5.536a3.5 3.5 0 0 0 0 6.928V15.5h1v-2.536a3.5 3.5 0 0 0 1.975-5.939Zm-.707.707a2.5 2.5 0 1 1-3.536 3.536 2.5 2.5 0 0 1 3.536-3.536ZM7.123 4.67l.408-.18H8.8V2.501H7.707L6.85 1.65l-.344-.15H1.5l-.488.5v3.504H6.3l.822-.833ZM14.996 3 15 4.49h-1.2V2.501h.7l.496.499ZM6.434 6.493l.372-.165a5.5 5.5 0 0 0 .719 7.172H1.5L1 13V6.493h5.434Z"/>
<circle cx="11.25" cy="9.5" r="3" fill="#F05"/>
</svg>

+ 4
- 0
images/dark/icon-repo-solid-yellow.svg Wyświetl plik

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#C5C5C5" d="M13.725 7.025a3.5 3.5 0 0 0-1.975-.99V.5h-1v5.536a3.5 3.5 0 0 0 0 6.928V15.5h1v-2.536a3.5 3.5 0 0 0 1.975-5.939Zm-.707.707a2.5 2.5 0 1 1-3.536 3.536 2.5 2.5 0 0 1 3.536-3.536ZM7.123 4.67l.408-.18H8.8V2.501H7.707L6.85 1.65l-.344-.15H1.5l-.488.5v3.504H6.3l.822-.833ZM14.996 3 15 4.49h-1.2V2.501h.7l.496.499ZM6.434 6.493l.372-.165a5.5 5.5 0 0 0 .719 7.172H1.5L1 13V6.493h5.434Z"/>
<circle cx="11.25" cy="9.5" r="3" fill="#FF5"/>
</svg>

+ 4
- 0
images/dark/icon-repo-solid.svg Wyświetl plik

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#C5C5C5" d="M13.725 7.025a3.5 3.5 0 0 0-1.975-.99V.5h-1v5.536a3.5 3.5 0 0 0 0 6.928V15.5h1v-2.536a3.5 3.5 0 0 0 1.975-5.939Zm-.707.707a2.5 2.5 0 1 1-3.536 3.536 2.5 2.5 0 0 1 3.536-3.536ZM7.123 4.67l.408-.18H8.8V2.501H7.707L6.85 1.65l-.344-.15H1.5l-.488.5v3.504H6.3l.822-.833ZM14.996 3 15 4.49h-1.2V2.501h.7l.496.499ZM6.434 6.493l.372-.165a5.5 5.5 0 0 0 .719 7.172H1.5L1 13V6.493h5.434Z"/>
<circle cx="11.25" cy="9.5" r="3" fill="none"/>
</svg>

+ 5
- 0
images/light/icon-repo-cloud-blue.svg Wyświetl plik

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#424242" d="M12 5.536a3.5 3.5 0 0 1 0 6.928V15h-1v-2.536a3.5 3.5 0 0 1 0-6.928V0h1v5.536ZM14 9a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"/>
<path fill="#424242" d="M2 10c0 .28.38 2 2 2h3.5a5 5 0 0 0 1 1H4c-2 0-3-1.47-3-3 0-1.48 1.02-3 3-3 0-2.08 1.58-4 4-4 .579 0 1.075.067 1.5.18v1.083C9.11 4.103 8.619 4 8 4 6.36 4 5 5.61 5 7v1H4c-1.65 0-2 1.83-2 2Z"/>
<path fill="#1A79FF" stroke="#424242" stroke-linejoin="bevel" stroke-width=".5" d="M11.5 5.75a3.25 3.25 0 1 1 0 6.5 3.25 3.25 0 0 1 0-6.5Z"/>
</svg>

+ 5
- 0
images/light/icon-repo-cloud-green.svg Wyświetl plik

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#424242" d="M12 5.536a3.5 3.5 0 0 1 0 6.928V15h-1v-2.536a3.5 3.5 0 0 1 0-6.928V0h1v5.536ZM14 9a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"/>
<path fill="#0F5" d="M2 10c0 .28.38 2 2 2h3.5a5 5 0 0 0 1 1H4c-2 0-3-1.47-3-3 0-1.48 1.02-3 3-3 0-2.08 1.58-4 4-4 .579 0 1.075.067 1.5.18v1.083C9.11 4.103 8.619 4 8 4 6.36 4 5 5.61 5 7v1H4c-1.65 0-2 1.83-2 2Z"/>
<path fill="#0F5" stroke="#424242" stroke-linejoin="bevel" stroke-width=".5" d="M11.5 5.75a3.25 3.25 0 1 1 0 6.5 3.25 3.25 0 0 1 0-6.5Z"/>
</svg>

+ 5
- 0
images/light/icon-repo-cloud-red.svg Wyświetl plik

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#424242" d="M12 5.536a3.5 3.5 0 0 1 0 6.928V15h-1v-2.536a3.5 3.5 0 0 1 0-6.928V0h1v5.536ZM14 9a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"/>
<path fill="#424242" d="M2 10c0 .28.38 2 2 2h3.5a5 5 0 0 0 1 1H4c-2 0-3-1.47-3-3 0-1.48 1.02-3 3-3 0-2.08 1.58-4 4-4 .579 0 1.075.067 1.5.18v1.083C9.11 4.103 8.619 4 8 4 6.36 4 5 5.61 5 7v1H4c-1.65 0-2 1.83-2 2Z"/>
<path fill="#F05" stroke="#424242" stroke-linejoin="bevel" stroke-width=".5" d="M11.5 5.75a3.25 3.25 0 1 1 0 6.5 3.25 3.25 0 0 1 0-6.5Z"/>
</svg>

+ 5
- 0
images/light/icon-repo-cloud-yellow.svg Wyświetl plik

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#424242" d="M12 5.536a3.5 3.5 0 0 1 0 6.928V15h-1v-2.536a3.5 3.5 0 0 1 0-6.928V0h1v5.536ZM14 9a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"/>
<path fill="#424242" d="M2 10c0 .28.38 2 2 2h3.5a5 5 0 0 0 1 1H4c-2 0-3-1.47-3-3 0-1.48 1.02-3 3-3 0-2.08 1.58-4 4-4 .579 0 1.075.067 1.5.18v1.083C9.11 4.103 8.619 4 8 4 6.36 4 5 5.61 5 7v1H4c-1.65 0-2 1.83-2 2Z"/>
<path fill="#FF5" stroke="#424242" stroke-linejoin="bevel" stroke-width=".5" d="M11.5 5.75a3.25 3.25 0 1 1 0 6.5 3.25 3.25 0 0 1 0-6.5Z"/>
</svg>

+ 5
- 0
images/light/icon-repo-cloud.svg Wyświetl plik

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#424242" d="M12 5.536a3.5 3.5 0 0 1 0 6.928V15h-1v-2.536a3.5 3.5 0 0 1 0-6.928V0h1v5.536ZM14 9a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"/>
<path fill="#424242" d="M2 10c0 .28.38 2 2 2h3.5a5 5 0 0 0 1 1H4c-2 0-3-1.47-3-3 0-1.48 1.02-3 3-3 0-2.08 1.58-4 4-4 .579 0 1.075.067 1.5.18v1.083C9.11 4.103 8.619 4 8 4 6.36 4 5 5.61 5 7v1H4c-1.65 0-2 1.83-2 2Z"/>
<path fill="none" stroke="#424242" stroke-linejoin="bevel" stroke-width=".5" d="M11.5 5.75a3.25 3.25 0 1 1 0 6.5 3.25 3.25 0 0 1 0-6.5Z"/>
</svg>

+ 4
- 0
images/light/icon-repo-solid-blue.svg Wyświetl plik

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#424242" d="M13.725 7.025a3.5 3.5 0 0 0-1.975-.99V.5h-1v5.536a3.5 3.5 0 0 0 0 6.928V15.5h1v-2.536a3.5 3.5 0 0 0 1.975-5.939Zm-.707.707a2.5 2.5 0 1 1-3.536 3.536 2.5 2.5 0 0 1 3.536-3.536ZM7.123 4.67l.408-.18H8.8V2.501H7.707L6.85 1.65l-.344-.15H1.5l-.488.5v3.504H6.3l.822-.833ZM14.996 3 15 4.49h-1.2V2.501h.7l.496.499ZM6.434 6.493l.372-.165a5.5 5.5 0 0 0 .719 7.172H1.5L1 13V6.493h5.434Z"/>
<circle cx="11.25" cy="9.5" r="4" fill="#1A79FF"/>
</svg>

+ 4
- 0
images/light/icon-repo-solid-green.svg Wyświetl plik

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#424242" d="M13.725 7.025a3.5 3.5 0 0 0-1.975-.99V.5h-1v5.536a3.5 3.5 0 0 0 0 6.928V15.5h1v-2.536a3.5 3.5 0 0 0 1.975-5.939Zm-.707.707a2.5 2.5 0 1 1-3.536 3.536 2.5 2.5 0 0 1 3.536-3.536ZM7.123 4.67l.408-.18H8.8V2.501H7.707L6.85 1.65l-.344-.15H1.5l-.488.5v3.504H6.3l.822-.833ZM14.996 3 15 4.49h-1.2V2.501h.7l.496.499ZM6.434 6.493l.372-.165a5.5 5.5 0 0 0 .719 7.172H1.5L1 13V6.493h5.434Z"/>
<circle cx="11.25" cy="9.5" r="3" fill="#0F5"/>
</svg>

+ 4
- 0
images/light/icon-repo-solid-red.svg Wyświetl plik

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#424242" d="M13.725 7.025a3.5 3.5 0 0 0-1.975-.99V.5h-1v5.536a3.5 3.5 0 0 0 0 6.928V15.5h1v-2.536a3.5 3.5 0 0 0 1.975-5.939Zm-.707.707a2.5 2.5 0 1 1-3.536 3.536 2.5 2.5 0 0 1 3.536-3.536ZM7.123 4.67l.408-.18H8.8V2.501H7.707L6.85 1.65l-.344-.15H1.5l-.488.5v3.504H6.3l.822-.833ZM14.996 3 15 4.49h-1.2V2.501h.7l.496.499ZM6.434 6.493l.372-.165a5.5 5.5 0 0 0 .719 7.172H1.5L1 13V6.493h5.434Z"/>
<circle cx="11.25" cy="9.5" r="3" fill="#F05"/>
</svg>

+ 4
- 0
images/light/icon-repo-solid-yellow.svg Wyświetl plik

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#424242" d="M13.725 7.025a3.5 3.5 0 0 0-1.975-.99V.5h-1v5.536a3.5 3.5 0 0 0 0 6.928V15.5h1v-2.536a3.5 3.5 0 0 0 1.975-5.939Zm-.707.707a2.5 2.5 0 1 1-3.536 3.536 2.5 2.5 0 0 1 3.536-3.536ZM7.123 4.67l.408-.18H8.8V2.501H7.707L6.85 1.65l-.344-.15H1.5l-.488.5v3.504H6.3l.822-.833ZM14.996 3 15 4.49h-1.2V2.501h.7l.496.499ZM6.434 6.493l.372-.165a5.5 5.5 0 0 0 .719 7.172H1.5L1 13V6.493h5.434Z"/>
<circle cx="11.25" cy="9.5" r="3" fill="#FF5"/>
</svg>

+ 4
- 0
images/light/icon-repo-solid.svg Wyświetl plik

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
<path fill="#424242" d="M13.725 7.025a3.5 3.5 0 0 0-1.975-.99V.5h-1v5.536a3.5 3.5 0 0 0 0 6.928V15.5h1v-2.536a3.5 3.5 0 0 0 1.975-5.939Zm-.707.707a2.5 2.5 0 1 1-3.536 3.536 2.5 2.5 0 0 1 3.536-3.536ZM7.123 4.67l.408-.18H8.8V2.501H7.707L6.85 1.65l-.344-.15H1.5l-.488.5v3.504H6.3l.822-.833ZM14.996 3 15 4.49h-1.2V2.501h.7l.496.499ZM6.434 6.493l.372-.165a5.5 5.5 0 0 0 .719 7.172H1.5L1 13V6.493h5.434Z"/>
<circle cx="11.25" cy="9.5" r="3" fill="none"/>
</svg>

+ 22
- 10
src/views/nodes/repositoryNode.ts Wyświetl plik

@ -207,28 +207,36 @@ export class RepositoryNode extends SubscribeableViewNode
lastFetched
? `${pad(GlyphChars.Dash, 2, 2)}Last fetched ${Repository.formatLastFetched(lastFetched, false)}`
: ''
}${this.repo.formattedName ? `\n${this.uri.repoPath}` : ''}`;
let iconSuffix = '';
}${this.repo.formattedName ? `\\\n${this.uri.repoPath}` : ''}`;
let workingStatus = '';
const { workspace } = this.context;
let contextValue: string = ContextValues.Repository;
if (this.repo.starred) {
contextValue += '+starred';
}
if (this.context.workspace != null) {
if (workspace != null) {
contextValue += '+workspace';
if (this.context.workspace.type === WorkspaceType.Cloud) {
if (workspace.type === WorkspaceType.Cloud) {
contextValue += '+cloud';
} else if (this.context.workspace.type === WorkspaceType.Local) {
} else if (workspace.type === WorkspaceType.Local) {
contextValue += '+local';
}
}
let iconSuffix;
// TODO@axosoft-ramint Temporary workaround, remove when our git commands work on closed repos.
if (this.repo.closed) {
contextValue += '+closed';
iconSuffix = '';
} else {
iconSuffix = '-solid';
}
if (this.repo.virtual) {
contextValue += '+virtual';
iconSuffix = '-cloud';
}
const status = await this._status;
@ -259,7 +267,7 @@ export class RepositoryNode extends SubscribeableViewNode
providerName = remote?.provider?.name;
}
iconSuffix = workingStatus ? '-blue' : '';
iconSuffix += workingStatus ? '-blue' : '';
if (status.upstream != null) {
tooltip += ` is ${status.getUpstreamStatus({
empty: `up to date with $(git-branch) ${status.upstream}${
@ -273,10 +281,10 @@ export class RepositoryNode extends SubscribeableViewNode
if (status.state.behind) {
contextValue += '+behind';
iconSuffix = '-red';
iconSuffix += '-red';
}
if (status.state.ahead) {
iconSuffix = status.state.behind ? '-yellow' : '-green';
iconSuffix += status.state.behind ? '-yellow' : '-green';
contextValue += '+ahead';
}
}
@ -290,9 +298,13 @@ export class RepositoryNode extends SubscribeableViewNode
}
}
if (workspace != null) {
tooltip += `\n\nRepository is ${this.repo.closed ? 'not ' : ''}open in the current window`;
}
const item = new TreeItem(
label,
this.context.workspace != null ? TreeItemCollapsibleState.Collapsed : TreeItemCollapsibleState.Expanded,
workspace != null ? TreeItemCollapsibleState.Collapsed : TreeItemCollapsibleState.Expanded,
);
item.id = this.id;
item.contextValue = contextValue;
@ -304,7 +316,7 @@ export class RepositoryNode extends SubscribeableViewNode
light: this.view.container.context.asAbsolutePath(`images/light/icon-repo${iconSuffix}.svg`),
};
if (this.context.workspace != null && !this.repo.closed) {
if (workspace != null && !this.repo.closed) {
item.resourceUri = Uri.parse(`gitlens-view://workspaces/repository/open`);
}

+ 7
- 3
src/views/nodes/workspaceMissingRepositoryNode.ts Wyświetl plik

@ -1,4 +1,5 @@
import { ThemeIcon, TreeItem, TreeItemCollapsibleState, Uri } from 'vscode';
import { MarkdownString, ThemeColor, ThemeIcon, TreeItem, TreeItemCollapsibleState, Uri } from 'vscode';
import type { Colors } from '../../constants';
import { unknownGitUri } from '../../git/gitUri';
import type {
CloudWorkspace,
@ -46,9 +47,12 @@ export class WorkspaceMissingRepositoryNode extends ViewNode {
const item = new TreeItem(this.name, TreeItemCollapsibleState.None);
item.id = this.id;
item.description = 'Unable to find repo, please locate';
item.tooltip = `${this.name} (missing)`;
item.tooltip = new MarkdownString(`${this.name}\n\nRepository could not be found`);
item.contextValue = ContextValues.WorkspaceMissingRepository;
item.iconPath = new ThemeIcon('question');
item.iconPath = new ThemeIcon(
'question',
new ThemeColor('gitlens.decorations.workspaceRepoMissingForegroundColor' satisfies Colors),
);
item.resourceUri = Uri.parse(`gitlens-view://workspaces/repository/missing`);
return item;
}

+ 6
- 4
src/views/viewDecorationProvider.ts Wyświetl plik

@ -47,14 +47,16 @@ export class ViewFileDecorationProvider implements FileDecorationProvider, Dispo
if (type === 'repository') {
if (status === 'open') {
return {
badge: 'O',
badge: '',
color: new ThemeColor('gitlens.decorations.workspaceRepoOpenForegroundColor' satisfies Colors),
tooltip: 'Open',
tooltip: '',
};
} else if (status === 'missing') {
}
if (status === 'missing') {
return {
color: new ThemeColor('gitlens.decorations.workspaceRepoMissingForegroundColor' satisfies Colors),
tooltip: 'Missing',
tooltip: '',
};
}
}

Ładowanie…
Anuluj
Zapisz