-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
SwaggerEditor@next: Autocomplete for $ref fields with additional character #3216
Comments
This is interesting corner case. When you start typing |
Adding some related notes:
|
Confirmed that language service doesn't return any completion items. It's an issue within |
Standard usecases like the following have been fixed by replacing $ref: user<cursor> |
@frantuma yes, that is expected. $ref: "#<cursor>" $ref: "<cursor>#" $ref: '#<cursor>' $ref: '<cursor>#' $ref:<cursor> # comment The only case that behaves IMHO unexpectedly is the following one: $ref: <cursor> # comment Instead of $ref suggestions, it gives us Schema Object fields suggestion. |
Before this change, completion items were only provided if they started by the filtered text. With this change, completion items are provided if they include filtered text. Refs swagger-api/swagger-editor#3216
Before this change, completion items were only provided if they started by the filtered text. With this change, completion items are provided if they include filtered text. Refs swagger-api/swagger-editor#3216
Upstream [email protected] released with bugfix: https://github.com/swagger-api/apidom/releases/tag/v0.69.3 |
This bugfix is provided mainly via [email protected] update. Refs #3216
…4072) This bugfix is provided mainly via [email protected] update. Refs #3216
# [5.0.0-alpha.58](v5.0.0-alpha.57...v5.0.0-alpha.58) (2023-04-27) ### Bug Fixes * **language-apidom:** aprovide document links with non-empty ranges ([#4069](#4069)) ([34a8eab](34a8eab)), closes [#3216](#3216) * **language-apidom:** provide completion items with proper filtering ([#4072](#4072)) ([d460e16](d460e16)), closes [#3216](#3216)
not sure if this was fixed somehow as I am not able to reproduce, I am however able to reproduce a similar behaviour by: ctrl+click on might be worth adding this to own ticket.
I understand your point, still (for future reference in case) it might be a better experience for the user to have completion triggered also in case:
Last point not fully related to bug reported in this ticket, it might be good to tweak editor properties as below.
|
Transformed into separate #4108 with Steps Of Reproduction recorded as video. |
Transformed into separate #4109. |
Transformed into separate #4110 |
From the user:
videoAutocomplition.mov
The text was updated successfully, but these errors were encountered: