Skip to content

Commit

Permalink
Open extension settings on tray button click
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMcSebi committed Jan 9, 2024
1 parent a0b0c25 commit ae7db70
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ export function activate(context: vscode.ExtensionContext) {
// Create status bar
const openSettings = 'llama.openSettings';
context.subscriptions.push(vscode.commands.registerCommand(openSettings, () => {
// const n = getNumberOfSelectedLines(vscode.window.activeTextEditor);
// vscode.window.showInformationMessage(`Yeah, ${n} line(s) selected... Keep going!`);
vscode.commands.executeCommand('workbench.action.openSettings', '@ext:ex3ndr.llama-coder');
}));
let statusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 100);
statusBarItem.command = openSettings;
Expand Down

0 comments on commit ae7db70

Please sign in to comment.