Bug 500859 - Eclipse Neon - Content Assist in HTML does not work for linked CSS files
Summary: Eclipse Neon - Content Assist in HTML does not work for linked CSS files
Status: NEW
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.css (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 10
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: wst.css CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2016-09-05 08:18 EDT by Magnus Rinnan Gaarder CLA
Modified: 2020-02-24 00:09 EST (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 Magnus Rinnan Gaarder CLA 2016-09-05 08:18:32 EDT
I created a new Static Web Project, and added a HTML and CSS file.

I linked the CSS files the normal way in the HTML document (<link rel="stylesheet" type="text/css" href="styles.css">).

When trying to add CSS classes to HTML elements, the list of classes from the CSS file does not show up (<div class="...).

Hitting ctrl+space scrolls through "HTML Template Proposals", "HTML Tag Proposals" and "Default Proposals". Again, no proposals from the linked CSS file.

I made sure both the html file and the css file were in the same folder (the default "WebContent" folder).

I am using Eclipse Neon and tried both the "Eclipse for PHP" and "Eclipse for JavaScript and Web Development" releases.

I made sure all the proposal caegories are checked under "Window --> Preferences --> Web --> HTML Files --> Editor --> Content Assist", as well as under "...CSS Files --> Editor --> Content Assist".

This seems to be a rather serious bug, given how basic the Content Assist feature is.


Thank you for your help.
Comment 1 Patrik Suzzi CLA 2016-09-05 11:09:28 EDT
Magnus, thanks for reporting this.

Could you please attach a simple project that we can use to test and fix this bug?

A couple of additional questions, if you have time for them :) 
- Is this not working also in Eclipse JEE Neon?
- Did this use to work in Eclipse JEE Mars?

(moving to sourceediting)
Comment 2 Nitin Dahyabhai CLA 2016-09-06 11:09:36 EDT
Changing to severity enhancement. This has never been implemented; it may be a feature in adopter products or plug-ins built on top of WTP.