WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 194796
182471
Web Inspector: Styles: Control-Space should show completion popover
https://bugs.webkit.org/show_bug.cgi?id=182471
Summary
Web Inspector: Styles: Control-Space should show completion popover
Nikita Vasilyev
Reported
2018-02-04 20:08:20 PST
Control-Space shows completion in just about every modern code editor, including Sublime Text, Chrome DevTools, and Xcode. The new styles sidebar doesn't have a way to show all available completion values for an empty prefix.
Attachments
Patch
(8.35 KB, patch)
2018-02-04 20:27 PST
,
Nikita Vasilyev
bburg
: review-
Details
Formatted Diff
Diff
[Animated GIF] With patch applied
(254.56 KB, image/gif)
2018-02-04 20:32 PST
,
Nikita Vasilyev
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2018-02-04 20:08:58 PST
<
rdar://problem/37222435
>
Nikita Vasilyev
Comment 2
2018-02-04 20:27:04 PST
Created
attachment 333059
[details]
Patch
Nikita Vasilyev
Comment 3
2018-02-04 20:32:01 PST
Created
attachment 333060
[details]
[Animated GIF] With patch applied
Blaze Burg
Comment 4
2018-02-05 11:54:07 PST
Comment on
attachment 333059
[details]
Patch I don't like your changes. Why thread acceptEmptyPrefix everywhere? It would be better to make a different factory method on WI.CSSKeywordCompletions that returns an object with all completions, and use it. This is not possible right now because completionProvider is a function, not a delegate/object. I don't understand the completionProvider design. It seems like this should just be a different delegate that provides completion objects to various widgets. As it's written now, it's just a callback so it can't have different methods (ie., completionsForProperty(), completionsForValue()). Not only does this make the code hard to read (i.e., what does this._completionProvider() actually do?) but it scatters the responsibility for figuring out what type completions to provide. It should be obvious at the calcite.
Blaze Burg
Comment 5
2018-02-05 11:54:47 PST
s/calcite/call site/
Nikita Vasilyev
Comment 6
2018-02-05 12:49:42 PST
(In reply to Brian Burg from
comment #4
)
> Comment on
attachment 333059
[details]
> Patch > > I don't like your changes. Why thread acceptEmptyPrefix everywhere? It would > be better to make a different factory method on WI.CSSKeywordCompletions > that returns an object with all completions, and use it.
How would the new factory method on WI.CSSKeywordCompletions be different from the existing ones?
Blaze Burg
Comment 7
2018-02-05 14:20:53 PST
(In reply to Nikita Vasilyev from
comment #6
)
> (In reply to Brian Burg from
comment #4
) > > Comment on
attachment 333059
[details]
> > Patch > > > > I don't like your changes. Why thread acceptEmptyPrefix everywhere? It would > > be better to make a different factory method on WI.CSSKeywordCompletions > > that returns an object with all completions, and use it. > > How would the new factory method on WI.CSSKeywordCompletions be different > from the existing ones?
Perhaps not a different factory, but a different map chain function that doesn't filter stuff out.
Nikita Vasilyev
Comment 8
2019-03-14 13:56:43 PDT
*** This bug has been marked as a duplicate of
bug 194796
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug