This commit is contained in:
Jonathan Carter 2020-03-19 10:52:49 -07:00
Родитель d7cd6ad282
Коммит 779de5291d
3 изменённых файлов: 39 добавлений и 8 удалений

Просмотреть файл

@ -1,3 +1,8 @@
## v0.0.12 (03/16/2020)
- Added a new `Edit Step` command to the `CodeTour` tree, which allows you to start editing a tour at a specific step
- Updated the `CodeTour` tree to only show the move step up/down commands while you're actively recording that step
## v0.0.11 (03/16/2020)
- Updated the `CodeTour` tree to auto-select tree node that is associated with the currently viewing tour step

Просмотреть файл

@ -65,6 +65,10 @@
"category": "CodeTour",
"icon": "$(edit)"
},
{
"command": "codetour.editTourAtStep",
"title": "Edit Step"
},
{
"command": "codetour.editTourStep",
"title": "Edit Step"
@ -164,6 +168,10 @@
"command": "codetour.deleteTourStep",
"when": "false"
},
{
"command": "codetour.editTourAtStep",
"when": "false"
},
{
"command": "codetour.editTourStep",
"when": "false"
@ -299,28 +307,33 @@
},
{
"command": "codetour.moveTourStepBack",
"when": "viewItem =~ /^codetour.tourStep.hasPrevious/",
"when": "viewItem =~ /^codetour.tourStep.hasPrevious/ && codetour:recording",
"group": "inline@1"
},
{
"command": "codetour.moveTourStepForward",
"when": "viewItem =~ /codetour.tourStep.*(.hasNext)/",
"when": "viewItem =~ /codetour.tourStep.*(.hasNext)/ && codetour:recording",
"group": "inline@2"
},
{
"command": "codetour.moveTourStepBack",
"when": "viewItem =~ /^codetour.tourStep.hasPrevious/",
"when": "viewItem =~ /^codetour.tourStep.hasPrevious/ && codetour:recording",
"group": "basic@1"
},
{
"command": "codetour.moveTourStepForward",
"when": "viewItem =~ /codetour.tourStep.*(.hasNext)/",
"when": "viewItem =~ /codetour.tourStep.*(.hasNext)/ && codetour:recording",
"group": "basic@2"
},
{
"command": "codetour.editTourAtStep",
"when": "viewItem =~ /^codetour.tourStep/ && !codetour:recording",
"group": "manage@1"
},
{
"command": "codetour.deleteTourStep",
"when": "viewItem =~ /^codetour.tourStep/",
"group": "manage@1"
"group": "manage@2"
}
]
},
@ -332,6 +345,12 @@
}
]
},
"viewsWelcome": [
{
"view": "codetour.tours",
"contents": "This workspace doesn't have any code tours yet\n[Record a new tour](command:codetour.recordTour)"
}
],
"jsonValidation": [
{
"fileMatch": "(code)?tour.json",

Просмотреть файл

@ -273,6 +273,13 @@ export function registerCommands() {
}
);
vscode.commands.registerCommand(
`${EXTENSION_NAME}.editTourAtStep`,
async (node: CodeTourStepNode) => {
startCodeTour(node.tour, node.stepNumber, undefined, true);
}
);
vscode.commands.registerCommand(
`${EXTENSION_NAME}.editTour`,
async (node: CodeTourNode | vscode.CommentThread) => {