Skip to content

Commit 557de0b

Browse files
authored
Match welcome view button titles with command palette actions (#2820)
1 parent 6ee5c6c commit 557de0b

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

extension/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@
392392
"icon": "$(graph-scatter)"
393393
},
394394
{
395-
"title": "%command.showPlotsAndExperiments%",
396-
"command": "dvc.showPlotsAndExperiments",
395+
"title": "%command.showExperimentsAndPlots%",
396+
"command": "dvc.showExperimentsAndPlots",
397397
"category": "DVC"
398398
},
399399
{
@@ -787,7 +787,7 @@
787787
"when": "dvc.commands.available && dvc.project.available"
788788
},
789789
{
790-
"command": "dvc.showPlotsAndExperiments",
790+
"command": "dvc.showExperimentsAndPlots",
791791
"when": "dvc.commands.available && dvc.project.available"
792792
},
793793
{
@@ -1350,7 +1350,7 @@
13501350
"viewsWelcome": [
13511351
{
13521352
"view": "dvc.views.webviews",
1353-
"contents": "[Open experiments](command:dvc.showExperiments)\n[Open plots](command:dvc.showPlots)\n[Open both views](command:dvc.showPlotsAndExperiments)",
1353+
"contents": "[Show Experiments](command:dvc.showExperiments)\n[Show Plots](command:dvc.showPlots)\n[Show Experiments and Plots](command:dvc.showExperimentsAndPlots)",
13541354
"when": "dvc.commands.available && dvc.project.available"
13551355
},
13561356
{

extension/package.nls.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"command.showExperiments": "Show Experiments",
5555
"command.showOutput": "Show DVC Output",
5656
"command.showPlots": "Show Plots",
57-
"command.showPlotsAndExperiments": "Show Plots and Experiments",
57+
"command.showExperimentsAndPlots": "Show Experiments and Plots",
5858
"command.stopRunningExperiment": "Stop Running Experiment",
5959
"command.views.experimentsColumnsTree.selectColumns": "Select Columns to Display in the Experiments Table",
6060
"command.views.experimentsFilterByTree.removeAllFilters": "Remove All Filters From Experiments Table",

extension/src/commands/external.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export enum RegisteredCommands {
7171
PLOTS_SELECT = 'dvc.views.plotsPathsTree.selectPlots',
7272
PLOTS_REFRESH = 'dvc.views.plotsPathsTree.refreshPlots',
7373

74-
PLOTS_AND_EXPERIMENT_SHOW = 'dvc.showPlotsAndExperiments',
74+
EXPERIMENT_AND_PLOTS_SHOW = 'dvc.showExperimentsAndPlots',
7575

7676
EXTENSION_CHECK_CLI_COMPATIBLE = 'dvc.checkCLICompatible',
7777
EXTENSION_GET_STARTED = 'dvc.getStarted',

extension/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export class Extension extends Disposable implements IExtension {
239239
registerExperimentCommands(this.experiments, this.internalCommands)
240240
registerPlotsCommands(this.plots, this.internalCommands)
241241
this.internalCommands.registerExternalCommand(
242-
RegisteredCommands.PLOTS_AND_EXPERIMENT_SHOW,
242+
RegisteredCommands.EXPERIMENT_AND_PLOTS_SHOW,
243243
async (context: VsCodeContext) => {
244244
await this.experiments.showWebview(
245245
getDvcRootFromContext(context),

extension/src/telemetry/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export interface IEventNamePropertyMapping {
112112
wasStopped?: boolean
113113
}
114114

115-
[EventName.PLOTS_AND_EXPERIMENT_SHOW]: undefined
115+
[EventName.EXPERIMENT_AND_PLOTS_SHOW]: undefined
116116
[EventName.EXPERIMENT_APPLY]: undefined
117117
[EventName.EXPERIMENT_AUTO_APPLY_FILTERS]: undefined
118118
[EventName.EXPERIMENT_DISABLE_AUTO_APPLY_FILTERS]: undefined

extension/src/test/e2e/extension.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ suite('DVC Extension For Visual Studio Code', () => {
112112

113113
it('should load the plots webview with non-empty plots', async () => {
114114
const workbench = await browser.getWorkbench()
115-
await workbench.executeCommand('DVC: Show Plots')
115+
await workbench.openCommandPrompt()
116+
await browser.keys([...'DVC: Show Plots', 'ArrowDown', 'Enter'])
116117

117118
await waitForDvcToFinish()
118119

0 commit comments

Comments
 (0)