-
Notifications
You must be signed in to change notification settings - Fork 3
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
Suggestion improvements (2) #111
Open
LinqLover
wants to merge
9
commits into
hpi-swa:master
Choose a base branch
from
LinqLover:suggestions-2
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
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
Conversation
This file contains 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
- SBStNameBehavior>>suggestions: Do not distinguish between syntactical casing (lowercase/uppercase) of the suggestions but rather between their origin (local/global), since class vars are actually scoped locally - new sibling class SBStDeclarationForClassVariable of SBStDeclarationForInstanceVariable with common features extracted into new superclass SBStDeclarationForBehaviorVariable - improved type guessing for class variables and instance variables of singleton (class objects)
…tefact for specialization For instance, sonyx overrides somes of the 'artefactCompletion' hooks in order to minimize the selector list, add custom selectors, or insert instances from a subclass of SBSuggestionItem.
For instance, you could override the hook like this on Color to prioritize color names: sandblocksMetaSuggestionsFor: aBlock ^ self colorNames, (super sandblocksMetaSuggestionsFor: aBlock) Sonyx makes use of this hook, too.
Pull Request Test Coverage Report for Build 1936438058Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
LinqLover
added a commit
to LinqLover/sonyx
that referenced
this pull request
Mar 5, 2022
- Only suggest class names of sonyx sound classes + disable projections - For arbitrary message sends, suggest #from:to: and #from:to:into:to: Depends on hpi-swa/sandblocks#111.
LinqLover
added a commit
to LinqLover/sonyx
that referenced
this pull request
Mar 5, 2022
This PR improves the suggestions convenience based on user feedback: * Customize sandblocks completion suggestions (fcb6c29) * Only suggest class names of sonyx sound classes + disable projections * For arbitrary message sends, suggest #from:to: and #from:to:into:to: Depends on hpi-swa/sandblocks#111. * Add sounding suggestions (35a710e) * visual indication to distinguish between earcons and audicons * press and hold shift in the suggestions menu to prehear each squeakSound
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR proposes further improvements, new hooks, and some fixes to the suggestions infrastructure. Depends on (and includes) #108.
st/core: dispatch gathering of completion suggestions to
containingArtefact
for specialization (ab393e3)For instance, sonyx overrides some of these new 'artefactCompletion' hooks in order to minimize the selector list, add custom selectors, or insert instances from a subclass of
SBSuggestionItem
.Video (🔊):
sonyxSoundSuggestions.mp4
Open issues on this change:
SBStContainer
. However, this is not necessarily the single truth. Maybe alternatively/additionally dispatch the creation via the editor, the grammar handler, or a completely new entity?st/core: provide hook
Class>>#sandblocksMetaSuggestionsFor:
(5f84560)For instance, you could override the hook like this on
Color
to prioritize color names:Sonyx makes use of this hook, too.
misc
recategorizations (0d51099)
st: reassure that return expressions can be print-itted (d0d80f9)
core: fix
SBSuggestionMenu>>#sandblockEditor
(544932d)The menu is not a sub*morph of the editor, so we need to use the instvar here.
core: fix dismissal of suggestions menu via click if
#suggestAlways
is true (ac89fb4)