Skip to content

Commit c96db29

Browse files
authored
Disable use of focusPending in notebooks (#10208)
For #10194
1 parent 89320fb commit c96db29

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/datascience-ui/interactive-common/redux/reducers/commonEffects.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ export namespace CommonEffects {
116116
function focusPending(prevState: IMainState): IMainState {
117117
return {
118118
...prevState,
119+
// This is only applicable for interactive window & not native editor.
119120
focusPending: prevState.focusPending + 1
120121
};
121122
}

src/datascience-ui/native-editor/nativeEditor.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,8 @@ export class NativeEditor extends React.Component<INativeEditorProps> {
473473
editorOptions={this.props.editorOptions}
474474
enableGather={this.props.settings.enableGather}
475475
themeMatplotlibPlots={this.props.settings.themeMatplotlibPlots}
476-
focusPending={this.props.focusPending}
476+
// Focus pending does not apply to native editor.
477+
focusPending={0}
477478
/>
478479
</ErrorBoundary>
479480
{lastLine}

0 commit comments

Comments
 (0)