diff --git a/images/connect.png b/images/connect.png new file mode 100644 index 0000000..da3c180 Binary files /dev/null and b/images/connect.png differ diff --git a/images/connections.png b/images/connections.png new file mode 100644 index 0000000..db343d4 Binary files /dev/null and b/images/connections.png differ diff --git a/images/splash.png b/images/splash.png new file mode 100644 index 0000000..db9e0fc Binary files /dev/null and b/images/splash.png differ diff --git a/package.json b/package.json index 7b6da41..012e2a9 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "PowerShell Universal", "description": "Visual Studio Code tools for PowerShell Universal", "publisher": "ironmansoftware", - "version": "2.8.2", + "version": "2.10.0", "engines": { "vscode": "^1.46.0" }, @@ -503,7 +503,40 @@ "group": "inline" } ] - } + }, + "walkthroughs": [ + { + "id": "universal.welcome", + "title": "Get Started with PowerShell Universal", + "description": "Install and configure PowerShell Universal", + "steps": [ + { + "id": "universal.welcome.install", + "title": "Install PowerShell Universal", + "description": "Download and install the PowerShell Universal server to get started.", + "media": { + "markdown": "walkthroughs/getting-started/1-install.md" + } + }, + { + "id": "universal.welcome.login", + "title": "Login to PowerShell Universal", + "description": "Login to your PowerShell Universal instance.", + "media": { + "markdown": "walkthroughs/getting-started/2-login.md" + } + }, + { + "id": "universal.welcome.connect", + "title": "Connect VS Code to PowerShell Universal", + "description": "Connect the VS Code extension to your PowerShell Universal server.", + "media": { + "markdown": "walkthroughs/getting-started/3-connect.md" + } + } + ] + } + ] }, "scripts": { "vscode:prepublish": "npm run compile", diff --git a/src/extension.ts b/src/extension.ts index 72eabc8..e6f5dca 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -42,6 +42,8 @@ export async function activate(context: vscode.ExtensionContext) { let settings = load(); if (settings.appToken === "" && settings.connections.length === 0) { + vscode.commands.executeCommand('workbench.action.openWalkthrough', 'universal.welcome'); + vscode.window.showInformationMessage("You need to configure the PowerShell Universal extension. If you haven't installed PowerShell Universal, you should download it. If you have PowerShell Universal running, you can connect.", "Download", "Settings").then(result => { if (result === "Download") { vscode.env.openExternal(vscode.Uri.parse("https://ironmansoftware.com/downloads")); diff --git a/walkthroughs/getting-started/1-install.md b/walkthroughs/getting-started/1-install.md new file mode 100644 index 0000000..843214e --- /dev/null +++ b/walkthroughs/getting-started/1-install.md @@ -0,0 +1,10 @@ +## Install PowerShell Universal + +
+
+
+
+