-
Notifications
You must be signed in to change notification settings - Fork 264
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
Fix completion indentation for object in array #332
Conversation
Signed-off-by: Yevhen Vydolob <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it out and it works well
@@ -260,7 +260,7 @@ export class YAMLCompletion extends JSONCompletion { | |||
addValue: boolean, | |||
separatorAfter: string, | |||
collector: CompletionsCollector, | |||
document | |||
document: TextDocument |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you know that TextDocument
is deprecated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but we use it across all project.
`${indent}${this.indentation}`, | ||
insertIndex++ | ||
); | ||
const objectInsertResult = this.getInsertTextForObject(schema, separatorAfter, `${this.indentation} `, insertIndex++); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need to also make this change for line 736 above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No
Signed-off-by: Yevhen Vydolob <[email protected]>
This is firs PR, fix completion snippet generation for object in array. We also have problem with settings synchronisation, in case if
editor.tabSize
set up in language scope[yaml]
we not take in account it. This PR fix that, but it also requires fix invscode-yaml
which I'm going to provide.For #329