Skip to content

Commit

Permalink
feat: add autocomplete support for $percentile, $median and $$USER_RO…
Browse files Browse the repository at this point in the history
…LES COMPASS-6780 COMPASS-6781 (#523)
  • Loading branch information
alenakhineika authored May 19, 2023
1 parent 09ec67b commit 2974843
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 8 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@
"@iconify/react": "^1.1.4",
"@leafygreen-ui/logo": "^6.3.0",
"@leafygreen-ui/toggle": "^7.0.5",
"@mongodb-js/mongodb-constants": "^0.4.0",
"@mongodb-js/mongodb-constants": "^0.6.0",
"@mongosh/browser-runtime-electron": "^1.8.0",
"@mongosh/i18n": "^1.8.0",
"@mongosh/service-provider-server": "^1.8.0",
Expand Down
18 changes: 18 additions & 0 deletions syntaxes/mongodbInjection.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,15 @@
}
}
},
{
"name": "meta.object.member.mongodb",
"match": "\\$median\\b",
"captures": {
"0": {
"name": "keyword.other.$median.mongodb"
}
}
},
{
"name": "meta.object.member.mongodb",
"match": "\\$min\\b",
Expand All @@ -198,6 +207,15 @@
}
}
},
{
"name": "meta.object.member.mongodb",
"match": "\\$percentile\\b",
"captures": {
"0": {
"name": "keyword.other.$percentile.mongodb"
}
}
},
{
"name": "meta.object.member.mongodb",
"match": "\\$push\\b",
Expand Down

0 comments on commit 2974843

Please sign in to comment.