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

add execute task to plug-in API #5357

Closed
wants to merge 1 commit into from

Conversation

elaihau
Copy link
Contributor

@elaihau elaihau commented Jun 5, 2019

  • This pull request adds the support of executing a vscode.Task to the plugins API.

Signed-off-by: elaihau [email protected]

- This pull request adds the support of executing a vscode.Task to the plugins API.

Signed-off-by: elaihau <[email protected]>
@elaihau
Copy link
Contributor Author

elaihau commented Jun 5, 2019

I tested it with tweaking code in my own vscode extension and set it up in theia

		const myTask = new vscode.Task(
			{ type: 'shell' },
			vscode.TaskScope.Workspace,
			'test',
			'testExtension',
			new vscode.ShellExecution('ls -alR', { cwd: '/home/xxx/dev' })
		);
		vscode.tasks.executeTask(myTask);

return taskExecution;
}
}
return {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should reject request for execution if a we can not run task for some reason
WDYT?

@RomanNikitenko
Copy link
Contributor

It would be nice to test this changes together with #5348.
I mean fetch all tasks and try to run a task with the same label but different source and command args for example (as 'configured' and as 'detected')

@elaihau
Copy link
Contributor Author

elaihau commented Aug 28, 2019

re-implemented in #6058. closing this one.

@elaihau elaihau closed this Aug 28, 2019
@elaihau elaihau deleted the exe_task branch August 28, 2019 11:34
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

Successfully merging this pull request may close these issues.

2 participants