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

Output channel doesn't work without timeout #4155

Closed
AndrienkoAleksandr opened this issue Jan 23, 2019 · 2 comments
Closed

Output channel doesn't work without timeout #4155

AndrienkoAleksandr opened this issue Jan 23, 2019 · 2 comments
Assignees
Labels
bug bugs found in the application plug-in system issues related to the plug-in system Team: Che-Editors issues regarding the che-editors team vscode issues related to VSCode compatibility

Comments

@AndrienkoAleksandr
Copy link
Contributor

AndrienkoAleksandr commented Jan 23, 2019

Steps to reproduce:

  1. Create plugin with such content
import * as theia from '@theia/plugin';

export function start(context: theia.PluginContext) {
    const outputChannel = theia.window.createOutputChannel('Yeoman Generator');
    outputChannel.show(true);
    outputChannel.append("Hello World");
}

export function stop() {

}
  1. Run theia with this plugin.
    Expected result: Theia should display Output widget and text "Hello World"
    Actual result: Theia doesn't display output widget at all.
    P.S.: it's somehow begin work when I apply timer, recompile plugin, restart Theia and refresh page few times:
import * as theia from '@theia/plugin';

export function start(context: theia.PluginContext) {
    setTimeout(() => {
        const outputChannel = theia.window.createOutputChannel('Yeoman Generator');
        outputChannel.show(true);
        outputChannel.append("Hello World");
    }, 3000);
}

export function stop() {

}
@AndrienkoAleksandr
Copy link
Contributor Author

Checked, still actual with 0.3.19. But after #4215 timer workaround is stable: I don't need refresh page few times.

@tsmaeder tsmaeder added the vscode issues related to VSCode compatibility label Feb 6, 2019
@olexii4 olexii4 self-assigned this Mar 6, 2019
@olexii4
Copy link
Contributor

olexii4 commented Mar 6, 2019

Cannot reproduce. Tested the last version of Theia(master branch)

@olexii4 olexii4 closed this as completed Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application plug-in system issues related to the plug-in system Team: Che-Editors issues regarding the che-editors team vscode issues related to VSCode compatibility
Projects
None yet
Development

No branches or pull requests

3 participants