Skip to content

Commit

Permalink
Release: v1.4.0 (#1333)
Browse files Browse the repository at this point in the history
Release 1.4.0 with the notification about upcoming v2 release

---------

Co-authored-by: releasebot <noreply@github.com>
Co-authored-by: Ilia Babanov <ilia.babanov@databricks.com>
Co-authored-by: Julia Crawford (Databricks) <julia.crawford@databricks.com>
  • Loading branch information
4 people authored Aug 30, 2024
1 parent ed02e67 commit 4de94c7
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@databricks/databricks-vscode",
"version": "1.3.1",
"version": "1.4.0",
"private": true,
"workspaces": [
"packages/*"
Expand Down
6 changes: 6 additions & 0 deletions packages/databricks-vscode-types/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Release: v1.4.0

## packages/databricks-vscode-types

## 1.4.0 (2024-08-28)

# Release: v1.3.1

## packages/databricks-vscode-types
Expand Down
2 changes: 1 addition & 1 deletion packages/databricks-vscode-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@databricks/databricks-vscode-types",
"version": "1.3.1",
"version": "1.4.0",
"description": "Package with types and interfaces to develop extensions to the Databricks VSCode plugin",
"main": "index.js",
"types": "index.d.ts",
Expand Down
9 changes: 9 additions & 0 deletions packages/databricks-vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# Release: v1.4.0

## packages/databricks-vscode

## 1.4.0 (2024-08-28)

- Added a notification about the upcoming V2 release:
> **Version 2 of the extension will soon be made the default. With this update it is easier to set up your project, integrate with Databricks Asset Bundles, and run your code remotely. [Learn more](https://docs.databricks.com/dev-tools/vscode-ext/index.html).**
# Release: v1.3.1

## packages/databricks-vscode
Expand Down
2 changes: 1 addition & 1 deletion packages/databricks-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "IDE support for Databricks",
"publisher": "databricks",
"license": "LicenseRef-LICENSE",
"version": "1.3.1",
"version": "1.4.0",
"engines": {
"vscode": "^1.83.0"
},
Expand Down
15 changes: 15 additions & 0 deletions packages/databricks-vscode/src/whatsNewPopup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {StateStorage} from "./vscode-objs/StateStorage";
import path from "path";
import {exists} from "fs-extra";
import * as semver from "semver";
import {openExternal} from "./utils/urlUtils";

export async function findFileFowWhatsNew(
context: ExtensionContext,
Expand Down Expand Up @@ -33,6 +34,18 @@ export async function findFileFowWhatsNew(
return context.asAbsolutePath("CHANGELOG.md");
}

async function showV2Notification() {
const choice = await window.showInformationMessage(
"Version 2 of the extension will soon be made the default. With this update it is easier to set up your project, integrate with Databricks Asset Bundles, and run your code remotely.",
"Learn more"
);
if (choice === "Learn more") {
openExternal(
"https://docs.databricks.com/dev-tools/vscode-ext/index.html"
);
}
}

export async function showWhatsNewPopup(
context: ExtensionContext,
storage: StateStorage
Expand Down Expand Up @@ -62,6 +75,7 @@ export async function showWhatsNewPopup(

if (window.state.focused) {
commands.executeCommand("markdown.showPreview", Uri.file(markdownFile));
showV2Notification();
return;
}

Expand All @@ -70,6 +84,7 @@ export async function showWhatsNewPopup(
return;
}
commands.executeCommand("markdown.showPreview", Uri.file(markdownFile));
showV2Notification();
listener.dispose();
});
context.subscriptions.push(listener);
Expand Down

0 comments on commit 4de94c7

Please sign in to comment.