Skip to content

Commit af82880

Browse files
dloverineztierney
authored andcommitted
Implement requests with partial file text to reduce memory usage for 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.
1 parent 63cc7d1 commit af82880

File tree

6 files changed

+479
-181
lines changed

6 files changed

+479
-181
lines changed

src/extensions/default/JavaScriptCodeHints/MessageIds.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ define(function (require, exports, module) {
3838
TERN_GET_GUESSES_MSG = "GetGuesses",
3939
TERN_WORKER_READY = "WorkerReady";
4040

41+
// Message parameter constants
42+
var TERN_FILE_INFO_TYPE_PART = "part",
43+
TERN_FILE_INFO_TYPE_FULL = "full",
44+
TERN_FILE_INFO_TYPE_EMPTY = "empty";
45+
46+
4147
exports.TERN_ADD_FILES_MSG = TERN_ADD_FILES_MSG;
4248
exports.TERN_JUMPTODEF_MSG = TERN_JUMPTODEF_MSG;
4349
exports.TERN_COMPLETIONS_MSG = TERN_COMPLETIONS_MSG;
@@ -48,6 +54,9 @@ define(function (require, exports, module) {
4854
exports.TERN_GET_GUESSES_MSG = TERN_GET_GUESSES_MSG;
4955
exports.TERN_UPDATE_FILE_MSG = TERN_UPDATE_FILE_MSG;
5056
exports.TERN_WORKER_READY = TERN_WORKER_READY;
57+
exports.TERN_FILE_INFO_TYPE_PART = TERN_FILE_INFO_TYPE_PART;
58+
exports.TERN_FILE_INFO_TYPE_FULL = TERN_FILE_INFO_TYPE_FULL;
59+
exports.TERN_FILE_INFO_TYPE_EMPTY = TERN_FILE_INFO_TYPE_EMPTY;
5160
});
5261

5362

0 commit comments

Comments
 (0)