-
Notifications
You must be signed in to change notification settings - Fork 395
Completions for workspace implicit classes #7919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pielas
wants to merge
16
commits into
scalameta:main
Choose a base branch
from
pielas:completions-for-workspace-implicit-classes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
216cff5
Added test case for asJson completion
pielas f4eb03a
fix
pielas c440af1
somehow working version
pielas 1bf794d
fixes
pielas 989557e
fix
pielas 454a768
fixes
pielas 5eb1687
fixes
pielas 63fe816
fix
pielas 809890c
fixes
pielas 0fe7692
fixes
pielas d066101
using mtags in case we need more info
pielas c38a979
fix
pielas 5eb4f81
fix
pielas 599b271
fix
pielas 3e28e01
removed unnecessary code
pielas f1e55ac
fix
pielas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
metals/src/main/resources/db/migration/V8__Implicit_class_members.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| -- Implicit class member information for providing completions | ||
| create table implicit_class_members( | ||
| class_symbol varchar not null, | ||
| param_type varchar not null, | ||
| method_symbol varchar not null, | ||
| method_name varchar not null, | ||
| start_line int not null, | ||
| start_character int not null, | ||
| end_line int not null, | ||
| end_character int not null, | ||
| path varchar not null, | ||
| jar int, | ||
| foreign key (jar) references indexed_jar (id) on delete cascade | ||
| ); | ||
|
|
||
| create index implicit_class_members_jar on implicit_class_members(jar); | ||
| create index implicit_class_members_param_type on implicit_class_members(param_type); | ||
|
|
||
| alter table indexed_jar | ||
| add implicit_class_members_indexed bit; | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't we reuse ToplevelMember for now? And jsut add different kind there?