mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Add support for hinting function types.
When in a function call, display the function type instead of the normal hints. This only happens when nothing has been entered by the user - if the user starts typing, then we switch back to the normal hints based on what the user has typed. This also requires a new version of CodeMirror that brackets has not updated to. The old hints continue to work without the new version, but the function types will only work once codemirror is updated.
This commit is contained in:
1 parent
08f356c649
commit
63c89f4d62
5 files changed
+201
-40
No files matched your search
@@ -27,12 +27,13 @@
|
||||
define(function (require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var MODE_NAME = "javascript",
|
||||
SINGLE_QUOTE = "\'",
|
||||
DOUBLE_QUOTE = "\"",
|
||||
TERN_INIT_MSG = "ternInit",
|
||||
TERN_COMPLETIONS_MSG = "ternCompletions",
|
||||
TERN_GET_FILE_MSG = "ternGetFile";
|
||||
var MODE_NAME = "javascript",
|
||||
SINGLE_QUOTE = "\'",
|
||||
DOUBLE_QUOTE = "\"",
|
||||
TERN_INIT_MSG = "Init",
|
||||
TERN_COMPLETIONS_MSG = "Completions",
|
||||
TERN_GET_FILE_MSG = "GetFile",
|
||||
TERN_CALLED_FUNC_TYPE_MSG = "FunctionType";
|
||||
|
||||
/**
|
||||
* Create a hint token with name value that occurs at the given list of
|
||||
@@ -200,4 +201,5 @@ define(function (require, exports, module) {
|
||||
exports.TERN_COMPLETIONS_MSG = TERN_COMPLETIONS_MSG;
|
||||
exports.TERN_INIT_MSG = TERN_INIT_MSG;
|
||||
exports.TERN_GET_FILE_MSG = TERN_GET_FILE_MSG;
|
||||
exports.TERN_CALLED_FUNC_TYPE_MSG = TERN_CALLED_FUNC_TYPE_MSG;
|
||||
});
|
||||
Reference in new issue
Block a user