forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
REPL Smart Shift+Enter and Dynamic Smart Cursor #21779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
anthonykim1
merged 82 commits into
microsoft:main
from
anthonykim1:REPL-smart-selection
Oct 10, 2023
Merged
Changes from all commits
Commits
Show all changes
82 commits
Select commit
Hold shift + click to select a range
0577c92
receive file content from ts, parse, collect in py
anthonykim1 73a38c6
collect top level and comment out potential cursor
anthonykim1 02a15e6
handle both highlight and non highlight
anthonykim1 3d91423
remove trailing newline and add test cases
anthonykim1 f594c85
delete trailing new line and start testing
anthonykim1 0cacc35
delete trailing new line and add new tests
anthonykim1 fbe3d5c
fix tests and add printf string test
anthonykim1 3401e70
add simple list comprehension test
anthonykim1 ca16633
cherry pick exact statements and pickup inside def
anthonykim1 7b2769e
fix multiple statements in same line
anthonykim1 6b20b3c
dynamic cursor movement
anthonykim1 74eb85a
fix broken prev normalization
anthonykim1 8cfe2d5
start setting up experiment for smart send
anthonykim1 6dd2440
make dynamic cursor movement to move to EOL
anthonykim1 262ac48
fix broken helper.test.ts
anthonykim1 f63fcc4
fix linting complaints
anthonykim1 0caad7f
run prettier on help.ts
anthonykim1 54dc0c7
figure out which line is causing prev test to fail
anthonykim1 a65d329
investigate previous normalization
anthonykim1 461851f
uncomment emptyHighlight
anthonykim1 8f23da7
start setting up experiment for smart send
anthonykim1 c57fc7d
remove duplicate import in helper.ts
anthonykim1 5eca7ff
remove duplicate function
anthonykim1 92cf2fd
format normalize and test_smart_selection
anthonykim1 143ed5a
format python files for ruff compliance
anthonykim1 874cb06
add file scope to EventName.EXECUTION_CODE
anthonykim1 75a2135
add imports for new telemetry scope
anthonykim1 33b3f5a
fix broken unittest
anthonykim1 fe0603a
check if node.body is iterable
anthonykim1 bcf67cb
switch behavior if smart send experiment enabled
anthonykim1 871e91b
format normalizeSelection
anthonykim1 360069f
wrapper for undefined values
anthonykim1 ecb9331
fix linting error
anthonykim1 9f65f84
clean up normalizeSelection.py
anthonykim1 930c991
add more test to smart and normalize selection
anthonykim1 b061479
make black formatter happy
anthonykim1 20637f7
remove redundant comments
anthonykim1 13ebe55
bring back configSettings
anthonykim1 43631cb
clean up helper.ts
anthonykim1 aacd6ab
disable error for unused configSettings
anthonykim1 544ac88
add doc string, more comments, eslint for config
anthonykim1 b0da736
cleaner way to check ast types and node.body
anthonykim1 4ae8177
format ast_types_with_nodebody
anthonykim1 ee40d5f
utilize f string as recommended
anthonykim1 d71352c
simplify empty_highlight assignment and format
anthonykim1 d7997ed
fix test_normalize_selection
anthonykim1 2fda1ce
more docstring
anthonykim1 7db00f4
simplify activeEditor conditional
anthonykim1 a9bd9a1
better ts syntax for start,endline and highlight
anthonykim1 039c1de
cleaner contents.get
anthonykim1 96a5f30
more tests added in test_smart_selection
anthonykim1 9428578
fix test_part_dictionary test
anthonykim1 afe9a72
format, more comments
anthonykim1 6768f85
new function moveToNextBlock
anthonykim1 194e413
comment before the function for moveToNextBlock
anthonykim1 4c6a0ba
prevent access .getText from undefined
anthonykim1 3b11ed8
remove should_run_top_blocks from global variable
anthonykim1 094a5de
delete global_next_lineno
anthonykim1 c8b0e8c
comply to new return value for traverse_file
anthonykim1 8d640aa
fix linting error unbound variable
anthonykim1 dc9a6de
fix linting error attempt2
anthonykim1 bd4abf2
set default which_line_next value
anthonykim1 9987441
format with black
anthonykim1 23a1c16
add test_dynamic_cursor
anthonykim1 97f9e2b
more tests
anthonykim1 6ff726d
more tests smart_selection, dynamic_cursor
anthonykim1 482c4ab
more test cases
anthonykim1 5c03e54
moveToNextBlock as private
anthonykim1 4d21121
typescript testing for cursor move
anthonykim1 94146cf
smart selection typescript
anthonykim1 ccaaef5
more typescript tests
anthonykim1 848b80d
save more tests
anthonykim1 3643651
add more tests
anthonykim1 15ad56b
add smoke test for smart send
anthonykim1 905a31d
delete unnecessary comment
anthonykim1 36f5d5b
move moveCursor to private
anthonykim1 b70b0f1
comment out smoke test
anthonykim1 4f4c86a
clean up variable names
anthonykim1 9450f76
format and rename variables
anthonykim1 d416fec
leave out smoke test for now
anthonykim1 004dab2
format normalizeSelection
anthonykim1 99ee2ce
Update src/client/terminals/codeExecution/helper.ts
anthonykim1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.