Skip to content

Commit b224d0f

Browse files
committed
wip: ...
1 parent 10efbfb commit b224d0f

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

packages/typescript/lib/configs/getUserPreferences.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,10 @@ function getAutoImportFileExcludePatternsPreference(config: any, workspacePath:
7272
// Normalization rules: https://github.com/microsoft/TypeScript/pull/49578
7373
const slashNormalized = p.replace(/\\/g, '/');
7474
const isRelative = /^\.\.?($|\/)/.test(slashNormalized);
75-
return path.isAbsolute(p)
76-
? p
77-
: p.startsWith('*')
78-
? '/' + slashNormalized
79-
: isRelative
80-
? path.join(workspacePath, p)
81-
: '/**/' + slashNormalized;
75+
return path.isAbsolute(p) ? p :
76+
p.startsWith('*') ? '/' + slashNormalized :
77+
isRelative ? path.join(workspacePath, p) :
78+
'/**/' + slashNormalized;
8279
});
8380
}
8481

0 commit comments

Comments
 (0)