This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 461222 - Break dependency from edit.js on cssContentAssist
Summary: Break dependency from edit.js on cssContentAssist
Status: RESOLVED FIXED
Alias: None
Product: Orion (Archived)
Classification: ECD
Component: Editor (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 9.0   Edit
Assignee: Michael Rennie CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-02 12:06 EST by Mark Macdonald CLA
Modified: 2015-03-05 16:45 EST (History)
3 users (show)

See Also:


Attachments
proposed fix (4.45 KB, patch)
2015-03-04 13:17 EST, Michael Rennie CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Macdonald CLA 2015-03-02 12:06:35 EST
This dependency is problematic:

 orion/editor/edit  -> cssContentAssist  ->  csslint

It means that every page that uses the editor -- such as edit.js, settings.js, and compareView.js -- now pulls in csslint. CSSLint is huge: 300KB unminified.

This feature should not be compiled in by default; the consumer should have to load cssContentAssist.js themselves and register it with the editor.
Comment 1 Michael Rennie CLA 2015-03-04 13:17:58 EST
Created attachment 251298 [details]
proposed fix

Here is a patch breaking the dependency. I also removes a bunch of unused params, two of them being for the CSS and HTML syntax requires.

Mark mentioned removing those might be problematic (but from our testing nothing seems broken).

Grant, Silenio, do either of you know if it is 'safe' to remove those unused requires?
Comment 2 Grant Gayed CLA 2015-03-04 14:45:51 EST
I think it should be fine for them to go, verifying that styling of HTML and CSS still works should be an adequate test.
Comment 4 Mark Macdonald CLA 2015-03-05 16:45:34 EST
I've created a new wiki page that documents API changes by release, and mentioned this change there

https://wiki.eclipse.org/Orion/API_Changelog