core icon indicating copy to clipboard operation
core copied to clipboard

feat: toolbar dropdown-button contribute

Open hacke2 opened this issue 3 years ago • 1 comments

Types

  • [x] 🎉 New Features

Background or solution

resolve #1740

"kaitianContributes": {
    "toolbar": {
      "actions": [
        {
          "type": "dropdownButton",
          "id": "common-start",
          "command": "common-start.select",
          "options": [
            {
              "label": "运行",
              "value": "run"
            },
            {
              "label": "调试",
              "value": "debug"
            }
          ]
        }
      ]
    }
  },

image

Changelog

Add DropdownButton Component Add DropdownButton Toolbar contribute

hacke2 avatar Oct 09 '22 03:10 hacke2

Codecov Report

Base: 57.70% // Head: 57.71% // Increases project coverage by +0.01% :tada:

Coverage data is based on head (2fad733) compared to base (5511c0c). Patch coverage: 51.38% of modified lines in pull request are covered.

:exclamation: Current head 2fad733 differs from pull request most recent head d81150a. Consider uploading reports for the commit d81150a to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1753      +/-   ##
==========================================
+ Coverage   57.70%   57.71%   +0.01%     
==========================================
  Files        1278     1278              
  Lines       79376    79438      +62     
  Branches    16623    16636      +13     
==========================================
+ Hits        45802    45846      +44     
- Misses      30547    30563      +16     
- Partials     3027     3029       +2     
Flag Coverage Δ
jsdom 52.56% <51.38%> (+0.01%) :arrow_up:
node 15.78% <2.77%> (-0.01%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/core-browser/src/toolbar/types.ts 100.00% <ø> (ø)
.../extension/src/browser/sumi/contributes/toolbar.ts 30.00% <0.00%> (-7.50%) :arrow_down:
.../extension/src/browser/sumi/main.thread.toolbar.ts 9.20% <0.00%> (-1.37%) :arrow_down:
.../extension/src/hosted/api/sumi/ext.host.toolbar.ts 85.60% <89.74%> (+0.81%) :arrow_up:
packages/components/src/index.ts 100.00% <100.00%> (ø)
...kages/core-browser/src/toolbar/components/index.ts 100.00% <100.00%> (ø)
...kages/theme/src/browser/workbench.theme.service.ts 71.34% <0.00%> (+0.58%) :arrow_up:
...erences/src/browser/preference-settings.service.ts 75.62% <0.00%> (+0.62%) :arrow_up:
packages/monaco/src/browser/schema-registry.ts 71.11% <0.00%> (+2.22%) :arrow_up:
packages/core-common/src/node/port.ts 47.76% <0.00%> (+2.98%) :arrow_up:
... and 1 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar Oct 09 '22 04:10 codecov[bot]

此问题已被自动标记为已过时,如果没有进一步的活动,它将被关闭。谢谢您的贡献。 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 20 '22 03:12 stale[bot]