Skip to content

VS Code does not treat typescript dot files the way TSC command treats them #23750

@mjbvz

Description

@mjbvz

From @KSXGitHub on April 23, 2018 10:13

  • VSCode Version: 1.22.2
  • OS Version: Arch Linux

Steps to Reproduce

  1. Create tsconfig.json
{
  "compilerOptions": {
     "target": "es2017",
     "module": "commonjs",
     "lib": ["es2017"]
  }
}
  1. Create 2 files: .dotfile.ts (begin with a dot) and normalfile.ts
Object.entries({})

Expected behavior

There should be no problem

Actual behavior

In .dotfile.ts, linter marks entries word with message [ts] Property 'entries' does not exist on type 'ObjectConstructor'.

Things are okay in normalfile.ts

Screenshot

screenshot from 2018-04-23 22-39-18

Copied from original issue: microsoft/vscode#48385

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExternalRelates to another program, environment, or user action which we cannot control.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions