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

Don't run onDidBlurEditorWidget and onDidFocusEditorText if inline edit is disabled #205378

Merged

Conversation

Krzysztof-Cieslak
Copy link
Contributor

No description provided.

@@ -121,11 +127,14 @@ export class InlineEditController extends Disposable {
}));

//Invoke provider on focus
this._register(editor.onDidFocusEditorText(async () => {
if (!this._enabled.get()) {
const editorFocusSignal = observableSignalFromEvent('InlineEditController.editorFocusSignal', editor.onDidFocusEditorText);
Copy link
Member

Choose a reason for hiding this comment

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

For focus, I can recommend to have an isFocused: IObservable<boolean>, instead of having two signals indicating the state transitions.

@VSCodeTriageBot VSCodeTriageBot added this to the February 2024 milestone Feb 19, 2024
@hediet hediet merged commit 7329258 into microsoft:main Feb 19, 2024
6 checks passed
@Krzysztof-Cieslak Krzysztof-Cieslak deleted the inline-edit-onblur-onfocus-handlers branch February 19, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants