Commit Graph
400 Commits
Author SHA1 Message Date
Peter Flynn ba1427c00c Fix language switcher persistence to work when no custom file extension
mappings are set yet - don't leave default value of pref undefined.

Clarify two other cases of definePreference() calls where we really *do*
want the default value to be undefined by passing it explicitly.

Also: add TODOs for unused Session arg in JS code hints.
2014-08-05 23:38:04 -07:00
Peter Flynn 23a3e91eb5 Code review fixes:
* Use .hasClass() instead of .is() where possible
* More succinct math operators in DropdownEventHandler._tryToSelect()
* Document language-change events
* Improve some more JS code hints docs
2014-08-05 02:45:45 -07:00
Peter Flynn cc4704350a Cleanups to status bar language-switcher:
* Make LanguageManager the official public API that is used to set per-file
overrides, rather than proxying through Document objects - remove Document.setLanguageOverride()
* Clear path overrides when switching projects, so it's more obvious that
it's not something that gets persisted across sessions
* Simplify how JS Code Hints listen for language updates: remove dependency
on "currentDocumentLanguageChanged" event; remove unneeded extra 'if' tests
2014-07-17 14:12:46 -07:00
Peter Flynn dce3176aba Merge remote-tracking branch 'origin/master' into pflynn/JakeStoeffler-languageselector-updated
* origin/master: (66 commits)
  updating 'Last translated' SHA to reflect last pull request
  Use XML highlighting for .xaml files
  Wordsmithing (@njx)
  Update Getting Started (How to change the project, why?)
  Update CM to the latest
  Easier notation
  Revert change to non-translation file
  Change Copyright year in strings.js
  Updated by ALF automation.
  Update Sha
  German translation (Sprint 41)
  modalbar already showing, adjust for old height
  Fixes after Review
  Tweak the Command constant for the new command which doesn't appear on the file menu.
  alf updates for release branch
  Changes after review.
  Small fixes
  Spanish translations for Release 0.41
  Updated by ALF automation.
  isolated fix for changing height of modal bar with filter picker
  ...
2014-07-10 15:43:34 -07:00
Arzhan Kinzhalin 6f4db4bf65 Fix editor change when the last editor is closed. 2014-06-20 13:14:08 -03:00
Arzhan "kai" Kinzhalin 5701d5c927 Handler inline editor's language changed correctly. 2014-06-19 17:09:32 -03:00
Kevin Dangoor 0d3603e627 Merge pull request #8155 from adobe/randy/update-tern
JS Code Hints Crash Preventer
2014-06-19 15:21:21 -04:00
Kevin Dangoor 51939a5824 Update Acorn to 0.6.0 2014-06-19 14:38:59 -04:00
Arzhan "kai" Kinzhalin 3df7680560 Merge remote-tracking branch 'upstream/master' into pflynn/JakeStoeffler-languageselector-updated
Conflicts:
	src/styles/brackets_patterns_override.less
