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

Uncache file codehints when switching projects (#2182) #2197

Merged
merged 1 commit into from
Nov 22, 2012
Merged
Changes from all commits
Commits
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
4 changes: 3 additions & 1 deletion src/extensions/default/HTMLCodeHints/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ define(function (require, exports, module) {
if (!this.cachedHints.query ||
this.cachedHints.query.tag !== query.tag ||
this.cachedHints.query.attrName !== query.attrName ||
this.cachedHints.queryDir !== queryDir) {
this.cachedHints.queryDir !== queryDir ||
this.cachedHints.docDir !== docDir) {

// delete stale cache
this.cachedHints = null;
Expand Down Expand Up @@ -373,6 +374,7 @@ define(function (require, exports, module) {
self.cachedHints.unfiltered = unfiltered;
self.cachedHints.query = query;
self.cachedHints.queryDir = queryDir;
self.cachedHints.docDir = docDir;

// If the editor has not changed, then re-initiate code hints. Cached data
// is still valid for folder even if we're not going to show it now.
Expand Down