Skip to content

Import statement snippet inconsistent between .ts and .tsx files #34646

@OliverJAsh

Description

@OliverJAsh
  1. Create a .ts file
  2. Type import
  3. Press tab to activate the "import statement" snippet

Expected and actual: completes to import { } from "module";

  1. Create a .tsx file (TypeScript + JSX)
  2. Type import
  3. Press tab to activate the "import statement" snippet

Actual: completes to import name = require('');

Expected: completes to import { } from "module";

Is there any reason why the snippet is inconsistent between .ts and .tsx files?

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buggood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunitiessnippetstypescriptTypescript support issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions