Skip to content

Completion schema URI in modeline comment#573

Merged
evidolob merged 4 commits intoredhat-developer:mainfrom
evidolob:completion-modeline-comment
Nov 10, 2021
Merged

Completion schema URI in modeline comment#573
evidolob merged 4 commits intoredhat-developer:mainfrom
evidolob:completion-modeline-comment

Conversation

@evidolob
Copy link
Copy Markdown
Collaborator

@evidolob evidolob commented Nov 2, 2021

What does this PR do?

Completion schema URI in modeline comment, based on #566

Screenshot 2021-11-02 at 12 03 13

What issues does this PR fix or reference?

none

Is it tested? How?

with tests

apupier and others added 3 commits October 26, 2021 10:50
potential improvements:
- support range when there is already a value provided
- provide completion for local yaml schema files

Extracted a specific file for modeline related things.

fixes redhat-developer#560

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
@evidolob evidolob requested review from JPinkney and apupier November 2, 2021 10:05
@evidolob evidolob self-assigned this Nov 2, 2021
@coveralls
Copy link
Copy Markdown

coveralls commented Nov 2, 2021

Coverage Status

Coverage decreased (-0.06%) to 78.189% when pulling 6ef0baf on evidolob:completion-modeline-comment into f7377aa on redhat-developer:main.

@evidolob
Copy link
Copy Markdown
Collaborator Author

evidolob commented Nov 2, 2021

To get this working, I need to change https://github.com/redhat-developer/vscode-yaml/blob/main/language-configuration.json#L37 wordPattern regexp, as currently it copied from JSON and not valid for yaml

@evidolob
Copy link
Copy Markdown
Collaborator Author

evidolob commented Nov 4, 2021

As redhat-developer/vscode-yaml#634 merged, this PR should work.

@JPinkney @apupier Could you review this?

Copy link
Copy Markdown
Member

@apupier apupier left a comment

Choose a reason for hiding this comment

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

Despite I was not able to test locally (for general reasons, not specific to this PR), reading code and seeing the screenshot leads me to think that it is a good PR.

…er into completion-modeline-comment

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
@evidolob evidolob merged commit 7cc6e0c into redhat-developer:main Nov 10, 2021
@evidolob evidolob deleted the completion-modeline-comment branch November 10, 2021 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants