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

Commit

Permalink
Implement requests with partial file text to reduce memory usage for …
Browse files Browse the repository at this point in the history
…large files.

Add large comment to file1.js test file so it will be considered a large file and partial text updates can be tested.
For now, move two failing tests apart so they pass. Partial text updates are notas good a full text updates but save memory.
  • Loading branch information
dloverin committed May 30, 2013
1 parent ae950bd commit cb8a0e9
Show file tree
Hide file tree
Showing 6 changed files with 479 additions and 181 deletions.
9 changes: 9 additions & 0 deletions src/extensions/default/JavaScriptCodeHints/MessageIds.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ define(function (require, exports, module) {
TERN_GET_GUESSES_MSG = "GetGuesses",
TERN_WORKER_READY = "WorkerReady";

// Message parameter constants
var TERN_FILE_INFO_TYPE_PART = "part",
TERN_FILE_INFO_TYPE_FULL = "full",
TERN_FILE_INFO_TYPE_EMPTY = "empty";


exports.TERN_ADD_FILES_MSG = TERN_ADD_FILES_MSG;
exports.TERN_JUMPTODEF_MSG = TERN_JUMPTODEF_MSG;
exports.TERN_COMPLETIONS_MSG = TERN_COMPLETIONS_MSG;
Expand All @@ -48,6 +54,9 @@ define(function (require, exports, module) {
exports.TERN_GET_GUESSES_MSG = TERN_GET_GUESSES_MSG;
exports.TERN_UPDATE_FILE_MSG = TERN_UPDATE_FILE_MSG;
exports.TERN_WORKER_READY = TERN_WORKER_READY;
exports.TERN_FILE_INFO_TYPE_PART = TERN_FILE_INFO_TYPE_PART;
exports.TERN_FILE_INFO_TYPE_FULL = TERN_FILE_INFO_TYPE_FULL;
exports.TERN_FILE_INFO_TYPE_EMPTY = TERN_FILE_INFO_TYPE_EMPTY;
});


Loading

0 comments on commit cb8a0e9

Please sign in to comment.