* importFixes: Support missing "React" at a JSXOpeningElement * Fix nextLineRule linting * Rename to resolveJsxNamespaceAtLocation * Expose getJsxNamespace and resolveNameAtLocation separately
22 lines
403 B
TypeScript
22 lines
403 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// https://github.com/Microsoft/TypeScript/issues/16065
|
|
|
|
// @jsx: react
|
|
// @jsxFactory: factory
|
|
|
|
// @Filename: /factory.ts
|
|
////export function factory() { return {}; }
|
|
////declare global {
|
|
//// namespace JSX {
|
|
//// interface Element {}
|
|
//// }
|
|
////}
|
|
|
|
// @Filename: /a.tsx
|
|
////[|<div/>|]
|
|
|
|
goTo.file("/a.tsx");
|
|
verify.not
|
|
verify.importFixAtPosition([]);
|