Skip to content

Commit ebd35aa

Browse files
committed
Moves realpath setting to advanced config section
(#1328, #4754)
1 parent 42e4a3f commit ebd35aa

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
@@ -5452,6 +5452,13 @@
54525452
"scope": "window",
54535453
"order": 110
54545454
},
5455+
"gitlens.advanced.realpath": {
5456+
"type": "boolean",
5457+
"default": false,
5458+
"markdownDescription": "[Experimental] Specifies whether to resolve symbolic links when determining file paths for Git operations",
5459+
"scope": "window",
5460+
"order": 115
5461+
},
54555462
"gitlens.advanced.commits.delayLoadingFileDetails": {
54565463
"type": "boolean",
54575464
"default": false,
@@ -5565,13 +5572,6 @@
55655572
"scope": "window",
55665573
"order": 70
55675574
},
5568-
"gitlens.realpath": {
5569-
"type": "boolean",
5570-
"default": false,
5571-
"markdownDescription": "[Experimental] Specifies whether to resolve symbolic links when determining file paths for Git operations",
5572-
"scope": "window",
5573-
"order": 80
5574-
},
55755575
"gitlens.insiders": {
55765576
"deprecationMessage": "Deprecated. Use the pre-release edition of GitLens instead",
55775577
"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)