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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not provide suggestions inside YAML comments #984

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

peltevis
Copy link

ALS shouldn't provide suggestions inside YAML comments.

Initially I was aiming to fix #894 but I later realized that the problem wasn't that we are not replacing existing text but rather that ALS is providing suggestions inside YAML comments

(P.S @agusayerza here, current repository configuration doesn't let me open an PR from my original account for somereason 馃し)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nostalgic review here 馃ズ
File deleted by mistake?

Copy link
Author

@peltevis peltevis Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kept the file but removed all suggestions as this is one of the cases where I don't think ALS should suggest anything as we are inside a comment. The case is:

#%RAML 1.0
 
title: Sample API
 
types:
  TestType: # *

@peltevis peltevis requested a review from a team as a code owner April 17, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

$ref autocomplete does not replace existing text
3 participants