Skip to content

Commit

Permalink
fix: duplicate diagnostics in *.ts
Browse files Browse the repository at this point in the history
close #1234
  • Loading branch information
johnsoncodehk committed Apr 25, 2022
1 parent 0668da2 commit 90d370e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -100,8 +100,8 @@ export function register(context: LanguageServiceRuntimeContext) {
},
async (plugin, document, arg, sourceMap) => {

// avoid duplicate errors from vue plugiin
if (!isTsDocument(document) && isTs)
// avoid duplicate errors from vue plugin & typescript plugin
if (isTsDocument(document) !== isTs)
return;

if (await isCancel?.())
Expand Down

0 comments on commit 90d370e

Please sign in to comment.