Suppressing prompt for swings
This commit is contained in:
Родитель
36ddbd4b64
Коммит
e87ee05221
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче