Skip to content

Commit

Permalink
web: include * and ] in trigger characters (#12660)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhengl committed Aug 3, 2020
1 parent b79f30b commit d1103e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shared/src/search/parser/providers.ts
Expand Up @@ -25,6 +25,7 @@ const PARSER_STATE: Monaco.languages.IState = {
}

const alphabet = 'abcdefghijklmnopqrstuvwxyz'
const specialCharacters = ':-*]'

/**
* Returns the providers used by the Monaco query input to provide syntax highlighting,
Expand Down Expand Up @@ -73,7 +74,7 @@ export function getProviders(
},
completion: {
// An explicit list of trigger characters is needed for the Monaco editor to show completions.
triggerCharacters: [':', '-', ...alphabet, ...alphabet.toUpperCase()],
triggerCharacters: [...specialCharacters, ...alphabet, ...alphabet.toUpperCase()],
provideCompletionItems: (textModel, position, context, token) =>
combineLatest([parsedQueries, globbing])
.pipe(
Expand Down

0 comments on commit d1103e0

Please sign in to comment.