Skip to content

Commit 5830bb9

Browse files
committed
Improved logging
1 parent da63c2c commit 5830bb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/editorServices.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2152,7 +2152,7 @@ namespace ts.server {
21522152
const rule = this.safelist[name];
21532153
for (const root of normalizedNames) {
21542154
if (rule.match.test(root)) {
2155-
this.logger.info(`Excluding files based on rule ${name}`);
2155+
this.logger.info(`Excluding files based on rule ${name} matching file '${root}'`);
21562156

21572157
// If the file matches, collect its types packages and exclude rules
21582158
if (rule.types) {
@@ -2218,7 +2218,7 @@ namespace ts.server {
22182218
const inferredTypingName = removeFileExtension(baseName);
22192219
const cleanedTypingName = removeMinAndVersionNumbers(inferredTypingName);
22202220
if (this.legacySafelist[cleanedTypingName]) {
2221-
this.logger.info(`Excluded '${normalizedNames[i]}'`);
2221+
this.logger.info(`Excluded '${normalizedNames[i]}' because it matched ${cleanedTypingName} from the legacy safelist`);
22222222
excludedFiles.push(normalizedNames[i]);
22232223
exclude = true;
22242224
}

0 commit comments

Comments
 (0)