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

Introduce Workspace Folder Pick API #2337

Closed
4 tasks done
ashumilova opened this issue Jul 11, 2018 · 1 comment
Closed
4 tasks done

Introduce Workspace Folder Pick API #2337

ashumilova opened this issue Jul 11, 2018 · 1 comment
Assignees
Labels
plug-in system issues related to the plug-in system Team: Che-Editors issues regarding the che-editors team

Comments

@ashumilova
Copy link

ashumilova commented Jul 11, 2018

The new plugin model should contain the API for picking workspace folder. The task includes following items to be done:

  • define the Workspace Folder Pick API
  • document the API
  • develop the defined API
  • test it on the sample plugin
@ashumilova ashumilova added beginners issues that are perfect for beginners browser local storage issues related to the browser local storage plug-in system issues related to the plug-in system Team: Che-Editors issues regarding the che-editors team and removed beginners issues that are perfect for beginners browser local storage issues related to the browser local storage labels Jul 11, 2018
@vitaliy-guliy vitaliy-guliy changed the title Introduce Folder Pick API Introduce Workspace Folder Pick API Aug 7, 2018
@vitaliy-guliy vitaliy-guliy self-assigned this Aug 7, 2018
@vitaliy-guliy
Copy link
Contributor

Code to test

    const pickWorkspaceFolder: theia.Command = {
        id: 'plugin-api-pick-workspace-folder',
        label: 'Pick Workspace Folder'
    };

    disposables.push(
        theia.commands.registerCommand(pickWorkspaceFolder, (...args: any[]) => {
            theia.window.showWorkspaceFolderPick().then(value => {
                if (value) {
                    theia.window.showInformationMessage('Workspace ' + value.name);
                    theia.window.showInformationMessage('Path ' + value.uri.path.toString());
                } else {
                    theia.window.showInformationMessage('Canceled');
                }
            });
        })
    );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plug-in system issues related to the plug-in system Team: Che-Editors issues regarding the che-editors team
Projects
None yet
Development

No branches or pull requests

2 participants