Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
INT-1888 Show a settings icon to the left of the sign in/sign out icon (
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj authored Sep 19, 2023
1 parent 491557f commit 8c98a42
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
},
"contributes": {
"commands": [
{
"command": "intuita.showIntuitaSettings",
"title": "Configure Intuita settings",
"icon": "$(settings-gear)"
},
{
"command": "intuita.signIn",
"title": "Sign in",
Expand Down Expand Up @@ -160,6 +165,11 @@
},
"menus": {
"view/title": [
{
"command": "intuita.showIntuitaSettings",
"when": "view == intuitaMainView",
"group": "navigation"
},
{
"command": "intuita.signIn",
"when": "view == intuitaMainView && !intuita.signedIn",
Expand Down
9 changes: 9 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,15 @@ export async function activate(context: vscode.ExtensionContext) {
}),
);

context.subscriptions.push(
vscode.commands.registerCommand('intuita.showIntuitaSettings', () => {
vscode.commands.executeCommand(
'workbench.action.openSettings',
'Intuita',
);
}),
);

context.subscriptions.push(
vscode.commands.registerCommand('intuita.signIn', () => {
const searchParams = new URLSearchParams();
Expand Down

0 comments on commit 8c98a42

Please sign in to comment.