Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

CSS Code Hinting for new CodeHintManager-API #2492

Closed
wants to merge 70 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
ac3a731
added syntax highlighting for *.xsd and *.xsl files, which use xml-sy…
Nov 4, 2012
8606b80
added xml-syntax highlighting to xsd and xsl files
Nov 7, 2012
66ce557
Merge remote-tracking branch 'upstream/master' into csshinting
Nov 7, 2012
097b412
initial commit on CSSCodeHint
Nov 7, 2012
705d060
Added properties-file to repo
Nov 12, 2012
90cebec
Merge remote-tracking branch 'upstream/master' into andrez/csshinting
Nov 12, 2012
d562234
added some more infrastructure for testing in the style of HTMLCodeHint
Nov 12, 2012
da528f2
added needed functions for codehintprovider in csscodehints
Nov 13, 2012
951ff71
added code to determine filecontext like .cssfiles or styletags
Nov 15, 2012
eea3deb
Added more unit tests handling general css hint features.
Nov 18, 2012
40a5f6a
Implemented search for what has been typed so far.
Nov 18, 2012
186b84b
rearranged tests around mocks and added suites for handleSelects and …
Nov 18, 2012
5032257
restructured getQueryInfo for better further development
Nov 18, 2012
189680d
minor typos
Nov 18, 2012
ba820b8
added more unittests with regards to style-tags
Nov 19, 2012
d09cb15
added whitespace to set of keys to trigger hints
Nov 19, 2012
24c760b
added unittests for attributes values
Nov 20, 2012
e9e6735
first early implementation for attrvalues (no handleselect yet)
Nov 20, 2012
3cf28ed
disable handleSelect until a proper concept is developed and the rest…
Nov 20, 2012
bc63e60
added files for quicktesting without changing folders (will be remove…
Nov 20, 2012
5305648
corrected typo that caused the document not to be a correct htmldocum…
Nov 20, 2012
ca049a5
(temporarily) disabled the unittests for handleSelects
Nov 20, 2012
45146a6
added further csscontexttest to determine whether the cursor is reall…
Nov 20, 2012
7a0defc
added unittests for handleSelect and reworked a test to describe a pr…
Nov 25, 2012
184f48e
implemented handleSelect based on getQueryInfo
Nov 25, 2012
a60c0be
added unittest for handleSelects directly after a (semi-)colon
Nov 25, 2012
15e1b11
added code to fix wrong behaviour when the cursor was next to a (semi…
Nov 25, 2012
a49964c
added colon to the list of special chars for exclusion in handleSelect
Nov 25, 2012
8b829a9
tidied up code to catch all jslint errors in main.js
Nov 26, 2012
db7886f
changed csscontext-analysis to only use getModeForSelection (tipp fro…
Nov 26, 2012
7e34c6a
minor tidy-up of code in getQueryInfo
Nov 26, 2012
ed8eb8c
tidy up unit tests
Nov 26, 2012
ce73c5e
added unittest from other branch (which was wrongly added in this bra…
Nov 28, 2012
77e4b73
Merge remote-tracking branch 'upstream/master' into andrez/csshinting
Nov 28, 2012
0ecb2fb
improved getQueryInfo to better check differentiate between at-rules …
Nov 28, 2012
3827239
added some unittests to describe more scanrios for handleSelect which…
Nov 28, 2012
e9bd4fe
added a another (slightly different) test for handleSelect (2 out of …
Nov 28, 2012
93f83e6
added unittest for handleSelect with inproper input
Nov 30, 2012
7036ae7
reordered some code in getQueryInfo to resemble normal behaviour bett…
Nov 30, 2012
3862911
added minor css to testfile
Nov 30, 2012
ab89840
added code to let hintlist open if property was entered, so possible …
Nov 30, 2012
c2347c4
Implement registerHintProvider api with extra parameters suggested by…
RaymondLim Dec 4, 2012
676ca72
Putting back shouldShowHintsOnKey api since JS code hinting Ian is wo…
RaymondLim Dec 5, 2012
53c1d94
Correct some mistakes in jsDoc.
RaymondLim Dec 6, 2012
ea97d4e
Add one more code hints extension api to let the provider decide on t…
RaymondLim Dec 6, 2012
c099f5e
Use a local variable to avoid modifying the parameter.
RaymondLim Dec 6, 2012
ba32cb5
modeName sounds better.
RaymondLim Dec 6, 2012
44617d7
Merge remote-tracking branch 'upstream/rlim/new-code-hints-manager' i…
Dec 14, 2012
c527f9e
merged new CHMapi and made csscodehint working again
Dec 14, 2012
b0645a6
merged with upstream/master
Jan 5, 2013
deca1e1
changing csshinting to new CHMapi (code not stable right now)
Jan 5, 2013
4fcf4ec
further implemented hasHints, getHints, (todo: insertHints) - still n…
Jan 5, 2013
a071c33
integrated insertHints in main.js
Jan 5, 2013
a4e26e4
refactored unittests to use new methods
Jan 5, 2013
1d17ea1
removed unneccesary (old) code
Jan 5, 2013
147d0bc
added more triggerkeys and removed unused variables in hasHints/getQu…
Jan 5, 2013
47dc095
added space to triggerkeys, but excluded the initialSelection for tha…
Jan 6, 2013
00ddb54
fixing unittests, so that they validate again
Jan 8, 2013
20ffb27
fixed remaining (failed) unittests
Jan 8, 2013
3522aac
Merge remote-tracking branch 'upstream/master' into andrez/csscodehin…
Jan 8, 2013
d7381a9
changed the triggerKeys to primary and secondary, as well removed unn…
Jan 8, 2013
e7243a2
removed quicktesting from repo
Jan 8, 2013
f37b6c2
commented out the logging of the cssutils.info
Jan 8, 2013
ea8d5d0
Merge remote-tracking branch 'upstream/master' into andrez/csscodehin…
Jan 8, 2013
cad4531
reverted CHM and htmlhinting.main.js to upstream/master
Jan 8, 2013
a1ae0a4
Merge remote-tracking branch 'upstream/master' into andrez/csscodehin…
Jan 8, 2013
c7b5504
removed xsl/xml highlighting - only csscodehinting-related files changed
Jan 8, 2013
d37f9ea
reset .gitignore
Jan 8, 2013
719e739
added defaultcomments to functions
Jan 8, 2013
2c3e786
removed unsused var
Jan 8, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
187 changes: 187 additions & 0 deletions src/extensions/dev/CSSCodeHints/CSSAttributes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
{
"align-content": {"values": ["center", "flex-end", "flex-start", "space-around", "space-between", "stretch"]},
"align-items": {"values": ["baseline", "center", "flex-end", "flex-start", "stretch"]},
"align-self": {"values": ["auto", "baseline", "center", "flex-end", "flex-start", "stretch"]},
"animation": {"values": []},
"animation-delay": {"values": []},
"animation-direction": {"values": ["alternate", "alternate-reverse", "normal", "reverse"]},
"animation-duration": {"values": []},
"animation-fill-mode": {"values": ["backwards", "both", "forwards", "none"]},
"animation-iteration-count": {"values": []},
"animation-name": {"values": ["none"]},
"animation-play-state": {"values": ["paused", "running"]},
"animation-timing-function": {"values": ["cubic-bezier()", "ease", "ease-in", "ease-in-out", "ease-out", "linear", "step-end", "step-start", "steps()"]},
"backface-visibility": {"values": ["hidden", "visible"]},
"background": {"values": []},
"background-attachment": {"values": ["fixed", "local", "scroll", "inherit"]},
"background-clip": {"values": ["border-box", "content-box", "padding-box", "inherit"]},
"background-color": {"values": ["currentColor", "transparent", "inherit"]},
"background-image": {"values": ["image()", "linear-gradient()", "radial-gradient()", "repeating-linear-gradient()", "repeating-radial-gradient()"]},
"background-origin": {"values": ["border-box", "content-box", "padding-box", "inherit"]},
"background-position": {"values": ["left", "center", "right", "bottom", "top"]},
"background-repeat": {"values": ["no-repeat", "repeat", "repeat-x", "repeat-y", "round", "space"]},
"background-size": {"values": ["auto", "contain", "cover"]},
"border": {"values": []},
"border-collapse": {"values": ["collapse", "separate", "inherit"]},
"border-color": {"values": ["currentColor", "transparent", "inherit"]},
"border-spacing": {"values": ["inherit"]},
"border-style": {"values": ["dashed", "dotted", "double", "groove", "hidden", "inset", "none", "outset", "ridge", "solid", "inherit"]},
"border-bottom": {"values": []},
"border-bottom-color": {"values": ["currentColor", "transparent", "inherit"]},
"border-bottom-left-radius": {"values": []},
"border-bottom-right-radius": {"values": []},
"border-bottom-style": {"values": ["dashed", "dotted", "double", "groove", "hidden", "inset", "none", "outset", "ridge", "solid", "inherit"]},
"border-bottom-width": {"values": ["medium", "thin", "thick", "inherit"]},
"border-image": {"values": []},
"border-image-outset": {"values": []},
"border-image-slice": {"values": []},
"border-image-source": {"values": []},
"border-image-repeat": {"values": ["repeat", "round", "space", "stretch"]},
"border-image-width": {"values": ["auto"]},
"border-left": {"values": []},
"border-left-color": {"values": ["currentColor", "transparent", "inherit"]},
"border-left-style": {"values": ["dashed", "dotted", "double", "groove", "hidden", "inset", "none", "outset", "ridge", "solid", "inherit"]},
"border-left-width": {"values": ["medium", "thin", "thick", "inherit"]},
"border-radius": {"values": []},
"border-right": {"values": []},
"border-right-color": {"values": ["currentColor", "transparent", "inherit"]},
"border-right-style": {"values": ["dashed", "dotted", "double", "groove", "hidden", "inset", "none", "outset", "ridge", "solid", "inherit"]},
"border-right-width": {"values": ["medium", "thin", "thick", "inherit"]},
"border-top": {"values": []},
"border-top-color": {"values": ["currentColor", "transparent", "inherit"]},
"border-top-left-radius": {"values": []},
"border-top-right-radius": {"values": []},
"border-top-style": {"values": ["dashed", "dotted", "double", "groove", "hidden", "inset", "none", "outset", "ridge", "solid", "inherit"]},
"border-top-width": {"values": ["medium", "thin", "thick", "inherit"]},
"box-decoration-break": {"values": []},
"box-shadow": {"values": []},
"box-sizing": {"values": ["border-box", "content-box", "padding-box", "inherit"]},
"bottom": {"values": []},
"break-after": {"values": ["always", "auto", "avoid", "avoid-column", "avoid-page", "column", "left", "page", "right"]},
"break-before": {"values": ["always", "auto", "avoid", "avoid-column", "avoid-page", "column", "left", "page", "right"]},
"break-inside": {"values": ["auto", "avoid", "avoid-column", "avoid-page"]},
"caption-side": {"values": ["bottom", "top", "inherit"]},
"clear": {"values": ["both", "left", "none", "right", "inherit"]},
"clip": {"values": ["auto", "inherit"]},
"color": {"values": []},
"columns": {"values": []},
"column-count": {"values": []},
"column-fill": {"values": ["auto", "balance"]},
"column-gap": {"values": ["normal"]},
"column-rule": {"values": []},
"column-rule-color": {"values": ["currentColor"]},
"column-rule-style": {"values": ["dashed", "dotted", "double", "groove", "hidden", "inset", "none", "outset", "ridge", "solid", "inherit"]},
"column-rule-width": {"values": ["medium", "thin", "thick", "inherit"]},
"column-span": {"values": ["all", "none"]},
"column-width": {"values": ["auto", "inherit"]},
"content": {"values": ["attr()", "close-quote", "no-close-quote", "no-open-quote", "normal", "none", "open-quote", "inherit"]},
"counter-increment": {"values": ["none", "inherit"]},
"counter-reset": {"values": ["none", "inherit"]},
"cursor": {"values": ["auto", "crosshair", "e-resize", "default", "help", "move", "n-resize", "ne-resize", "nw-resize", "pointer", "progress", "s-resize", "se-resize", "sw-resize", "text", "w-resize", "wait", "inherit"]},
"direction": {"values": ["ltr", "rtl", "inherit"]},
"display": {"values": ["block", "flex", "inline", "inline-block", "inline-flex", "inline-table", "list-item", "none", "table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row", "table-row-group", "inherit"]},
"empty-cells": {"values": ["hide", "show", "inherit"]},
"flex": {"values": ["none"]},
"flex-basis": {"values": []},
"flex-direction": {"values": ["column", "column-reverse", "row", "row-reverse"]},
"flex-flow": {"values": ["column", "column-reverse", "nowrap", "row", "row-reverse", "wrap", "wrap-reverse"]},
"flex-grow": {"values": []},
"flex-shrink": {"values": []},
"flex-wrap": {"values": ["nowrap", "wrap", "wrap-reverse"]},
"float": {"values": ["left", "none", "inherit"]},
"font": {"values": []},
"font-feature-settings": {"values": []},
"font-kerning": {"values": ["auto", "none", "normal"]},
"font-language-override": {"values": ["normal"]},
"font-size": {"values": []},
"font-size-adjust": {"values": ["auto", "none"]},
"font-stretch": {"values": ["condensed", "expanded", "extra-condensed", "extra-expanded", "normal", "semi-condensed", "semi-expanded", "ultra-condensed", "ultra-expanded"]},
"font-style": {"values": ["italic", "normal", "oblique", "inherit"]},
"font-synthesis": {"values": ["none", "style", "weight"]},
"font-variant": {"values": ["normal", "small-caps", "inherit"]},
"font-weight": {"values": ["bold", "bolder", "lighter", "normal", "100", "200", "300", "400", "500", "600", "700", "800", "900", "inherit"]},
"height": {"values": ["auto", "inherit"]},
"hyphens": {"values": ["auto", "manual", "none"]},
"image-orientation": {"values": []},
"image-resolution": {"values": ["from-image", "snap"]},
"justify-content": {"values": ["center", "flex-end", "flex-start", "space-around", "space-between"]},
"left": {"values": ["auto", "inherit"]},
"letter-spacing": {"values": ["normal", "inherit"]},
"line-height": {"values": ["normal", "inherit"]},
"list-style": {"values": []},
"list-style-image": {"values": []},
"list-style-position": {"values": ["inside", "outside", "inherit"]},
"list-style-type": {"values": ["armenian", "circle", "decimal", "decimal-leading-zero", "disc", "georgian", "lower-alpha", "lower-greek", "lower-latin", "lower-roman", "none", "square", "upper-alpha", "upper-latin", "upper-roman", "inherit"]},
"margin": {"values": []},
"margin-bottom": {"values": []},
"margin-left": {"values": []},
"margin-right": {"values": []},
"margin-top": {"values": []},
"max-height": {"values": ["none", "inherit"]},
"max-width": {"values": ["none", "inherit"]},
"min-height": {"values": ["inherit"]},
"min-width": {"values": ["inherit"]},
"object-fit": {"values": ["contain", "cover", "fill", "none", "scale-down"]},
"object-position": {"values": ["left", "center", "right", "bottom", "top"]},
"order": {"values": []},
"orphans": {"values": ["inherit"]},
"outline": {"values": []},
"outline-color": {"values": ["invert", "inherit"]},
"outline-offset": {"values": ["inherit"]},
"outline-style": {"values": ["dashed", "dotted", "double", "groove", "hidden", "inset", "none", "outset", "ridge", "solid", "inherit"]},
"outline-width": {"values": ["medium", "thin", "thick", "inherit"]},
"overflow": {"values": ["auto", "hidden", "scroll", "visible", "inherit"]},
"overflow-x": {"values": ["auto", "hidden", "scroll", "visible", "inherit"]},
"overflow-y": {"values": ["auto", "hidden", "scroll", "visible", "inherit"]},
"padding": {"values": []},
"padding-bottom": {"values": []},
"padding-left": {"values": []},
"padding-right": {"values": []},
"padding-top": {"values": []},
"page-break-after": {"values": ["always", "auto", "avoid", "left", "right", "inherit"]},
"page-break-before": {"values": ["always", "auto", "avoid", "left", "right", "inherit"]},
"page-break-inside": {"values": ["auto", "avoid", "inherit"]},
"perspective": {"values": ["none"]},
"perspective-origin": {"values": ["bottom", "center", "left", "right", "top"]},
"position": {"values": ["absolute", "fixed", "relative", "static", "sticky", "inherit"]},
"quotes": {"values": ["none", "inherit"]},
"resize": {"values": ["both", "horizontal", "none", "vertical", "inherit"]},
"right": {"values": ["auto", "inherit"]},
"src": {"values": []},
"table-layout": {"values": ["auto", "fixed", "inherit"]},
"text-align": {"values": ["center", "left", "justify", "right", "inherit"]},
"text-align-last": {"values": ["center", "left", "justify", "right", "inherit"]},
"text-decoration": {"values": ["line-through", "none", "overline", "underline", "inherit"]},
"text-decoration-color": {"values": ["currentColor"]},
"text-decoration-line": {"values": ["line-through", "none", "overline", "underline"]},
"text-decoration-skip": {"values": ["edges", "ink", "none", "objects", "spaces"]},
"text-decoration-style": {"values": ["dashed", "dotted", "double", "solid", "wavy"]},
"text-emphasis": {"values": []},
"text-emphasis-color": {"values": ["currentColor"]},
"text-emphasis-position": {"values": ["above", "below", "left", "right"]},
"text-emphasis-style": {"values": ["circle", "dot", "double-circle", "filled", "none", "open", "sesame", "triangle"]},
"text-indent": {"values": []},
"text-overflow": {"values": ["clip", "ellipsis", "inherit"]},
"text-shadow": {"values": []},
"text-transform": {"values": ["capitalize", "full-width", "lowercase", "none", "uppercase", "inherit"]},
"text-underline-position": {"values": ["alphabetic", "auto", "below", "left", "right"]},
"top": {"values": ["auto", "inherit"]},
"transform": {"values": ["matrix()", "matrix3d()", "perspective()", "rotate()", "rotate3d()", "rotateX()", "rotateY()", "rotateZ()", "scale()", "scale3d()", "scaleX()", "scaleY()", "scaleZ()", "skewX()", "skewY()", "translate()", "translate3d()", "translateX()", "translateY()", "translateZ()"]},
"transform-origin": {"values": ["bottom", "center", "left", "right", "top"]},
"transform-style": {"values": ["flat", "preserve-3d"]},
"transition": {"values": []},
"transition-delay": {"values": []},
"transition-duration": {"values": []},
"transition-property": {"values": ["all", "none"]},
"transition-timing-function": {"values": ["cubic-bezier()", "ease", "ease-in", "ease-in-out", "ease-out", "linear", "step-end", "step-start", "steps()"]},
"unicode-bidi": {"values": ["bidi-override", "embed", "normal", "inherit"]},
"unicode-range": {"values": []},
"vertical-align": {"values": ["baseline", "bottom", "middle", "sub", "super", "text-bottom", "text-top", "top", "inherit"]},
"visibility": {"values": ["collapse", "hidden", "visible", "inherit"]},
"white-space": {"values": ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "inherit"]},
"widows": {"values": []},
"width": {"values": ["auto", "inherit"]},
"word-spacing": {"values": []},
"word-wrap": {"values": ["break-word", "normal"]},
"z-index": {"values": ["auto", "inherit"]}
}
Loading