Skip to content
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

$ref autocomplete does not replace existing text #894

Open
1 of 4 tasks
mhanberg opened this issue Feb 27, 2023 · 6 comments · May be fixed by #984
Open
1 of 4 tasks

$ref autocomplete does not replace existing text #894

mhanberg opened this issue Feb 27, 2023 · 6 comments · May be fixed by #984
Assignees

Comments

@mhanberg
Copy link

Your issue may already be reported! Please search on Github issues before creating one.

  • I'm submitting a ...

    • bug report
    • feature request
    • question
    • other
  • What is the current behavior?

als-ref-snippet

  • If the current behavior is a bug, please provide the minimal steps to reproduce on ALS

I tried to replicate this with the VSCode extension, but I can't seem to get autocomplete to work at all.

  • Please provide stack traces/logs and the failing JSON rpc message if possible

  • File being edited (API spec/AML Document)

  • What is the expected behavior?

  • What is the motivation/use case for changing the behavior? (for feature requests)

  • Please tell us about your environment:

    • ALS Version:
    • ALS Distribution: JVM or JS (if known)
    • OS:
    • Link to your project:

Note:

I will fill in the rest when i get some time.

@emilianoascona
Copy link
Contributor

Hi Mitchell! Could you please provide us with the full example of the case you're testing?
Thanks!

@emilianoascona
Copy link
Contributor

Hi @mhanberg , could you please provide us with some more information about this issue?

@emilianoascona
Copy link
Contributor

An internal ticket was created for the followup of this issue
W-12622167

@mhanberg
Copy link
Author

mhanberg commented Mar 6, 2023

@emilianoascona apologies, let me see if i can make a sanitized example, my current spec is for work.

@mhanberg
Copy link
Author

mhanberg commented Mar 6, 2023

CleanShot.2023-03-06.at.10.09.20.mp4
openapi: 3.0.3
info:
  title: Test
  description: test
  version: 0.0.1
servers:
  - url: "https://example.com"
paths:
  /some/path:
    get:
      operationId: somePath
      summary: Example Path
      description: Example Path

      responses:
        "200":
          description: "example response"
          content:
            application/json:
              schema:
                $ref:

components:
  schemas:
    Foo:
      type: object
      properties:
        bar:
          type: string

  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

security:
  - bearerAuth: []

@deiteris
Copy link
Contributor

deiteris commented Mar 9, 2023

I was able to replicate the same behavior with VSCode as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants