fix: no complete keyword colons before colons#22489
Conversation
Example
---
```rust
fn foo() { $0::bar }
```
**Before this PR**
```rust
fn foo() { self::::bar }
```
**After this PR**
```rust
fn foo() { self::bar }
```
This will be difficult to distinguish between |
|
Given they complete exactly the same, I don't think we should show both. |
|
Users can choose whether to complete the colons by selecting the completion item, This feature should not be compromised |
|
What I mean is, when we do not complete colons we should not show both. |
|
Cases that do not complete the colons seem to only occur before the colons This should be irrelevant |
|
There, or when the user opted out in the settings. In both cases it's confusing that colons are shown but not completed. |
This is irrelevant because colons is exists
Colons shown and completed My consideration for this is: |
Old: |
|
Your table of behaviors is correct. The only thing I said is that when we don't complete the colons, we should not show them in the label either, and that when we do that and also have a |
This will make it difficult to distinguish between local and module in both user and testing scenarios
This is difficult to implement and has little impact Although the completion content is the same, |
Related #22479
Example
Before this PR
After this PR