'Sourcegraph VSCode - A patternType: filter is required in the query for all saved searches

I am trying to save search query in sourcegraph vscode extension.

Name: "Master Search" Query: "context:global repo:^teams/master$ getSiteSettings"

Clicked "Add saved search"

Error:

A patternType: filter is required in the query for all saved searches. 
patternType can be "literal", "regexp" or "structural"


Solution 1:[1]

Try adding patterntype:regexp to the end.

"context:global repo:^teams/master$ getSiteSettings patterntype:regexp"

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 jdorfman