Redocly / redocly-vs-code

Redocly VS Code extension
35 stars 6 forks source link

Too much spaces in autocomplete #38

Open AlexVarchuk opened 1 year ago

AlexVarchuk commented 1 year ago

What happened? When adding a new key to the operation autocompletes added too much spaces.

What should have happened instead?

https://user-images.githubusercontent.com/14113673/190604965-a4142cc2-b07b-4c6c-b40f-89c175d6ce73.mov

Minimal reproducible OpenAPI snippet

  /user:
    post:
      tags:
        - user
      summary: Create user
      description: This can only be done by the logged in user.
      operationId: createUser
      responses:
        default:
          description: successful operation
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/User'
        description: Created user object
        required: true