Use 'file' scheme in doc selector

This commit is contained in:
nsingh
2018-08-17 22:44:26 +02:00
parent 2c6dd39a33
commit 9f04acb992

View File

@@ -29,21 +29,22 @@ export function activate(context: VSCode.ExtensionContext): Thenable<LanguageCli
},
workspaceOptions: VSCode.workspace.getConfiguration("spring-boot.ls"),
clientOptions: {
documentSelector: [ PROPERTIES_LANGUAGE_ID, YAML_LANGUAGE_ID, JAVA_LANGUAGE_ID ],
// documentSelector: [
// {
// language: PROPERTIES_LANGUAGE_ID,
// scheme: 'untitled'
// },
// {
// language: YAML_LANGUAGE_ID,
// scheme: 'untitled'
// },
// {
// language: JAVA_LANGUAGE_ID,
// scheme: 'untitled'
// }
// ],
// See PT-158992999 as to why a scheme is added to the document selector
// documentSelector: [ PROPERTIES_LANGUAGE_ID, YAML_LANGUAGE_ID, JAVA_LANGUAGE_ID ],
documentSelector: [
{
language: PROPERTIES_LANGUAGE_ID,
scheme: 'file'
},
{
language: YAML_LANGUAGE_ID,
scheme: 'file'
},
{
language: JAVA_LANGUAGE_ID,
scheme: 'file'
}
],
synchronize: {
configurationSection: 'boot-java'
},