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

Autocompletion does not work if there is text under the cursor #141

Closed
palvarezcordoba opened this issue Dec 4, 2018 · 2 comments
Closed

Comments

@palvarezcordoba
Copy link

palvarezcordoba commented Dec 4, 2018

If I write a new file, It works nice but if I edit a file does not.

I am using this custom schema: https://gist.github.com/palvarezcordoba/55ea8c948c45475446cb6fff6f91a359

If I try to get suggestions here:
imagen

It fails because there is more text below.

What happens if I delete that text?
It works:
imagen

EDIT: This bug is only reproducible inside an object, If you edit a top-level var it does not fail

For example:

default_password:  **************
default_snmp_community:  **************
default_model:  **************
default_ssh_port:  **************
default_position:
  default_zoom:  **************
  default_Lat: **************
  default_Lng:  **************

locations:
  - name:  **************
    comment:  **************
    latitude:  **************
    longitude:  **************

In that yaml, if you delete default_ssh_port, put your cursor below default_model and press ctrl + space you will get suggestions, but if you try to edit locations it does not work because there is more text below (it does not appear in the snippet)

@JPinkney JPinkney added the bug label Dec 4, 2018
bleach31 pushed a commit to bleach31/vscode-yaml that referenced this issue Jan 25, 2022
…127-addTriggerCharacters

Revert "Added trigger characters"
@gorkem
Copy link
Collaborator

gorkem commented Apr 22, 2022

Are you still able to reproduce this issue?

@gorkem
Copy link
Collaborator

gorkem commented Apr 1, 2023

Closing due to inactivity

@gorkem gorkem closed this as completed Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants