mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Work around issue https://github.com/marijnh/tern/issues/207 by calling Tern.findQueryExpr() and Infer.expressionType() as suggested by marijn. The problem with this fix is it requires a "full" text update with the parameter hint request. Suggested a possible solution in the issue.
The quality of the hints has been much improved and record type annotations can be hinted correctly.
This commit is contained in:
1 parent
d95544d504
commit
0c892a988f
4 files changed
+88
-49
No files matched your search
@@ -373,7 +373,6 @@ define(function (require, exports, module) {
|
||||
if (type === "variable-2" || type === "variable" || type === "property") {
|
||||
nextToken = self.getNextToken(localCursor, true);
|
||||
if (nextToken && nextToken.string === "(") {
|
||||
//nextToken = self.getNextToken(localCursor, true);
|
||||
localLexical = getLexicalState(nextToken);
|
||||
return localLexical;
|
||||
}
|
||||
@@ -426,7 +425,7 @@ define(function (require, exports, module) {
|
||||
lexical = lexical.prev;
|
||||
}
|
||||
|
||||
var col = lexical.info === "call" ? lexical.column : lexical.prev,
|
||||
var col = lexical.info === "call" ? lexical.column : lexical.prev.column,
|
||||
line,
|
||||
e,
|
||||
found;
|
||||
|
||||
Reference in new issue
Block a user