Attempt to fix 'trigger characters' issue.

- modify textmate grammars so that interesting contexts count
  as 'identifiers'.
- disable trigger chars on vscode

The effect of this is that vscode auto-triggers completions even
without trigger characters.
This commit is contained in:
Kris De Volder
2019-03-25 10:17:54 -07:00
parent aa45fdc79c
commit fb3f610c19
4 changed files with 37 additions and 29 deletions

View File

@@ -99,7 +99,20 @@ public class CloudFoundryManifestLanguageServer extends STS4LanguageServerProces
File dataFile = bundle.getDataFile(languageServerLocalCopy);
Exception error = null;
if (!dataFile.exists() || bundleVersion.endsWith("qualifier")) { // qualifier check to get the language server always copied in dev mode
if (bundleVersion.endsWith("qualifier")) {
File userHome = new File(System.getProperty("user.home"));
File locallyBuiltJar = new File(
userHome,
"git/sts4/headless-services/manifest-yaml-language-server/target/manifest-yaml-language-server-"+Constants.LANGUAGE_SERVER_VERSION
);
if (locallyBuiltJar.exists()) {
return locallyBuiltJar.getAbsolutePath();
} else {
throw new IllegalStateException("Not found language server jar: "+locallyBuiltJar);
}
}
if (!dataFile.exists()) {
try {
copyLanguageServerJAR(languageServer, languageServerLocalCopy);
}
@@ -108,14 +121,6 @@ public class CloudFoundryManifestLanguageServer extends STS4LanguageServerProces
}
}
if (!dataFile.exists()) {
File userHome = new File(System.getProperty("user.home"));
File locallyBuiltJar = new File(
userHome,
"git/sts4/headless-services/manifest-yaml-language-server/target/manifest-yaml-language-server-"+Constants.LANGUAGE_SERVER_VERSION
);
if (locallyBuiltJar.exists()) {
return locallyBuiltJar.getAbsolutePath();
}
if (error!=null) {
error.printStackTrace();
}