Merge branch 'boot-2.2.0'
This commit is contained in:
@@ -143,11 +143,12 @@ public class BootLanguagServerBootApp {
|
||||
}
|
||||
|
||||
@Bean Yaml yaml() {
|
||||
//TODO: Yaml is not re-entrant. So its a bit fishy to create a 're-usable' bean for this!
|
||||
return new Yaml();
|
||||
}
|
||||
|
||||
@Bean YamlASTProvider yamlAstProvider(Yaml yaml) {
|
||||
return new YamlParser(yaml);
|
||||
@Bean YamlASTProvider yamlAstProvider() {
|
||||
return new YamlParser();
|
||||
}
|
||||
|
||||
@Bean YamlStructureProvider yamlStructureProvider() {
|
||||
|
||||
@@ -11,9 +11,7 @@
|
||||
package org.springframework.ide.vscode.boot.app;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@ConfigurationProperties("languageserver.boot")
|
||||
public class BootLsConfigProperties {
|
||||
|
||||
|
||||
@@ -167,8 +167,7 @@ public class ValuePropertyReferencesProvider implements ReferenceProvider {
|
||||
try {
|
||||
String fileContent = FileUtils.readFileToString(new File(filePath));
|
||||
|
||||
Yaml yaml = new Yaml();
|
||||
YamlASTProvider parser = new YamlParser(yaml);
|
||||
YamlASTProvider parser = new YamlParser();
|
||||
|
||||
URI docURI = Paths.get(filePath).toUri();
|
||||
TextDocument doc = new TextDocument(docURI.toString(), null);
|
||||
|
||||
Reference in New Issue
Block a user