mirror of
https://github.com/coder/code-server.git
synced 2026-05-08 21:37:27 +02:00
chore(vscode): update to 1.53.2
These conflicts will be resolved in the following commits. We do it this way so that PR review is possible.
This commit is contained in:
@@ -56,15 +56,26 @@ export abstract class Composite extends Component implements IComposite {
|
||||
return this._onDidBlur.event;
|
||||
}
|
||||
|
||||
private _hasFocus = false;
|
||||
hasFocus(): boolean {
|
||||
return this._hasFocus;
|
||||
}
|
||||
|
||||
private registerFocusTrackEvents(): { onDidFocus: Emitter<void>, onDidBlur: Emitter<void> } {
|
||||
const container = assertIsDefined(this.getContainer());
|
||||
const focusTracker = this._register(trackFocus(container));
|
||||
|
||||
const onDidFocus = this._onDidFocus = this._register(new Emitter<void>());
|
||||
this._register(focusTracker.onDidFocus(() => onDidFocus.fire()));
|
||||
this._register(focusTracker.onDidFocus(() => {
|
||||
this._hasFocus = true;
|
||||
onDidFocus.fire();
|
||||
}));
|
||||
|
||||
const onDidBlur = this._onDidBlur = this._register(new Emitter<void>());
|
||||
this._register(focusTracker.onDidBlur(() => onDidBlur.fire()));
|
||||
this._register(focusTracker.onDidBlur(() => {
|
||||
this._hasFocus = false;
|
||||
onDidBlur.fire();
|
||||
}));
|
||||
|
||||
return { onDidFocus, onDidBlur };
|
||||
}
|
||||
@@ -234,7 +245,6 @@ export abstract class CompositeDescriptor<T extends Composite> {
|
||||
readonly cssClass?: string,
|
||||
readonly order?: number,
|
||||
readonly requestedIndex?: number,
|
||||
readonly keybindingId?: string,
|
||||
) { }
|
||||
|
||||
instantiate(instantiationService: IInstantiationService): T {
|
||||
|
||||
Reference in New Issue
Block a user