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

Terminal.processId is null immediately after creating the terminal #12768

Closed
sandy081 opened this issue Sep 27, 2016 · 1 comment
Closed

Terminal.processId is null immediately after creating the terminal #12768

sandy081 opened this issue Sep 27, 2016 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) terminal General terminal issues that don't fall under another label

Comments

@sandy081
Copy link
Member

Testing #12595

context.subscriptions.push(vscode.commands.registerCommand('extension.createTerminal', () => {
        if (!myTerminal) {
            myTerminal = vscode.window.createTerminal('my terminal', 'bash', ['-v']);
            myTerminal.processId.then(value => {
                vscode.window.setStatusBarMessage('' + value);
            });
        }
    }));

Above code fails because, myTerminal.process is null.
This is not expected because it is a promise.

@sandy081 sandy081 added bug Issue identified by VS Code Team member as probable bug terminal General terminal issues that don't fall under another label labels Sep 27, 2016
@Tyriar Tyriar added this to the September 2016 milestone Sep 27, 2016
@Tyriar
Copy link
Member

Tyriar commented Sep 29, 2016

Duplicate #12770

@Tyriar Tyriar closed this as completed Sep 29, 2016
@Tyriar Tyriar removed this from the September 2016 milestone Sep 29, 2016
@Tyriar Tyriar added the *duplicate Issue identified as a duplicate of another issue(s) label Sep 29, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) terminal General terminal issues that don't fall under another label
Projects
None yet
Development

No branches or pull requests

2 participants