Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
raikasdev committed Apr 30, 2022
1 parent 9f8dd87 commit 6e55590
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Binary file modified icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "testaustime",
"displayName": "TestausTime",
"version": "0.0.8",
"version": "0.0.9",
"description": "The VSCode extension of TestausTime",
"main": "out/index.js",
"publisher": "testausserveri-ry",
Expand Down
10 changes: 6 additions & 4 deletions src/testaustime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Testaustime {
}

setActiveText() {
this.statusbar.text = "TestausTime: active";
this.statusbar.text = "TestausTime: ";
this.statusbar.command = undefined;
}
//end statusbar
Expand Down Expand Up @@ -91,14 +91,16 @@ class Testaustime {
const setendpoint = vscode.commands.registerCommand('testaustime.setendpoint', async () => {
await vscode.window.showInputBox({
placeHolder: this.endpoint,
validateInput: (text) => (text.endsWith('/') ? 'Don\'t include the last slash' : null),
}).then((result) => {
if (result) {
if (result.endsWith('/')) {
result = result.slice(0, -1);
}
this.endpoint = result;
this.config.update('endpoint', result);
vscode.window.showInformationMessage('Endpoint key set!');
}
})
});
});

this.context.subscriptions.push(setapikey);
Expand All @@ -108,7 +110,7 @@ class Testaustime {
async activate() {
this.commands();

this.statusbar = vscode.window.createStatusBarItem();
this.statusbar = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right);
this.setActiveText();
this.statusbar.show();

Expand Down

0 comments on commit 6e55590

Please sign in to comment.