Skip to content

Commit

Permalink
Release 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cschlosser authored and Christoph Schlosser committed Mar 29, 2018
1 parent 45175bb commit 482ed94
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## [0.3.1]

### Fix

- Don't create a comment while editing an existing comment. (#67)

## [0.3.0]

### Features
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "doxdocgen",
"displayName": "Doxygen Documentation Generator",
"description": "Let me generate Doxygen documentation from your source code for you.",
"version": "0.3.0",
"version": "0.3.1",
"publisher": "cschlosser",
"engines": {
"vscode": "^1.16.0"
Expand Down
17 changes: 16 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,31 @@ enum ConfigChangedNotificationOptions {
GLOBAL_STORAGE_KEY = "doxdocgen_hide_config_changed_notification",
}

enum Version {
CURRENT = "0.3.1",
PREVIOUS = "0.3.0",
KEY = "doxdocgen_version",
}

// this method is called when your extension is activated
// your extension is activated the very first time the command is executed
export function activate(context: vscode.ExtensionContext) {
const parser = new CodeParserController();

context.subscriptions.push(parser);

let change: boolean = false;

const version = context.globalState.get<string>(Version.KEY);
if (version === undefined) {
context.globalState.update(Version.KEY, Version.CURRENT);
} else if (version !== Version.CURRENT) {
change = true;
}

let notificationHideThenable: Thenable<string>;
const active = context.globalState.get<string>(ConfigChangedNotificationOptions.GLOBAL_STORAGE_KEY);
if (active === undefined || active !== "false") {
if (change && (active === undefined || active !== "false")) {
// tslint:disable-next-line:max-line-length
notificationHideThenable = vscode.window.showWarningMessage("DoxDocGen: Config keys have changed. Please check your config!", ConfigChangedNotificationOptions.CHANGED, ConfigChangedNotificationOptions.HIDE);
}
Expand Down

0 comments on commit 482ed94

Please sign in to comment.