Skip to content

Commit

Permalink
v0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
raptazure committed Feb 13, 2020
1 parent ae243b0 commit cbaa1c1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,10 @@
- Content of the status bar cannot be overwritten now.
- Auto close: Ask multiple questions. We will close previous panels for you.

### 0.1.3

- Fix bug: `Daily Crad` status bar cannot be influenced by function `Ask a Question` now.
- When `Daily Card` status bar is already there and function `Draw a Card` is called again, show the name of previous card instead of drawing a new card.

**Enjoy!**

10 changes: 7 additions & 3 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
## Change Log

### 0.1.0: 05 Feb 2020
### 0.1.0
- Initial release
- Status bar and input box support
- Choices: `Ask a Question` and `Draw a Card`

### 0.1.2: 13 Feb 2020
### 0.1.2
- Content of the status bar cannot be overwritten now.
- Auto close: Ask multiple questions. We will close previous panels for you.
- Auto close: Ask multiple questions. We will close previous panels for you.

### 0.1.3
- Fix bug: `Daily Crad` status bar cannot be influenced by function `Ask a Question` now.
- When `Daily Card` status bar is already there and function `Draw a Card` is called again, show the name of previous card instead of drawing a new card.
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": "daily-tarot",
"displayName": "Daily Tarot",
"description": "Get your daily tarot reading - Prisma Visions",
"version": "0.1.2",
"version": "0.1.3",
"publisher": "raptazure",
"icon": "images/icon.jpg",
"engines": {
Expand Down
15 changes: 7 additions & 8 deletions src/dailyTarot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@ let statusBar: vscode.StatusBarItem | undefined;
export function dailyTarot(context: vscode.ExtensionContext) {
if (statusBar === undefined) {
DrawCards.show(context);
}

const index = String(DrawCards.selector);
vscode.window.showInformationMessage(`${tarotDict[index]}`);
const index = String(DrawCards.selector);
vscode.window.showInformationMessage(`${tarotDict[index]}`);

if (statusBar !== undefined) {
statusBar.text = "🔮Daily Card: " + tarotDict[index];
} else {
statusBar = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 100);
statusBar.text = "🔮Daily Card: " + tarotDict[index];
statusBar.show();
} else {
vscode.window.showInformationMessage(statusBar.text);
}

// single click
// single click
if (statusBar !== undefined) {
statusBar.command = 'tarot.ask';
}
}

0 comments on commit cbaa1c1

Please sign in to comment.