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 Jul 23, 2016
1 parent 361e81d commit 7f740f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/extensions/default/CSSCodeHints/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,12 @@ define(function (require, exports, module) {
selectInitial = true;
}

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;
}

lastContext = CSSUtils.PROP_NAME;
needle = needle.substr(0, this.info.offset);

Expand Down

0 comments on commit 7f740f6

Please sign in to comment.