diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index aff53def0..4082a2b15 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -12,7 +12,7 @@ ## Motivation and Context - + - [ ] Bugfix - [ ] New feature - [ ] Dependency update diff --git a/README.md b/README.md index 4f27e1b53..d2e0c325c 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,6 @@ Select queries and aggregations within your Playground files and translate them ![Query Translator](resources/screenshots/query-translator.png) - ### Document Editing MongoDB for VS Code makes it extremely easy to make changes to documents in your collections. You can open documents in an editor tab, edit them and save the changes back to MongoDB. @@ -114,7 +113,7 @@ npm run local-install This will compile and package MongoDB for VS Code into a `.vsix` file and add the extension to your VS Code. -To install this locally on windows: +To install this locally on Windows: ```shell npm install @@ -126,7 +125,7 @@ This will compile and package MongoDB for VS Code into a `.vsix` file and add th If you get an error because the `code` command is not found, you need to install it in your `$PATH`. -Open VS Code, launch the Commmand Palette (⌘+Shift+P on MacOS, Ctrl+Shift+P on Windows and Linux), type `code` and select "Install code command in \$PATH". +Open VS Code, launch the Command Palette (⌘+Shift+P on macOS, Ctrl+Shift+P on Windows and Linux), type `code` and select "Install code command in \$PATH". ## License diff --git a/src/connectionController.ts b/src/connectionController.ts index 7742831e5..53287f8b2 100644 --- a/src/connectionController.ts +++ b/src/connectionController.ts @@ -58,7 +58,7 @@ interface ConnectionAttemptResult { connectionErrorMessage: string; } -interface СonnectionQuickPicks { +interface ConnectionQuickPicks { label: string; data: { type: NewConnectionType, connectionId?: string } } @@ -833,7 +833,7 @@ export default class ConnectionController { this._disconnecting = disconnecting; } - getСonnectionQuickPicks(): СonnectionQuickPicks[] { + getConnectionQuickPicks(): ConnectionQuickPicks[] { if (!this._connections) { return [ { @@ -868,7 +868,7 @@ export default class ConnectionController { async changeActiveConnection(): Promise { const selectedQuickPickItem = await vscode.window.showQuickPick( - this.getСonnectionQuickPicks(), + this.getConnectionQuickPicks(), { placeHolder: 'Select new connection...' } diff --git a/src/test/suite/connectionController.test.ts b/src/test/suite/connectionController.test.ts index e6984a811..9aab0cda0 100644 --- a/src/test/suite/connectionController.test.ts +++ b/src/test/suite/connectionController.test.ts @@ -537,7 +537,7 @@ suite('Connection Controller Test Suite', function () { assert.strictEqual(name, 'new connection name'); }); - test('СonnectionQuickPicks workspace connections list is displayed in the alphanumerical case insensitive order', async () => { + test('ConnectionQuickPicks workspace connections list is displayed in the alphanumerical case insensitive order', async () => { await vscode.workspace .getConfiguration('mdb.connectionSaving') .update( @@ -556,7 +556,7 @@ suite('Connection Controller Test Suite', function () { await testConnectionController.loadSavedConnections(); - let connections = testConnectionController._connections; + const connections = testConnectionController._connections; const connectionIds = Object.keys(connections); assert.strictEqual(connectionIds.length, 2); @@ -576,11 +576,9 @@ suite('Connection Controller Test Suite', function () { await testConnectionController.loadSavedConnections(); - connections = testConnectionController._connections; - assert.strictEqual(connectionIds.length, 2); - const connectionQuickPicks = testConnectionController.getСonnectionQuickPicks(); + const connectionQuickPicks = testConnectionController.getConnectionQuickPicks(); assert.strictEqual(connectionQuickPicks.length, 3); assert.strictEqual(connectionQuickPicks[0].label, 'Add new connection');