2014-06-19 15:25:08 -03:00
Kevin Dangoor dd7c53ad82 Adds jscodehints.inferenceTimeout preference 2014-06-19 13:42:30 -04:00
Randy Edmunds 9552ae8af7 Fix test for new DOM values 2014-06-18 16:22:58 -07:00
Randy Edmunds 239d003223 fix error when checking for exclusions 2014-06-17 18:04:35 -07:00
Randy Edmunds 7da2d62a83 Update Tern; implement timeout 2014-06-17 14:53:13 -07:00
Kevin Dangoor 67fb320f17 fix linting (JShint) problem 2014-05-05 13:18:57 -04:00
Kevin Dangoor 45a9b6fc07 Switch to glob for defaultExclusions, per review feedback. 2014-05-05 08:26:51 -04:00
Kevin Dangoor d8f4bbf465 Implement jscodehints.defaultExclusions preference.
We've had a number of people report problems with Ionic in their projects.
Tern appears to have an issue with the minified Ionic files. I had planned
to add default exclusions so that we could quickly solve pain like this
and this problem appeared to be a good candidate. The repro steps
[reported here](https://github.com/adobe/brackets/issues/7262#issuecomment-41851396)
are fixed with this change.
2014-05-02 22:49:45 -04:00
Arzhan Kinzhalin 0ed7853c9f Merge remote-tracking branch 'upstream/master' into pflynn/JakeStoeffler-languageselector-updated 2014-05-02 11:17:32 -03:00
Arzhan Kinzhalin 33a9a4757c Address review comments. 2014-05-01 12:07:49 -03:00
Kevin Dangoor c55a530d3b Add comment with link to #7646 2014-04-29 09:45:11 -04:00
Kevin Dangoor 9a8647e67d Turn off test temporarily 2014-04-29 09:40:08 -04:00
Arzhan Kinzhalin 331ccd3527 Merge remote-tracking branch 'upstream/master' into pflynn/JakeStoeffler-languageselector-updated
WARNING: defunc commit -- cyclical dependency

Conflicts:
	src/editor/EditorStatusBar.js
	src/language/LanguageManager.js
2014-04-28 18:45:03 -03:00
Jeff Booher c96b3df90a fix rte and error found during self check 2014-04-07 16:47:36 -07:00
Jeff Booher 9a5088c4e8 found a few more... 2014-04-07 16:43:22 -07:00
Jeff Booher b4e0dad4f9 respond to comments 2014-04-07 16:37:04 -07:00
Arzhan Kinzhalin 193bfa8c26 Option to check the doc's language by default.
LanguageManager.getLanguageForPath is checking the document associated
with the path if there's any open for language overrides. It can be
optionally turned off (e.g. Document language updates).
2014-04-02 14:41:25 -03:00
Peter Flynn 7b32bb1d54 Fix several problems with the Jump to Definition extensibility API:
- JS impl would always crash on non-JS code, blocking any other provider
from responding
- Provider was not called with the args the docs described
- Other errors in docs
2014-03-17 23:37:24 -07:00
Arzhan Kinzhalin b0a982ed43 Merge remote-tracking branch 'upstream/master' into pflynn/JakeStoeffler-languageselector-updated 2014-03-13 15:30:44 -03:00
Arzhan Kinzhalin fe057c6e25 JavaScript code hints respond to language change. 2014-03-13 15:29:56 -03:00
Narciso Jaramillo 7e41cdea6f Merge branch 'master' into cmv4 2014-03-11 15:59:38 -07:00
Ingo Richter b856768671 - fix for https://github.com/adobe/brackets/issues/6931
The fix is to cutoff the leading slash on a module name.
Test is not working due to issues with the ProjectManager and the missing projectRoot
2014-02-27 18:21:32 -08:00
Narciso Jaramillo ddcc8064fa Code review comment fix 2014-02-21 16:18:02 -08:00
Narciso Jaramillo 87d7bb9e9f Change Document 'change' event to send an array of change records rather than a linked list, matching v4 'changes' event 2014-02-21 12:59:56 -08:00
Narciso Jaramillo 102f666254 Fix ScopeManager to require CodeMirror 2014-02-13 14:37:11 -08:00
Randy Edmunds 21bea9d143 refactor into separate events 2014-02-07 16:46:34 -08:00
Narciso Jaramillo 0e0f4909f1 Fix up submodules to match master 2014-01-27 18:29:32 -08:00
Narciso Jaramillo dee49c727b Merge from master 2014-01-24 15:59:18 -08:00
Arzhan Kinzhalin 6262d4fa3a Fix #6142. Check for the argument name to be falsy
In some cases (see #6142 for a minimized testcase), the argument name is
returned as null instead of undefined as the code expects. This fix
simply changes to check for name to be falsy (in which case it will be
assinged a generated name).
2013-11-29 15:33:52 -03:00
Raymond Lim 14cca49bb8 Merge pull request #6064 from adobe/dangoor/6018-codehinthang
Update Tern and Acorn to the latest.
2013-11-27 12:02:38 -08:00
Ian Wehrman ce5aabc045 make isExcludedFiles work right when the preferences do not specify any exclusions 2013-11-20 14:55:13 -08:00
Ian Wehrman fff10de605 Replace the directory dot-file exclusion test; move the language test within isFileExcluded for wider coverage 2013-11-20 14:38:12 -08:00
Kevin Dangoor 0281369fe0 Filter out dotfiles 2013-11-20 17:03:07 -05:00
Kevin Dangoor 7663609a36 Update Tern and Acorn to the latest.
This fixes #6018 and possibly others.
2013-11-20 11:24:50 -05:00
Kevin Dangoor 0bb8c0c155 Guard against possible errors in ScopeManager.
These errors don't seem likely in normal use, but we're seeing intermittent failure
on the test machine which could be related.
2013-11-13 10:27:16 -05:00
Kevin Dangoor 3919761153 Merge pull request #5917 from adobe/iwehrman/simplify-js-code-hints-traversals
Simplify some JS code hints filesystem traversals
2013-11-12 06:45:36 -08:00
Raymond Lim 06b4012046 Merge pull request #5918 from adobe/larz/function-hint-container
Function hint tweak.
2013-11-11 14:56:12 -08:00
Ian Wehrman ff7a77379e Remove HintUtils.splitPath 2013-11-11 14:44:41 -08:00
Kevin Dangoor 4c588d32b9 Simplify setConfig in tern-worker by just using the entire new config object. 2013-11-11 15:57:40 -05:00
Kevin Dangoor 3f2ad065a0 Minor fixes in code hint test/debug code to address review comments. 2013-11-11 15:44:04 -05:00
Lawrence Hsu fa113e5270 Function hint tweak. 2013-11-08 19:21:30 -08:00
Ian Wehrman d87b3fc207 Remove redundant filesystem traversals 2013-11-08 17:17:35 -08:00