-
Notifications
You must be signed in to change notification settings - Fork 759
Conversation
5d8072b
to
d391773
Compare
assets/panel/debugger.properties
Outdated
@@ -24,6 +24,11 @@ copySource.accesskey=y | |||
copySourceUrl=Copy Source Url | |||
copySourceUrl.accesskey=u | |||
|
|||
# LOCALIZATION NOTE (copyFunctionUrl): This is the text that appears in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong string reference and comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again this was not fixed before merging @jasonLaster
assets/panel/debugger.properties
Outdated
# LOCALIZATION NOTE (copyFunctionUrl): This is the text that appears in the | ||
# context menu to copy the source URL of file open. | ||
copyFunction=Copy Function | ||
copyFunction.accesskey=f |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
F
d391773
to
9e8ef1d
Compare
Codecov Report
@@ Coverage Diff @@
## master #3970 +/- ##
==========================================
+ Coverage 54.91% 55.03% +0.12%
==========================================
Files 131 132 +1
Lines 5084 5111 +27
Branches 1048 1050 +2
==========================================
+ Hits 2792 2813 +21
- Misses 2292 2298 +6
Continue to review full report at Codecov.
|
LGTM! will test! |
src/components/Editor/EditorMenu.js
Outdated
@@ -1,6 +1,7 @@ | |||
import { showMenu } from "devtools-launchpad"; | |||
import { isOriginalId } from "devtools-source-map"; | |||
import { copyToTheClipboard } from "../../utils/clipboard"; | |||
import { getClosestFunction } from "../../utils/breakpoint"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not seem to be used
src/utils/breakpoint/index.js
Outdated
export { | ||
getASTLocation, | ||
findScopeByName, | ||
getClosestFunction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not used any where
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
assets/panel/debugger.properties
Outdated
@@ -24,6 +24,11 @@ copySource.accesskey=y | |||
copySourceUrl=Copy Source Url | |||
copySourceUrl.accesskey=u | |||
|
|||
# LOCALIZATION NOTE (copyFunction): This is the text that appears in the | |||
# context menu to copy the source URL of file open. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment is still wrong…
assets/panel/debugger.properties
Outdated
@@ -24,6 +24,11 @@ copySource.accesskey=y | |||
copySourceUrl=Copy Source Url | |||
copySourceUrl.accesskey=u | |||
|
|||
# LOCALIZATION NOTE (copyFunction): This is the text that appears in the | |||
# context menu to copy the source URL of file open. | |||
copyFunction=Copy Function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copyFunction -> copyFunction.label
Small suggestion: "flash" the entire function as a way to signal to the user the function was copied? Some sort of feedback would be awesome. |
@darkwing lets do that as a follow up. We have some great flash technology :P |
87c0e8b
to
3f298c1
Compare
@@ -24,6 +24,11 @@ copySource.accesskey=y | |||
copySourceUrl=Copy Source URL | |||
copySourceUrl.accesskey=u | |||
|
|||
# LOCALIZATION NOTE (copyFunction): This is the text that appears in the | |||
# context menu to copy the function the user selected | |||
copyFunction.label=Copy Function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@flodolo sorry, that's embarrassing :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now, and it happens ;-)
i guess this will need some more love... |
3f298c1
to
9bd627a
Compare
This is good to go IMO. I agree the flash can come later. |
9bd627a
to
18d3748
Compare
Summary of Changes
Small fun feature for copying a function.
Test Plan
unit tests
Screenshots/Videos (OPTIONAL)