Mervap / Mervap/LamaPlugin

Autoimport on completion

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Kotlin
Stars
8
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Then you autocomplete function from another unit it's very comfortable to not import unit by another action
E.g
```
-- Before
import Data;

fold

-- After
import Data;
import List;

foldl()
```

See `org.jetbrains.lama.editor.completion.IdentifierCompletionProvider`,
`org.jetbrains.lama.editor.completion.LamaLookupElementFactory`

Contributor guide

Open the contributing guide

Research direction

Start with org.jetbrains.lama.editor.completion.IdentifierCompletionProvider and org.jetbrains.lama.editor.completion.LamaLookupElementFactory to trace how completion items are created. Determine how selecting a function from another unit can update imports, then verify that completing foldl adds import List while preserving existing imports and caret placement.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.