Erik Tierney
08f356c649
Merge pull request #5 from dloverin/cleanup-esprima
...
Remove espirma and related scope info code
2013-03-29 13:28:17 -07:00
dloverin
0746864409
Remove espirma and related scope info code
2013-03-29 16:08:20 -04:00
Erik Tierney
8a6d29fbc4
Merge pull request #4 from dloverin/more-tern
...
More tern
2013-03-29 12:02:07 -07:00
dloverin
9bf0b9f7d2
fix bug where no hints would be provided after '('
2013-03-29 14:53:55 -04:00
dloverin
01f6b2c496
add browser.json to tern environment by default
2013-03-29 14:52:16 -04:00
dloverin
bf7404aa6d
Add alphabetical secondary sort when bringing prefix matches to the top
2013-03-29 14:50:52 -04:00
dloverin
d947130020
Add alphabetical secondary sort when bringing prefix matches to the top
2013-03-29 14:48:50 -04:00
Erik Tierney
9a21f42245
Add license file for requirejs
2013-03-29 13:57:06 -04:00
Erik Tierney
4e6c8f5091
Update to tern with getfile fixes
2013-03-29 08:47:28 -04:00
Erik Tierney
98d05fd296
Update to version of tern with bugfixes to avoid hang when requesting files
2013-03-28 17:05:29 -04:00
dloverin
a0ee374651
fix bug where hints disappear after first key press
2013-03-28 16:25:01 -04:00
dloverin
7ac5459e6a
fix bug where hints disappear on first character
2013-03-28 16:21:24 -04:00
dloverin
7bfaedfa0a
Use tern to sort ids by depth, remove scope info
2013-03-28 15:06:15 -04:00
Bernhard Sirlinger
04d63b1fae
Use language id
2013-03-27 23:48:52 +01:00
Erik Tierney
33579f69d2
roll back tern submodule to avoid hang
2013-03-26 16:08:39 -04:00
dloverin
25069f3133
remove console.log
2013-03-26 15:27:18 -04:00
dloverin
f9bb81f578
merge in changes from eztierney/brackets
2013-03-26 14:02:32 -04:00
Erik Tierney
412dedf919
Move tern server into a web-worker.
...
Had to add requirejs to the extension to make everything work in a web-worker.
Added tern-worker.js, and modified ScopeManager to post messages to the worker to find completions.
2013-03-26 13:22:39 -04:00
dloverin
e4a185543f
change tern query not to sort or filter the results
2013-03-26 13:20:10 -04:00
dloverin
7361589145
Merge remote-tracking branch 'upstream/tern-experiments' into tern-experiments
...
Conflicts:
src/extensions/default/JavaScriptCodeHints/ScopeManager.js
2013-03-26 09:13:32 -04:00
dloverin
f4bcdfc13c
case insensitive matches, middle matching, and use tern rawCompletions request
2013-03-25 16:22:49 -04:00
Erik Tierney
46365a6e2e
Find builtin .json files in new location.
...
Add some logging when we fail to read one of the json files
2013-03-22 14:11:20 -04:00
Erik Tierney
dd6342921e
Update to latest tern - fixes a hang on some files
2013-03-22 13:24:53 -04:00
Erik Tierney
d648572395
Fix problem where hints are displayed before tern has finished computing the completions.
...
This means there is now a delay on the first request for hints.
2013-03-21 16:18:32 -04:00
Erik Tierney
9689288dec
Update to latest tern - at least one infinite loop fixed
2013-03-21 13:27:16 -04:00
Erik Tierney
3c874bf481
Hook up multiple files for ternjs hinting.
2013-03-21 10:48:51 -04:00
Erik Tierney
cb4e0c6e92
Fix up tern completions - format changed slightly
2013-03-20 11:18:55 -04:00
Erik Tierney
4369247c87
Update tern submodule to pick up recent bugfixes
2013-03-20 11:05:39 -04:00
Erik Tierney
832aaa2e14
prototyping hooking up ternjs to power codehints.
...
Currently only works in 1 file
tern does not yet run in a web worker
Code Hinting plugin now uses tern hints for property completions, and falls back to its own heuristics if tern does not have any hints.
2013-03-18 15:14:53 -04:00
Erik Tierney
81ef26d05d
Add submodules for tern and acorn
2013-03-18 13:57:36 -04:00
Dennis Kehrig
4fafc1e207
Merge pull request #3029 from MarkMurphy/markmurphy/issue-2923
...
Fixing issue #2923 - Getting mode from file extension won't always work
2013-03-13 04:14:47 -07:00
Raymond Lim
1a87b4eee1
Merge pull request #3055 from adobe/iwehrman/disable-javascript-hinting-in-html
...
Only provide JS hints for JavaScript files
2013-03-11 09:41:54 -07:00
MarkMurphy
329aceb079
Merge remote-tracking branch 'upstream/master' into markmurphy/issue-2923
2013-03-11 10:12:44 -03:00
Peter Flynn
821b7b2e19
Move status bar code out of EditorManager into a new module. Keeps
...
EditorManager tightly focused on maintaining the set of Editors and gives
the status bar code room to grow for future UI additions.
This removes EditorManager._init() and the manual calls to it from unit
tests, which seem unnecessary. EditorStatusBar._init() is still called on
htmlReady - just not manually called by any unit tests.
Also, change the status bar code to use active editor more consistently
(used to use focused editor sometimes).
2013-03-06 20:09:50 -08:00
Mark Murphy
30e9ca54c1
renamed "getLanguageFromPath" to "getLanguageForPath"
2013-03-06 22:01:24 -04:00
Ian Wehrman
52f3d5a251
Only provide hints for JavaScript files (and not JavaScript within HTML files), and cleanup stale session objects when switching to non-hintable files.
2013-03-06 13:04:16 -08:00
Mark Murphy
f9d9c2f64e
Refactoring "getLanguageFromFilePath" to "getLanguageFromPath". Reverted language.name back to language._name
...
Removed typescript and makefile declarations from languages.json. Will save for a later pull-request.
2013-03-04 21:12:47 -04:00
Mark Murphy
6fee2100fe
Fixing issue #2923 - Getting mode from file extension won't always work
2013-03-03 12:03:37 -04:00
Dennis Kehrig
8793b2afbc
Language now encapsulates its properties and makes them accessible exclusively through getters and setters
...
Adjust the unit tests accordingly
Added documentation to Language's properties
Refined the comment about our special HTML MIME mode
Renamed fileExtensionsToLanguageMap to fileExtensionToLanguageMap
2013-02-27 18:46:22 +01:00
Peter Flynn
5a026ec9ff
Update JS code hints (including unit tests) to work with new language and
...
Editor APIs.
2013-02-26 15:45:23 -08:00
Joel Brandt
1f1d074180
more doc fixups
2013-02-26 09:53:54 -08:00
Joel Brandt
bc8d9d8e2a
more fixes to jsdocs
2013-02-26 06:16:30 -08:00
Ian Wehrman
c8b53c7153
type capitalization typos and additional JSDoc annotations
2013-02-25 17:53:00 -08:00
Ian Wehrman
3d66c59b7e
Typos and clarifications
2013-02-24 12:51:01 -08:00
Ian Wehrman
c0e75bcc7e
Add remaining JSDoc annotations
2013-02-24 12:45:58 -08:00
Ian Wehrman
91487e3a6a
Address more suggestions and bugs from @rlim's code review.
2013-02-21 15:43:55 -08:00
Ian Wehrman
1c52d2eeaf
Use a binary instead of a linear search in findChild and containsPositionImmediate
2013-02-21 15:42:18 -08:00
Ian Wehrman
eb85fb6831
Make Scope.member constant-time instead of linear in the number of declarations.
2013-02-21 11:01:22 -08:00
Ian Wehrman
27b7dce115
Address initial comments and suggestions from code review by @rlim.
2013-02-21 11:01:14 -08:00
Ian Wehrman
9c371fc518
Add built-in global objects, and a TODO to also add built-in global properties and associations.
2013-02-15 14:03:27 -08:00