Skip to content

Commit 493993e

Browse files
authored
feat: initial feature-flagged, new autocompleter MONGOSH-2036 (#2424)
* Initial feature-flagged, draft new autocompleter. * use the specified connection and db name * port some tests to autocomplete * this one just worked * also just works * use the new mongodb-schema * backport the circular ref fix * just use an incrementing unique connection id * better event based waiting * add ticket number * add ticket number * add ticket number * put mongodb-schema as a dep in the right place * put mongodb-schema as a dep in the right place * don't add getConnectionId to the public interface * move it back * remove the TODO again, can just use the constant * add some options to the sample aggregate * 'new', not true * unnecessary TODO * add an integration test
1 parent a35f547 commit 493993e

File tree

13 files changed

+561
-94
lines changed

13 files changed

+561
-94
lines changed

package-lock.json

Lines changed: 214 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/browser-runtime-core/src/open-context-runtime.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export interface InterpreterEnvironment {
2929
*/
3030
export class OpenContextRuntime implements Runtime {
3131
private interpreterEnvironment: InterpreterEnvironment;
32+
// TODO(MONGOSH-2205): we have to also port this to the new autocomplete
3233
private autocompleter: ShellApiAutocompleter | null = null;
3334
private shellEvaluator: ShellEvaluator;
3435
private instanceState: ShellInstanceState;

packages/cli-repl/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
"@mongosh/shell-evaluator": "^3.11.0",
7878
"@mongosh/snippet-manager": "^3.11.0",
7979
"@mongosh/types": "3.6.2",
80+
"@mongodb-js/mongodb-ts-autocomplete": "^0.2.2",
8081
"@segment/analytics-node": "^1.3.0",
8182
"ansi-escape-sequences": "^5.1.2",
8283
"askcharacter": "^2.0.4",

0 commit comments

Comments
 (0)