Skip to content

Commit

Permalink
fix: use console.warn instead of console.log (#1403)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukkee committed Jun 6, 2022
1 parent 33c9c1c commit 04a8d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-typescript/src/utils/ts.ts
Expand Up @@ -12,7 +12,7 @@ export function injectCacheLogicToLanguageServiceHost(
const versionNums = ts.version.split('.').map(s => Number(s));
const greaterThan47 = versionNums[0] > 4 || (versionNums[0] === 4 && versionNums[1] >= 7);
if (!greaterThan47) {
console.log('TypeScript auto-import cache only working for TypeScript version < 4.7 on v0.35.0 later, please downgrade to v0.34.17 or lower for TypeScript version:', ts.version);
console.warn('TypeScript auto-import cache only working for TypeScript version < 4.7 on v0.35.0 later, please downgrade to v0.34.17 or lower for TypeScript version:', ts.version);
return;
}

Expand Down

0 comments on commit 04a8d4b

Please sign in to comment.