4150a463e2
* Add `-dev` to version patch number in master * Refactor to handel non-identifier tokens for UMD modules * Be more graceful handeling non-identifier tokens in import fixes * Fix bad merge * Remove check for isIdentifier
44 lines
950 B
TypeScript
44 lines
950 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// @jsx: react
|
|
// @allowSyntheticDefaultImports: false
|
|
// @module: es2015
|
|
// @moduleResolution: node
|
|
|
|
// @Filename: /node_modules/@types/react/index.d.ts
|
|
////export = React;
|
|
////export as namespace React;
|
|
////declare namespace React {
|
|
//// export class Component { render(): JSX.Element | null; }
|
|
////}
|
|
////declare global {
|
|
//// namespace JSX {
|
|
//// interface Element {}
|
|
//// }
|
|
////}
|
|
|
|
// @Filename: /a.tsx
|
|
////[|import { Component } from "react";
|
|
////export class MyMap extends Component { }
|
|
////<MyMap/>;|]
|
|
|
|
// @Filename: /b.tsx
|
|
////[|import { Component } from "react";
|
|
////<></>;|]
|
|
|
|
goTo.file("/a.tsx");
|
|
|
|
verify.importFixAtPosition([
|
|
`import { Component } from "react";
|
|
import * as React from "react";
|
|
export class MyMap extends Component { }
|
|
<MyMap/>;`]);
|
|
|
|
|
|
goTo.file("/b.tsx");
|
|
|
|
verify.importFixAtPosition([
|
|
`import { Component } from "react";
|
|
import * as React from "react";
|
|
<></>;`]);
|