Skip to content

Commit 3cc9dd4

Browse files
committed
Allow richer commands in get started entries
1 parent 718af04 commit 3cc9dd4

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ export class GettingStartedPage extends EditorPane {
364364
case 'selectStartEntry': {
365365
const selected = startEntries.find(e => e.id === argument);
366366
if (selected) {
367-
this.commandService.executeCommand(selected.content.command);
367+
this.runStepCommand(selected.content.command);
368368
} else {
369369
throw Error('could not find start entry with id: ' + argument);
370370
}

src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const startEntries: GettingStartedStartEntryContent = [
6262
icon: Codicon.newFile,
6363
content: {
6464
type: 'startEntry',
65-
command: 'welcome.showNewFileEntries',
65+
command: 'command:welcome.showNewFileEntries',
6666
}
6767
},
6868
// {
@@ -83,7 +83,7 @@ export const startEntries: GettingStartedStartEntryContent = [
8383
when: '!isWeb && isMac',
8484
content: {
8585
type: 'startEntry',
86-
command: 'workbench.action.files.openFileFolder',
86+
command: 'command:workbench.action.files.openFileFolder',
8787
}
8888
},
8989
{
@@ -94,7 +94,7 @@ export const startEntries: GettingStartedStartEntryContent = [
9494
when: 'isWeb || !isMac',
9595
content: {
9696
type: 'startEntry',
97-
command: 'workbench.action.files.openFile',
97+
command: 'command:workbench.action.files.openFile',
9898
}
9999
},
100100
{
@@ -105,7 +105,7 @@ export const startEntries: GettingStartedStartEntryContent = [
105105
when: '!isWeb && !isMac',
106106
content: {
107107
type: 'startEntry',
108-
command: 'workbench.action.files.openFolder',
108+
command: 'command:workbench.action.files.openFolder',
109109
}
110110
},
111111
{
@@ -116,7 +116,7 @@ export const startEntries: GettingStartedStartEntryContent = [
116116
when: 'isWeb && workbenchState == \'workspace\'',
117117
content: {
118118
type: 'startEntry',
119-
command: 'workbench.action.addRootFolder',
119+
command: 'command:workbench.action.addRootFolder',
120120
}
121121
},
122122
{
@@ -127,7 +127,7 @@ export const startEntries: GettingStartedStartEntryContent = [
127127
icon: Codicon.sourceControl,
128128
content: {
129129
type: 'startEntry',
130-
command: 'git.clone',
130+
command: 'command:git.clone',
131131
}
132132
},
133133
{
@@ -138,7 +138,7 @@ export const startEntries: GettingStartedStartEntryContent = [
138138
icon: Codicon.sourceControl,
139139
content: {
140140
type: 'startEntry',
141-
command: 'remoteHub.openRepository',
141+
command: 'command:remoteHub.openRepository',
142142
}
143143
},
144144
{
@@ -149,7 +149,7 @@ export const startEntries: GettingStartedStartEntryContent = [
149149
when: 'allWalkthroughsHidden',
150150
content: {
151151
type: 'startEntry',
152-
command: 'welcome.showAllWalkthroughs',
152+
command: 'command:welcome.showAllWalkthroughs',
153153
}
154154
},
155155
{

0 commit comments

Comments
 (0)