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

Commit

Permalink
Close CSS Code Hints after inputting property value
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Gerber committed Feb 6, 2015
1 parent eb7bc01 commit 5f9b347
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/extensions/default/CSSCodeHints/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,13 @@ define(function (require, exports, module) {
selectInitial = true;
}

lastContext = CSSUtils.PROP_NAME;
if (lastContext === CSSUtils.PROP_VALUE) {
// close the session if we're coming from a property value
// see https://github.com/adobe/brackets/issues/9496
return null;
} else {
lastContext = CSSUtils.PROP_NAME;
}
needle = needle.substr(0, this.info.offset);

result = $.map(properties, function (pvalues, pname) {
Expand Down

0 comments on commit 5f9b347

Please sign in to comment.