diff --git a/src/vs/workbench/contrib/terminal/browser/links/terminalLink.ts b/src/vs/workbench/contrib/terminal/browser/links/terminalLink.ts index 87822e0d527..19521e14c41 100644 --- a/src/vs/workbench/contrib/terminal/browser/links/terminalLink.ts +++ b/src/vs/workbench/contrib/terminal/browser/links/terminalLink.ts @@ -8,10 +8,10 @@ import { DisposableStore } from 'vs/base/common/lifecycle'; import * as dom from 'vs/base/browser/dom'; import { RunOnceScheduler } from 'vs/base/common/async'; import { convertBufferRangeToViewport } from 'vs/workbench/contrib/terminal/browser/links/terminalLinkHelpers'; -import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; import { isMacintosh } from 'vs/base/common/platform'; import { localize } from 'vs/nls'; import { Emitter, Event } from 'vs/base/common/event'; +import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; export const OPEN_FILE_LABEL = localize('openFile', 'Open file in editor'); export const FOLDER_IN_WORKSPACE_LABEL = localize('focusFolder', 'Focus folder in explorer'); @@ -81,7 +81,6 @@ export class TerminalLink extends DisposableStore implements ILink { // Only show the tooltip and highlight for high confidence links (not word/search workspace // links). Feedback was that this makes using the terminal overly noisy. if (this._isHighConfidenceLink) { - const timeout = this._configurationService.getValue('editor.hover.delay'); this._tooltipScheduler = new RunOnceScheduler(() => { this._tooltipCallback( this, @@ -92,7 +91,7 @@ export class TerminalLink extends DisposableStore implements ILink { // Clear out scheduler until next hover event this._tooltipScheduler?.dispose(); this._tooltipScheduler = undefined; - }, timeout); + }, this._configurationService.getValue('workbench.hover.delay')); this.add(this._tooltipScheduler); this._tooltipScheduler.schedule(); } diff --git a/src/vs/workbench/contrib/terminal/browser/widgets/environmentVariableInfoWidget.ts b/src/vs/workbench/contrib/terminal/browser/widgets/environmentVariableInfoWidget.ts index 913e4de7947..b13ff32f460 100644 --- a/src/vs/workbench/contrib/terminal/browser/widgets/environmentVariableInfoWidget.ts +++ b/src/vs/workbench/contrib/terminal/browser/widgets/environmentVariableInfoWidget.ts @@ -41,8 +41,7 @@ export class EnvironmentVariableInfoWidget extends Widget implements ITerminalWi } container.appendChild(this._domNode); - const timeout = this._configurationService.getValue('editor.hover.delay'); - const scheduler: RunOnceScheduler = new RunOnceScheduler(() => this._showHover(), timeout); + const scheduler: RunOnceScheduler = new RunOnceScheduler(() => this._showHover(), this._configurationService.getValue('workbench.hover.delay')); this._register(scheduler); let origin = { x: 0, y: 0 };