MCPcopy Create free account
hub / github.com/codeaashu/claude-code / _restartInterval

Method _restartInterval

src/server/web/public/terminal.js:7432–7450  ·  view source on GitHub ↗
(e3 = 600)

Source from the content-addressed store, hash-verified

7430 restartBlinkAnimation() {
7431 this.isPaused || (this._animationTimeRestarted = Date.now(), this.isCursorVisible = true, this._animationFrame || (this._animationFrame = this._coreBrowserService.window.requestAnimationFrame((() => {
7432 this._renderCallback(), this._animationFrame = void 0;
7433 }))));
7434 }
7435 _restartInterval(e3 = 600) {
7436 this._blinkInterval && (this._coreBrowserService.window.clearInterval(this._blinkInterval), this._blinkInterval = void 0), this._blinkStartTimeout = this._coreBrowserService.window.setTimeout((() => {
7437 if (this._animationTimeRestarted) {
7438 const e4 = 600 - (Date.now() - this._animationTimeRestarted);
7439 if (this._animationTimeRestarted = void 0, e4 > 0) return void this._restartInterval(e4);
7440 }
7441 this.isCursorVisible = false, this._animationFrame = this._coreBrowserService.window.requestAnimationFrame((() => {
7442 this._renderCallback(), this._animationFrame = void 0;
7443 })), this._blinkInterval = this._coreBrowserService.window.setInterval((() => {
7444 if (this._animationTimeRestarted) {
7445 const e4 = 600 - (Date.now() - this._animationTimeRestarted);
7446 return this._animationTimeRestarted = void 0, void this._restartInterval(e4);
7447 }
7448 this.isCursorVisible = !this.isCursorVisible, this._animationFrame = this._coreBrowserService.window.requestAnimationFrame((() => {
7449 this._renderCallback(), this._animationFrame = void 0;
7450 }));
7451 }), 600);
7452 }), e3);
7453 }

Callers 2

constructorMethod · 0.80
resumeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected