Skip to content

autocomplete doesn't work with export { foo } from './some-file' #7797

@Mayank1791989

Description

@Mayank1791989

Commands doesn't work with export { } from './some_file';. See example below.

// test.js
export function foo(): string {
   return 'foo';
}
export function bar(): string {
   return 'bar';
}

flow autocomplete

/* autocomplete_test.js */
export {   } from './test.js';
// ------^ flow autocomplete not working here (returns nothing)
import {   } from './test.js';
// ------^ flow autocomplete working here (returns [foo & bar])

flow type-at-pos

/* type-at-pos_test.js */
export { foo } from './test.js';
// -------^ flow type-at-pos not working here (returns [(unknown)])
import { foo } from './test.js';
// -------^ flow type-at-pos working here (returns [() => string])

flow get-def

/* get-def_test.js */
export { foo } from './test.js';
// -------^ flow get-def not working here (returns [test.js:0:1,0:0])
import { foo } from './test.js';
// -------^ flow get-def working here (returns [test.js:2:17,2:19])

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions