Skip to content

Commit

Permalink
feat: hardcode triggerCharacters
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Aug 28, 2022
1 parent 4857ad6 commit e580e11
Showing 1 changed file with 12 additions and 1 deletion.
Expand Up @@ -56,7 +56,18 @@ export function register(
}
if (features.completion) {
server.completionProvider = {
triggerCharacters: '!@#$%^&*()_+-=`~{}|[]\:";\'<>?,./ '.split(''), // all symbols on keyboard
// triggerCharacters: '!@#$%^&*()_+-=`~{}|[]\:";\'<>?,./ '.split(''), // all symbols on keyboard
// hardcode to fix https://github.com/sublimelsp/LSP-volar/issues/114
triggerCharacters: [...new Set([
'/', '-', ':', // css
...'>+^*()#.[]$@-{}'.split(''), // emmet
'.', ':', '<', '"', '=', '/', // html, vue
'@', // vue-event
'"', ':', // json
'.', '"', '\'', '`', '/', '<', '@', '#', ' ', // typescript
'*', // typescript-jsdoc
'@', // typescript-comment
])],
resolveProvider: true,
};
server.executeCommandProvider = {
Expand Down

0 comments on commit e580e11

Please sign in to comment.