Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static create(parent: interfaces.Container): ConsoleWidget {
const inputFocusContextKey = parent.get(InDebugReplContextKey);
const child = ConsoleWidget.createContainer(parent, {
...DebugConsoleContribution.options,
inputFocusContextKey
});
const widget = child.get(ConsoleWidget);
widget.session = child.get(DebugConsoleSession);
return widget;
}