Skip to content

Duplicate errors in error list after build #48709

@mhegazy

Description

@mhegazy

Issue Type: Bug

  1. Create file a.js:
// @ts-check

/** @type {number} */
var a = "";
  1. Create file tsconfig.json
{
    "compilerOptions": {
        "allowJs": true,
        "pretty": false,
        "noEmit": true
    }
}
  1. Open code
  2. Run build command

Observe error list is updated with errors:

image

  1. Double click on the error message, a.js is now open

Observe error list now has duplicate errors:

image

Note: this does not seem to happen for a .ts file

VS Code version: Code 1.22.2 (3aeede7, 2018-04-12T16:38:45.278Z)
OS version: Windows_NT x64 10.0.16299

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)
Memory (System) 15.93GB (6.67GB free)
Process Argv C:\Program Files\Microsoft VS Code\Code.exe stc
Screen Reader no
VM 0%
Extensions (1)
Extension Author (truncated) Version
xml Dot 1.9.2

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugtasksTask system issuestypescriptTypescript support issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions