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

@@ -9,7 +9,10 @@ npm install ../commons-vscode/*-commons-vscode-*.tgz
# Copy grammar files for .properties and .yml format
curl https://raw.githubusercontent.com/textmate/yaml.tmbundle/master/Syntaxes/YAML.tmLanguage > yaml-support/yaml.tmLanguage
sed -i -e 's/string\./identifier\./g' yaml-support/yaml.tmLanguage
curl https://raw.githubusercontent.com/textmate/java.tmbundle/master/Syntaxes/JavaProperties.plist > properties-support/java-properties.tmLanguage
sed -i -e 's/constant/identifier/g' properties-support/java-properties.tmLanguage
# Clean old jars
rm -fr ${workdir}/jars