Skip to content

Commit 77b124a

Browse files
committed
Moves realpath setting to advanced config section
(#1328, #4754)
1 parent 11c6530 commit 77b124a

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5445,6 +5445,13 @@
54455445
"scope": "window",
54465446
"order": 110
54475447
},
5448+
"gitlens.advanced.realpath": {
5449+
"type": "boolean",
5450+
"default": false,
5451+
"markdownDescription": "[Experimental] Specifies whether to resolve symbolic links when determining file paths for Git operations",
5452+
"scope": "window",
5453+
"order": 115
5454+
},
54485455
"gitlens.advanced.commits.delayLoadingFileDetails": {
54495456
"type": "boolean",
54505457
"default": false,
@@ -5558,13 +5565,6 @@
55585565
"scope": "window",
55595566
"order": 70
55605567
},
5561-
"gitlens.realpath": {
5562-
"type": "boolean",
5563-
"default": false,
5564-
"markdownDescription": "[Experimental] Specifies whether to resolve symbolic links when determining file paths for Git operations",
5565-
"scope": "window",
5566-
"order": 80
5567-
},
55685568
"gitlens.insiders": {
55695569
"deprecationMessage": "Deprecated. Use the pre-release edition of GitLens instead",
55705570
"markdownDeprecationMessage": "Deprecated. Use the pre-release of GitLens instead"

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export interface Config {
4343
readonly proxy: ProxyConfig | null;
4444
readonly rebaseEditor: RebaseEditorConfig;
4545
readonly remotes: RemotesConfig[] | null;
46-
readonly realpath: boolean;
4746
readonly showWhatsNewAfterUpgrades: boolean;
4847
readonly sortBranchesBy: BranchSorting;
4948
readonly sortContributorsBy: ContributorSorting;
@@ -209,6 +208,7 @@ export interface AdvancedConfig {
209208
readonly quickPick: {
210209
readonly closeOnFocusOut: boolean;
211210
};
211+
readonly realpath: boolean;
212212
readonly repositorySearchDepth: number | null;
213213
readonly similarityThreshold: number | null;
214214
}

src/git/gitUri.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export class GitUri extends (Uri as any as UriEx) {
252252
if (isGitUri(uri)) return uri;
253253

254254
// Check for symbolic links (Node.js only)
255-
if (configuration.get('realpath') && !isWeb && uri.scheme === 'file') {
255+
if (configuration.get('advanced.realpath') && !isWeb && uri.scheme === 'file') {
256256
try {
257257
const { realpathSync } = await import('fs');
258258
const realPath = realpathSync(uri.fsPath);

0 commit comments

Comments
 (0)