Skip to content

Do not provide suggestions inside YAML comments#984

Open
peltevis wants to merge 5 commits intoaml-org:developfrom
peltevis:do-not-suggest-inside-comments
Open

Do not provide suggestions inside YAML comments#984
peltevis wants to merge 5 commits intoaml-org:developfrom
peltevis:do-not-suggest-inside-comments

Conversation

@peltevis
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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 BlockLucas October 26, 2023 13:28
@peltevis peltevis requested a review from a team 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