Add 'Edit at step' command
This commit is contained in:
Родитель
d7cd6ad282
Коммит
779de5291d
|
@ -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
|
||||
|
|
29
package.json
29
package.json
|
@ -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) => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче