Start LS for docs created with appropriate content-type

This commit is contained in:
BoykoAlex
2019-06-10 20:17:49 -04:00
parent ea8ae2757b
commit cfc79e0b69
4 changed files with 67 additions and 1 deletions

View File

@@ -39,6 +39,7 @@
point="org.eclipse.core.contenttype.contentTypes">
<content-type
base-type="org.eclipse.jdt.core.javaProperties"
default-charset="ISO-8859-1"
id="org.springframework.boot.ide.properties.application.properties"
name="Spring Properties File"
@@ -46,6 +47,7 @@
</content-type>
<content-type
base-type="org.eclipse.core.runtime.text"
default-charset="UTF-8"
id="org.springframework.boot.ide.properties.application.yml"
name="Spring Yaml Properties File"
@@ -310,4 +312,26 @@
</extension>
<extension
point="org.eclipse.core.filebuffers.documentSetup">
<participant
class="org.eclipse.lsp4e.ConnectDocumentToLanguageServerSetupParticipant"
contentTypeId="org.springframework.boot.ide.properties.application.properties">
</participant>
</extension>
<extension
point="org.eclipse.core.filebuffers.documentSetup">
<participant
class="org.eclipse.lsp4e.ConnectDocumentToLanguageServerSetupParticipant"
contentTypeId="org.springframework.boot.ide.properties.application.yml">
</participant>
</extension>
<extension
point="org.eclipse.core.filebuffers.documentSetup">
<participant
class="org.eclipse.lsp4e.ConnectDocumentToLanguageServerSetupParticipant"
contentTypeId="org.springframework.boot.ide.xmlconfig">
</participant>
</extension>
</plugin>