Add enableFileLinks setting to avoid expensive FS calls

Fixes #74955
This commit is contained in:
Daniel Imms
2019-09-25 15:25:44 -07:00
parent f45aa1fc1c
commit f9adc5e5a7
3 changed files with 9 additions and 1 deletions

View File

@@ -310,6 +310,11 @@ configurationRegistry.registerConfiguration({
description: nls.localize('terminal.integrated.experimentalUseTitleEvent', "An experimental setting that will use the terminal title event for the dropdown title. This setting will only apply to new terminals."),
type: 'boolean',
default: false
},
'terminal.integrated.enableFileLinks': {
description: nls.localize('terminal.integrated.enableFileLinks', "Whether to enable file links in the terminal. Links can be slow when working on a network drive in particular because each file link is verified against the file system."),
type: 'boolean',
default: true
}
}
});

View File

@@ -108,7 +108,9 @@ export class TerminalLinkHandler {
this.registerWebLinkHandler();
if (this._processManager) {
this.registerLocalLinkHandler();
if (this._configHelper.config.enableFileLinks) {
this.registerLocalLinkHandler();
}
this.registerGitDiffLinkHandlers();
}
}

View File

@@ -116,6 +116,7 @@ export interface ITerminalConfiguration {
windowsEnableConpty: boolean;
experimentalRefreshOnResume: boolean;
experimentalUseTitleEvent: boolean;
enableFileLinks: boolean;
}
export interface ITerminalConfigHelper {