Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
fixme: needs to be removed/fixed
Browse files Browse the repository at this point in the history
Change-Id: Ice22456e01e1ce81b84659b4f361fa2d5be6f296
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
  • Loading branch information
benoitf authored and RomanNikitenko committed Oct 7, 2020
1 parent dcc5a8f commit 0e2b132
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/task-plugin/src/task-plugin-backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ import { TaskStatusHandler } from './task/task-status';
let pluginContext: theia.PluginContext;
let outputChannel: theia.OutputChannel | undefined;

function timeout(ms: number): Promise<unknown> {
return new Promise(resolve => setTimeout(resolve, ms));
}

export async function start(context: theia.PluginContext): Promise<void> {
// FIXME: test: delay start of task plug-in to delay export of launch.json files
// should not be merged like that
await timeout(10000);
pluginContext = context;

const сheTaskEventsHandler = container.get<CheTaskEventsHandler>(CheTaskEventsHandler);
Expand Down

0 comments on commit 0e2b132

Please sign in to comment.