-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
path completion: support code completion inside an existing path until next whitespace #44814
Comments
I had no idea of this feature. I'll look into supporting it for path completion for March. |
Looping in @mjbvz to get some insight from TS perspective. |
It's replacement vs insertion which is currently different for each language. |
But I found this case to be very common too (echoed by @mjbvz): Let's say I have a line <script src="./vendor/foo/js/foo.js"></script> And I have decided to move <script src="./static/vendor/foo/js/foo.js"></script> I wish I can move my cursor to after |
In Eclipse we had a modification key (Ctrl or Alt) to switch between insertion and replace mode on demand. |
OK, so the feature become two things:
1 is easy but for 2 I'm wondering how can I possibly deal with folder with whitespaces. |
Yes, 1. is correct. The last segment has no meaning for the proposals. FIltering is always done in the UI, using the UI's heuristics (fuzzymatch, camelcase...). Actually what we complete are URLs and URLs must not have spaces. So to be correct, we should URL encode the file name (so that spaces use become 20%). |
Testing #44460
Version 1.21.0-insider
Commit 9a04587
Date 2018-03-01T06:47:39.037Z
foo.html
,bar.html
in a folderand do code completion after
b
.-> should show
bar.html
as a proposal. Accepting the proposal should replace/boo.html
with./bar.html
This would be consistent with other html completions, e.g. set the cursor inside
href
and pickhreflang
The text was updated successfully, but these errors were encountered: