Skip to content

Commit e87ee05

Browse files
Suppressing prompt for swings
1 parent 36ddbd4 commit e87ee05

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
- Automatically set the "pattern" record mode when you create a new tour, and select `None` for the git ref
55
- Added support for opening a `*.tour` file in the VS Code notebook editor (Insiders only)
66

7+
## v0.0.58 (07/08/2021)
8+
9+
- The "Tours available!" prompt is now suppressed when opening a [CodeSwing](https://aka.ms/codeswing) workspace
10+
711
## v0.0.57 (07/08/2021)
812

913
- Added a new `CodeTour: Custom Tour Directory` setting, that allows a project to specify a custom directory for their tours to be stored in

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "CodeTour",
44
"description": "VS Code extension that allows you to record and playback guided tours of codebases, directly within the editor",
55
"publisher": "vsls-contrib",
6-
"version": "0.0.57",
6+
"version": "0.0.58",
77
"author": {
88
"name": "Microsoft Corporation"
99
},

src/store/actions.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ export async function moveCurrentCodeTourForward() {
145145
_onDidStartTour.fire([store.activeTour!.tour, store.activeTour!.step]);
146146
}
147147

148+
async function isCodeSwingWorkspace(uri: Uri) {
149+
const files = await workspace.findFiles("codeswing.json");
150+
return files && files.length > 0;
151+
}
152+
148153
function isLiveShareWorkspace(uri: Uri) {
149154
return (
150155
uri.path.endsWith("Visual Studio Live Share.code-workspace") ||
@@ -162,7 +167,10 @@ export async function promptForTour(
162167
tours.length > 0 &&
163168
!globalState.get(key) &&
164169
!isLiveShareWorkspace(workspaceRoot) &&
165-
workspace.getConfiguration("codetour").get("promptForWorkspaceTours", true)
170+
workspace
171+
.getConfiguration(EXTENSION_NAME)
172+
.get("promptForWorkspaceTours", true) &&
173+
!isCodeSwingWorkspace(workspaceRoot)
166174
) {
167175
globalState.update(key, true);
168176

0 commit comments

Comments
 (0)