Skip to content

Commit

Permalink
Adjustments for Marketplace publication
Browse files Browse the repository at this point in the history
  • Loading branch information
ThFriedrich committed Jul 3, 2020
1 parent 6dc6537 commit 02e8674
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 17 deletions.
2 changes: 1 addition & 1 deletion dist/extension.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/extension.js.map

Large diffs are not rendered by default.

Binary file added lammps-1.3.0.vsix
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
],
"icon": "imgs/logo.png",
"description": "Keyword/Syntax highlighting extension for Molecular Dynamics Software LAMMPS",
"version": "1.3.0-beta",
"version": "1.3.0",
"publisher": "ThFriedrich",
"repository": {
"type": "git",
Expand Down
30 changes: 16 additions & 14 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,20 +112,22 @@ function check_versions(context: vscode.ExtensionContext) {
const v_stored: string | undefined = context.globalState.get('lmps_version')
if (!v_stored || v != v_stored) {
context.globalState.update('lmps_version', v)
switch (true) {
case v.includes("alpha"):
msgBox(context, `Lammps Language extension was updated to version ${v}. \n
This is a alpha release. Please check the Release Notes for instructions on downgrading to a previous release if you want or need to! Please keep an eye out for bugs and issues and report them! 🧐 🐛`)
break;
case v.includes("beta"):
msgBox(context, `Lammps Language extension was updated to version ${v}. \n
This is a beta release. Please check the Release Notes and keep an eye out for bugs! 🧐 🐛`)
break;
default:
msgBox(context, `Lammps Language extension was updated to version ${v}. \n
Please check the Release Notes for Information about this update`)
break;
}
msgBox(context, `Lammps Language extension was updated to version ${v}-beta. \n
This is a beta release. Please check the Release Notes for instructions on downgrading to a previous release if you want or need to! Please keep an eye out for bugs and issues and report them! 🧐 🐛`)
// switch (true) {
// case v.includes("alpha"):
// msgBox(context, `Lammps Language extension was updated to version ${v}. \n
// This is a alpha release. Please check the Release Notes for instructions on downgrading to a previous release if you want or need to! Please keep an eye out for bugs and issues and report them! 🧐 🐛`)
// break;
// case v.includes("beta"):
// msgBox(context, `Lammps Language extension was updated to version ${v}. \n
// This is a beta release. Please check the Release Notes and keep an eye out for bugs! 🧐 🐛`)
// break;
// default:
// msgBox(context, `Lammps Language extension was updated to version ${v}. \n
// Please check the Release Notes for Information about this update`)
// break;
// }
}
}

Expand Down

0 comments on commit 02e8674

Please sign in to comment.