-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
In DiscussionNot yet reached consensusNot yet reached consensusSuggestionAn idea for TypeScriptAn idea for TypeScript
Description
From @arsnl on August 25, 2018 0:59
- VSCode Version: 1.26.1
- OS Version: macOS High Sierra 10.13.6
- TypeScript: 3.0.1
Steps to Reproduce
- Add
// @ts-nocheck
at the start of any TypeScript file - Try to trigger any TS check error
Result
VS Code display TS error
Expected
VS Code should not display TS error
Does this issue occur when all extensions are disabled?: Yes
Snippet to try
// @ts-nocheck
const test = (foo: string) => `${foo}-bar`;
test(1); // Should not display error
test('baz'); // Correct behavior with correct type
// @ts-ignore
test(1); // Correct behavior with @ts-ignore
Copied from original issue: microsoft/vscode#57187
304NotModified, Gamadril, nickserv, MikeShi42, p-vogt and 18 more
Metadata
Metadata
Assignees
Labels
In DiscussionNot yet reached consensusNot yet reached consensusSuggestionAn idea for TypeScriptAn idea for TypeScript