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

Commit

Permalink
Consider 2,000 lines to be a large file for hints.
Browse files Browse the repository at this point in the history
This is a fix for #4922... only part of Document.js was being processed
because it was considered a "large file" at 250 lines. 250 lines seems
a bit too conservative. We'll want to see if there are complaints about
memory usage and I think we'll also want to experiment a bit with how
we manage Tern.

But, it seems to me that a file the size of Document.js should not be
getting truncated hints.
  • Loading branch information
dangoor committed Oct 2, 2013
1 parent 3f9f891 commit a73b7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/default/JavaScriptCodeHints/ScopeManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ define(function (require, exports, module) {

var MAX_HINTS = 30, // how often to reset the tern server
LARGE_LINE_CHANGE = 100,
LARGE_LINE_COUNT = 250,
LARGE_LINE_COUNT = 2000,
OFFSET_ZERO = {line: 0, ch: 0};

/**
Expand Down

0 comments on commit a73b7c6

Please sign in to comment.