This commit is contained in:
Jonathan Carter 2020-03-07 12:01:44 -08:00
Родитель 5b20a9b47f
Коммит f002df98bb
2 изменённых файлов: 67 добавлений и 0 удалений

26
.vscode/tours/statusbar.json поставляемый Normal file
Просмотреть файл

@ -0,0 +1,26 @@
{
"title": "Status Bar",
"description": "Describes how we augment the status bar",
"steps": [
{
"file": "src/extension.ts",
"line": 36,
"description": "The status bar provider is registered upon extension activiation"
},
{
"file": "src/status.ts",
"line": 35,
"description": "If the currently opened workspace has any code tours, then we register the `Start Code Tour` status bar item."
},
{
"file": "src/status.ts",
"line": 40,
"description": "Using MobX, we wait for the user to start and/or navigate a code tour."
},
{
"file": "src/status.ts",
"line": 47,
"description": "When a tour is activate and/or navigated, we update the status bar item to indicate the current step and title."
}
]
}

41
.vscode/tours/tree.json поставляемый Normal file
Просмотреть файл

@ -0,0 +1,41 @@
{
"title": "Tree View",
"description": "Describes how the Code Tours view works",
"steps": [
{
"file": "src/extension.ts",
"line": 35,
"description": "Upon extension activation, we register the tree view provider"
},
{
"file": "src/tree/index.ts",
"line": 50,
"description": "The tree is registered with the `codetour.tours` view ID, which is declared in the extension's `package.json` file."
},
{
"file": "package.json",
"line": 112,
"description": "This view registration declares that the code tours tree view should be placed within the `Explorer` activity tab."
},
{
"file": "src/tree/index.ts",
"line": 22,
"description": "Once created, the tree starts watching for changes to the store, so that it can update dyamically."
},
{
"file": "src/tree/index.ts",
"line": 39,
"description": "The tree returns a list of nodes, one for each of the main and sub tours within the store."
},
{
"file": "src/tree/nodes.ts",
"line": 12,
"description": "The nodes returned by the tree use the tour's title and description as it's display properties. Additionally, the node specifies the `codetour.startStart` command as its click-behavior."
},
{
"file": "src/commands.ts",
"line": 22,
"description": "When a node is clicked in the tree view, it will pass the target tour and simply start it."
}
]
}