Redocly / redocly-vs-code

Redocly VS Code extension
35 stars 6 forks source link

Cursor context breaks on operation servers #17

Open roman-sainchuk opened 2 years ago

roman-sainchuk commented 2 years ago

What happened?

The cursor context breaks after I go to operation servers (as opposed to global root-level servers).

screenshot

What should have happened instead?

It should show servers cursor context similar to as in the document root.

A clear and concise description of the behavior you expected to happen.

Minimal reproducible OpenAPI snippet

  servers:
    - url: https://ec.europa.eu/commission/presscorner/api 
  summary: Get document by reference
  operationId: getDocument
  parameters:
    - name: reference
      in: query
      schema:
        type: string
        description: The topic reference
        example: IP/22/1649
    - name: language
      in: query
      schema:
        type: string
        maxLength: 2
        description: The language code
        example: en
    - name: ts
      in: query
      schema:
        type: integer
        description: The timestamp in milliseconds
        example: 1647099339234
  responses:
    200:
      content:
        application/json:
          schema:
            type: object
      description: OK

Additional context 0.2.6