Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to toggle settings from other extension #158

Closed
KnIfER opened this issue Jan 17, 2022 · 1 comment
Closed

how to toggle settings from other extension #158

KnIfER opened this issue Jan 17, 2022 · 1 comment

Comments

@KnIfER
Copy link

KnIfER commented Jan 17, 2022

I want to add a status bar button to toggle wrapTabs . But it only invokes the toggle panel, not toggle the settings.

var right=0;
            var e=vscode_1.window.createStatusBarItem(vscode.StatusBarAlignment.Left);
            e.text = '$(extensions-view-icon)';
            e.tooltip = 'Toggle Wrap Tabs';
            e.command = {
                    "title": "wrap",
                    "command": "settings-toggle.toggle-workspace",
                    "arguments": ["workbench.editor.wrapTabs"]
                    ,"args": {
                        "action": "toggle",
                        "setting": "workbench.editor.wrapTabs"
                      }
                };
            e.color = 'yellow';
            e.show();
@z0al
Copy link
Owner

z0al commented Jan 17, 2022

The extension doesn't yet read args command param.

Duplicate of #58

@z0al z0al closed this as completed Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants