Bug 458306 - [css] Provide better content assist
Summary: [css] Provide better content assist
Status: RESOLVED FIXED
Alias: None
Product: Orion (Archived)
Classification: ECD
Component: JS Tools (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P2 enhancement (vote)
Target Milestone: 15.0   Edit
Assignee: Curtis Windatt CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on: 459073 473771 473772 508847
Blocks:
  Show dependency tree
 
Reported: 2015-01-23 16:26 EST by Michael Rennie CLA
Modified: 2017-03-20 16:35 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2015-01-23 16:26:54 EST
Now that we have a robust token stream (from bug 454485) we can improve the content assist significantly by providing context-aware proposals.

for example:

h1 {
  color: ^assist here
}

now we could only show rgb, rgba, hsl, hsla and the list of colours rather than everything, since we now know we are completing a color property.
Comment 1 Michael Rennie CLA 2015-02-03 14:22:55 EST
As part of commit: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=ed0a768372ddaa5ff69810d6eda8e17e284af83c

I implemented the new computeProposaals API so we can return computed proposals *and* keyword / template proposals rather than just keyword / template proposals.

That commit also hooks up the CSS assist in HTML file style blocks
Comment 2 Curtis Windatt CLA 2015-07-28 12:15:31 EDT
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=e506fed2e6eded331bf86bd04e7321830874ec21
Added a map of CSS properties with doc/links/css level
Comment 3 Curtis Windatt CLA 2015-07-28 12:45:05 EDT
We should add a link (possibly in the CSS level info of the hover) to http://caniuse.com/#search= or another site that includes browser support info.
Comment 4 Michael Rennie CLA 2017-01-10 15:36:38 EST
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg04002.html
Comment 5 Curtis Windatt CLA 2017-03-09 12:53:09 EST
Reopening for 15.0. The new version of CSSLint has a complete property name list that we can use to improve proposals. It also is a good time to update our AST generation to provide more accurate assist (inside rule vs inside property name vs inside property value), as the AST will also be used for quickfixes to ignore.