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

124 Views Asked by At

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"
1

There are 1 best solutions below

1
On

Try adding patterntype:regexp to the end.

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

enter image description here