-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugtasksTask system issuesTask system issuesverifiedVerification succeededVerification succeeded
Milestone
Description
- VSCode Version: Code 1.16.1 (27492b6, 2017-09-14T16:24:39.530Z)
- OS Version: Darwin x64 15.6.0
- typescript version: 2.5.2
Given the following tasks.json which finds all typescript errors in project
// tasks.json
{
"version": "2.0.0",
"tasks": [
{
"taskName": "tsc-watch",
"type": "shell",
"command": "./node_modules/.bin/tsc",
"args": ["--noEmit", "-w", "-p", "."],
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "shared"
},
"group":{
"kind": "build",
"isDefault": true
},
"isBackground": true,
"problemMatcher": "$tsc-watch"
}
]
}
an index.ts file:
// index.ts
import related from './related';
console.log(related(1))
an related.ts file:
// related.ts
export default function related(thing: number) {
return thing
}
Steps to reproduce.
- Open related.ts without index.ts open.
- Change
thing: numbertothing: string= vscode correctly shows 1 error - Undo change = vscode correctly shows 0 errors
- Redo change in Step 2 = vscode incorrectly still shows 0 errors
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugtasksTask system issuesTask system issuesverifiedVerification succeededVerification succeeded