Skip to content

Commit

Permalink
chore: update load volar.config.js wording
Browse files Browse the repository at this point in the history
close #1175
  • Loading branch information
johnsoncodehk committed Apr 12, 2022
1 parent 9db4518 commit 0cb4180
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vue-language-server/src/common.ts
Expand Up @@ -120,10 +120,11 @@ export function loadCustomPlugins(dir: string) {
try {
const configPath = require.resolve('./volar.config.js', { paths: [dir] });
const config: { plugins?: vue.EmbeddedLanguageServicePlugin[] } = require(configPath);
console.warn('Found', configPath, 'and loaded', config.plugins?.length, 'plugins.');
return config.plugins ?? []
}
catch (err) {
console.warn('load volar.config.js failed in', dir);
console.warn('No volar.config.js found in', dir);
return [];
}
}

0 comments on commit 0cb4180

Please sign in to comment.