facebook / facebook/flow

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

Open
#7,797 6 comments 0 reactions 1 assignee Claimed by @nmote View on GitHub
autocomplete bug
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

Commands doesn't work with `export { } from './some_file';`. See example below.
```js
// test.js
export function foo(): string {
return 'foo';
}
export function bar(): string {
return 'bar';
}
```
**flow autocomplete**
```js
/* 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**
```js
/* 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**
```js
/* 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])
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.