-
-
Notifications
You must be signed in to change notification settings - Fork 84
Leading/trailing infers token on empty range #836
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
Conversation
You seem to have pulled in my whole cheatsheet PR here 😅 |
575401f
to
9fc6923
Compare
Whoops. Fixed now. |
@@ -4,17 +4,21 @@ import { ProcessedTargetsContext } from "../../typings/Types"; | |||
import { isReversed } from "../../util/selectionUtils"; | |||
import { MarkStage } from "../PipelineStages.types"; | |||
import WeakTarget from "../targets/WeakTarget"; |
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.
I tried replacing these lines with import { TokenTarget, WeakTarget } from "../targets";
but that gives me the following error on extension activation: Activating extension 'pokey.cursorless' failed: Class extends value undefined is not a constructor or null.
. I tried replacing all references to targets to go through the target/index
file but no go.
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.
Huh. I can take a look in a follow-up. I wonder if we need to do the same trick for our stages
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 with one question
for more information, see https://pre-commit.ci
@pokey Do you know what the failed checks are about? |
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!
"chuck trailing"
with empty selection now worksFixes #835
Checklist