You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.
@zaggino I'm guessing that it will always look at the text in the current editor, and thus the prefs only prevent it from going out and loading other files that aren't actually open. But haven't looked at the code to verify...
main.js is the only opened file in the working tree
only method get is used in the main.js so I have no idea, how it could get getSync and hasLatestVersion without reading the excluded ExtensionInfo.js - I would understand if I saw get here and nothing else because this one could be parsed from current file.
I can repro this. It's not even possible that the code hints parsed src/ErrorHandler.js, which is the only one calling ExtensionInfo.getSync(). After removing these lines (and restarting), the code hints were still there. So they must parse ExtensionInfo.js.
What I believe is happening here is that there are two ways in which a file is sent to Tern for generating hints:
The code hints code gathers up nearby files for generating hints
Tern requests a file that it sees as being a dependency because of require calls
The exclusion code is likely keeping the first code path from resulting in hints, but not preventing the second. That behavior doesn't seem right to me.
Doing this in a clone of brackets-git
Create a
.jscodehints
file like this:Now close all Brackets instances, start again, open
![image](https://cloud.githubusercontent.com/assets/1067319/2545960/86cfd60c-b626-11e3-8434-a7422f423f09.png)
main.js
and start typing:I'd expect to see no hints from the file itself...
The text was updated successfully, but these errors were encountered: