This commit is contained in:
Jonathan Carter 2021-07-08 22:36:48 +00:00 коммит произвёл GitHub
Родитель 36ddbd4b64
Коммит e87ee05221
3 изменённых файлов: 14 добавлений и 2 удалений

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

@ -4,6 +4,10 @@
- Automatically set the "pattern" record mode when you create a new tour, and select `None` for the git ref
- Added support for opening a `*.tour` file in the VS Code notebook editor (Insiders only)
## v0.0.58 (07/08/2021)
- The "Tours available!" prompt is now suppressed when opening a [CodeSwing](https://aka.ms/codeswing) workspace
## v0.0.57 (07/08/2021)
- Added a new `CodeTour: Custom Tour Directory` setting, that allows a project to specify a custom directory for their tours to be stored in

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

@ -3,7 +3,7 @@
"displayName": "CodeTour",
"description": "VS Code extension that allows you to record and playback guided tours of codebases, directly within the editor",
"publisher": "vsls-contrib",
"version": "0.0.57",
"version": "0.0.58",
"author": {
"name": "Microsoft Corporation"
},

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

@ -145,6 +145,11 @@ export async function moveCurrentCodeTourForward() {
_onDidStartTour.fire([store.activeTour!.tour, store.activeTour!.step]);
}
async function isCodeSwingWorkspace(uri: Uri) {
const files = await workspace.findFiles("codeswing.json");
return files && files.length > 0;
}
function isLiveShareWorkspace(uri: Uri) {
return (
uri.path.endsWith("Visual Studio Live Share.code-workspace") ||
@ -162,7 +167,10 @@ export async function promptForTour(
tours.length > 0 &&
!globalState.get(key) &&
!isLiveShareWorkspace(workspaceRoot) &&
workspace.getConfiguration("codetour").get("promptForWorkspaceTours", true)
workspace
.getConfiguration(EXTENSION_NAME)
.get("promptForWorkspaceTours", true) &&
!isCodeSwingWorkspace(workspaceRoot)
) {
globalState.update(key, true);