mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-30 09:35:39 -05:00
Fixes #5231 - Add stdin handling. Has to be at UI level so add plumb through handling - Add unit tests - Add new StdIn component. Testing: Unit Tests and manual testing of following: - Prompt for password using `getpass` in python. - Password prompt is hidden since "password" is true. - Hit enter, it completes - prompt, stop cell running, StdIn disappears - prompt, hit escape, stdIn disappears and stdIn request is handled. Issues: focus isn't always set to the input even though we call focus. Will investigate this further.
This commit is contained in:
@@ -26,6 +26,7 @@ import { CodeCellComponent } from 'sql/workbench/parts/notebook/cellViews/codeCe
|
||||
import { TextCellComponent } from 'sql/workbench/parts/notebook/cellViews/textCell.component';
|
||||
import { OutputAreaComponent } from 'sql/workbench/parts/notebook/cellViews/outputArea.component';
|
||||
import { OutputComponent } from 'sql/workbench/parts/notebook/cellViews/output.component';
|
||||
import { StdInComponent } from 'sql/workbench/parts/notebook/cellViews/stdin.component';
|
||||
import { PlaceholderCellComponent } from 'sql/workbench/parts/notebook/cellViews/placeholderCell.component';
|
||||
import LoadingSpinner from 'sql/workbench/electron-browser/modelComponents/loadingSpinner.component';
|
||||
|
||||
@@ -44,7 +45,8 @@ export const NotebookModule = (params, selector: string, instantiationService: I
|
||||
NotebookComponent,
|
||||
ComponentHostDirective,
|
||||
OutputAreaComponent,
|
||||
OutputComponent
|
||||
OutputComponent,
|
||||
StdInComponent
|
||||
],
|
||||
entryComponents: [NotebookComponent],
|
||||
imports: [
|
||||
|
||||
Reference in New Issue
Block a user