-
-
Notifications
You must be signed in to change notification settings - Fork 84
Bugfixes: past token, past end of, subtoken out of range, sort tokens #229
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
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
a24e9c5
Support take token past
AndreasArvidsson 0d1ee5d
Support take past token
AndreasArvidsson 059b14e
Added more tests
AndreasArvidsson 2cf773e
Better error message for sub token index out of range
AndreasArvidsson afbb36e
No delimiters on start and end of positions
AndreasArvidsson fbfb42c
Sort multiple match tokens
AndreasArvidsson 9073728
Sort tokens on length
AndreasArvidsson b33d9e2
Sort tokens on length
AndreasArvidsson 3b335bb
Sort on alphanumeric as well
AndreasArvidsson 9e8a305
Added additional tests
AndreasArvidsson 2a97d3d
Change directory
AndreasArvidsson 755b13f
Add directory to a message
AndreasArvidsson 286d24c
Changed inference on end
AndreasArvidsson a558f9f
Added tests
AndreasArvidsson d577d8d
find tokens by range
AndreasArvidsson c86c2c6
Renamed attributes
AndreasArvidsson 446be3c
Add docstring
pokey 1933940
Fix multi-editor bug
pokey 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
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
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
26 changes: 26 additions & 0 deletions
26
src/test/suite/fixtures/recorded/compoundTargets/takePastEndOfToken.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
spokenForm: take past end of token | ||
languageId: typescript | ||
command: | ||
actionName: setSelection | ||
partialTargets: | ||
- type: range | ||
start: {type: primitive} | ||
end: {type: primitive, position: after, insideOutsideType: inside, selectionType: token} | ||
excludeStart: false | ||
excludeEnd: false | ||
extraArgs: [] | ||
marks: {} | ||
initialState: | ||
documentContents: hello there | ||
selections: | ||
- anchor: {line: 0, character: 8} | ||
active: {line: 0, character: 8} | ||
finalState: | ||
documentContents: hello there | ||
selections: | ||
- anchor: {line: 0, character: 8} | ||
active: {line: 0, character: 11} | ||
thatMark: | ||
- anchor: {line: 0, character: 8} | ||
active: {line: 0, character: 11} | ||
fullTargets: [{type: range, excludeStart: false, excludeEnd: false, start: {type: primitive, mark: {type: cursor}, selectionType: token, position: contents, modifier: {type: identity}, insideOutsideType: inside}, end: {type: primitive, mark: {type: cursorToken}, selectionType: token, position: after, modifier: {type: identity}, insideOutsideType: inside}}] |
26 changes: 26 additions & 0 deletions
26
src/test/suite/fixtures/recorded/compoundTargets/takePastStartOfToken.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
spokenForm: take past start of token | ||
languageId: typescript | ||
command: | ||
actionName: setSelection | ||
partialTargets: | ||
- type: range | ||
start: {type: primitive} | ||
end: {type: primitive, position: before, insideOutsideType: inside, selectionType: token} | ||
excludeStart: false | ||
excludeEnd: false | ||
extraArgs: [] | ||
marks: {} | ||
initialState: | ||
documentContents: hello there | ||
selections: | ||
- anchor: {line: 0, character: 8} | ||
active: {line: 0, character: 8} | ||
finalState: | ||
documentContents: hello there | ||
selections: | ||
- anchor: {line: 0, character: 8} | ||
active: {line: 0, character: 6} | ||
thatMark: | ||
- anchor: {line: 0, character: 8} | ||
active: {line: 0, character: 6} | ||
fullTargets: [{type: range, excludeStart: false, excludeEnd: false, start: {type: primitive, mark: {type: cursor}, selectionType: token, position: contents, modifier: {type: identity}, insideOutsideType: inside}, end: {type: primitive, mark: {type: cursorToken}, selectionType: token, position: before, modifier: {type: identity}, insideOutsideType: inside}}] |
31 changes: 31 additions & 0 deletions
31
src/test/suite/fixtures/recorded/compoundTargets/takePastTrap.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
spokenForm: take past trap | ||
languageId: typescript | ||
command: | ||
actionName: setSelection | ||
partialTargets: | ||
- type: range | ||
start: {type: primitive} | ||
end: | ||
type: primitive | ||
mark: {type: decoratedSymbol, symbolColor: default, character: t} | ||
excludeStart: false | ||
excludeEnd: false | ||
extraArgs: [] | ||
marks: | ||
default.t: | ||
start: {line: 0, character: 6} | ||
end: {line: 0, character: 11} | ||
initialState: | ||
documentContents: hello there | ||
selections: | ||
- anchor: {line: 0, character: 3} | ||
active: {line: 0, character: 3} | ||
finalState: | ||
documentContents: hello there | ||
selections: | ||
- anchor: {line: 0, character: 3} | ||
active: {line: 0, character: 11} | ||
thatMark: | ||
- anchor: {line: 0, character: 3} | ||
active: {line: 0, character: 11} | ||
fullTargets: [{type: range, excludeStart: false, excludeEnd: false, start: {type: primitive, mark: {type: cursor}, selectionType: token, position: contents, modifier: {type: identity}, insideOutsideType: inside}, end: {type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: t}, selectionType: token, position: contents, modifier: {type: identity}, insideOutsideType: inside}}] |
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.
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 code doesn't really fit in the navigation map. Earmarking to move it for cursorless engine 2.0 work, as it should become a proper scope type