Add 'Edit at step' command
This commit is contained in:
Родитель
d7cd6ad282
Коммит
779de5291d
11
CHANGELOG.md
11
CHANGELOG.md
|
@ -1,20 +1,25 @@
|
|||
## 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
|
||||
- Text highlights can now be edited when editing a tour code
|
||||
- Added support for collapsing all nodes in the `CodeTour` tree
|
||||
- Added a prompt when trying to record a tour, using a title that is already in use by an existing tour
|
||||
|
||||
|
||||
## v0.0.10 (03/16/2020)
|
||||
|
||||
- Introduced support for step titles, which allow defining friendly names for a tour's steps in the `CodeTour` tree
|
||||
- Exposed an extension API, so that other VS Code extensions (e.g. [GistPad](https://aka.ms/gistpad)) can start and end tours that they manage
|
||||
- Added the `CodeTour: Edit Tour` command, that allows you to edit the tour you're currently playing.
|
||||
|
||||
|
||||
## v0.0.9 (03/15/2020)
|
||||
|
||||
- Added the ability to record a text selection as part of a step
|
||||
|
||||
|
||||
![Selection](https://user-images.githubusercontent.com/116461/76705627-b96cc280-669e-11ea-982a-d754c4f001aa.gif)
|
||||
|
||||
## v0.0.8 (03/14/2020)
|
||||
|
|
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) => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче