Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Fixes "JS Quick Open doesn't recognize functions with multiline arguments" #1085

Merged
merged 13 commits into from
Jun 22, 2012

Conversation

tvoliter
Copy link
Contributor

  • Moves JSUtils.js and related tests into a core Brackets core module
  • QuickOpenJavaScript now shares caching and regex code from JSQuickEdit by using JSUtils

Fixes #924, JS Quick Open doesn't recognize functions with multiline arguments

@jason-sanjose Could you review? I think you are the most familiar with this code.

tvoliter added 4 commits June 19, 2012 17:43
…take2

* origin/master:
  Issue 1072. Use getDocumentForPath instead of getOpenDocumentForPath.
…take2

* origin/master:
  Tweak context menu event handling to support Windows context menu key. In general, anything using with mouse coords for purposes other than menu positioning should use mousedown, while the menu itself should be popped up via contextmenu.
  Update CodeMirror SHA
  Code review comments
  Add "variable" token type to JavaScriptQuickEdit. Update unit tests.
  Filter for valid function expressions
@ghost ghost assigned jasonsanjose Jun 20, 2012
@@ -421,7 +421,7 @@ define(function (require, exports, module) {
PerfUtils.createPerfMeasurement("JSUTILS_REGEXP", "RegExp search for all functions");
PerfUtils.createPerfMeasurement("JSUTILS_END_OFFSET", "Find end offset for a single matched function");

exports._findAllMatchingFunctionsInText = _findAllMatchingFunctionsInText; // For testing only
exports.findAllMatchingFunctionsInText = findAllMatchingFunctionsInText; // For testing only
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove \\ For testing only

@jasonsanjose
Copy link
Member

Finished with initial review. Need to merge with master.

tvoliter added 2 commits June 21, 2012 12:16
…take2

* origin/master:
  now that the working set view handles mousedown instead of click in order to capture left and right clicks, it's necessary to call preventDefault() so the focus is not removed from the editor.
  remove high ascii file
  fix typo
  git munged high ascii in file name, so use only low ascii
  Fix typo
  Update ExtensionLoader require paths to include text plugin. Update InlineImageViewer to use text plugin to load an HTML template.
  Correct showInlineEditor to toggleQuickEdit. Updated all references and ran unit tests.
  Fix SHOW_INLINE_EDITOR command handler to return a promise.
  Clean up Debug menu (issues #977, #1056): - Move JSLint to View menu; Use Tabs to Edit menu - Remove "Experimental" heading - Remove "Close Browsers" command (after discussion w/ Glenn) - underlying NativeApp API not removed since it's still used by unit tests - Reorder remaining Debug menu items - Rename "Reload Window"->"Reload Brackets" for clarity - Rename "New Window"->"New Brackets Window" for clarity - Move JSLint command impl to JSLintUtils - (Left Use Tabs impl in DebugCommandHandlers for now until it has a more natural home)
  Add unit tests for filtering out token types in JavaScript Quick Edit.
  initial set of tests complete
  intermediate checkin for first unit test
  RequireJS text plugin 1.0.8

Conflicts:
	src/extensions/default/JavaScriptQuickEdit/unittests.js
@tvoliter
Copy link
Contributor Author

The merge is a little tricky though I am through most of it. Will have my fixes pushed soon.

tvoliter added 6 commits June 21, 2012 15:52
…take2

* origin/master:
  fix JSLint warning
  add New command back to project context menu
  Fix issues Jason raised in code review.
  don't toggle open folders on right-click
  Code review
  Provide Indent/Unindent in Edit menu.
  close menus on scroll
  Resolve loadStyleSheet with the created link element
  select tree node on right-click
@tvoliter
Copy link
Contributor Author

Code review fixes pushed

@@ -23,27 +23,22 @@


/*jslint vars: true, plusplus: true, devel: true, browser: true, nomen: true, indent: 4, maxerr: 50 */
/*global define, describe, it, xit, expect, beforeEach, afterEach, waitsFor, waitsForDone, runs, $, brackets */
/*global define: false, describe: false, it: false, xit: false, expect: false, beforeEach: false, afterEach: false, waitsFor: false, runs: false, $: false, brackets: false, waitsForDone */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Undo this change. We're taking out the readonly arg here since it defaults to false.

@jasonsanjose
Copy link
Member

A few minor comments before merging. Unit tests pass on OS X 10.7. It's worth doing a smoke test pass too if you get the chance.

@tvoliter
Copy link
Contributor Author

Thanks Jason. Fixes pushed. I ran unit tests and smokes look good as well.

-----Original Message-----
From: Jason San Jose [mailto:reply@reply.github.com]
Sent: Thursday, June 21, 2012 5:02 PM
To: Ty Voliter
Subject: Re: [brackets] Fixes "JS Quick Open doesn't recognize functions with multiline arguments" (#1085)

A few minor comments before merging. Unit tests pass on OS X 10.7. It's worth doing a smoke test pass too if you get the chance.


Reply to this email directly or view it on GitHub:
#1085 (comment)

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quick Open for JS symbol has trouble with single-line functions
2 participants