Skip to content

Commit 3137a12

Browse files
authored
chores: fix typos in code and readme (#418)
* typo: replace unicode C with C * chore: fix typos and remove redundant linebreak
1 parent 6357efa commit 3137a12

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
## Motivation and Context
1414
<!--- Why is this change required? What problem does it solve? -->
15-
<!--- If it's updating a dependancy, link to the Pull Request that originally introduced the fix -->
15+
<!--- If it's updating a dependency, link to the Pull Request that originally introduced the fix -->
1616
- [ ] Bugfix
1717
- [ ] New feature
1818
- [ ] Dependency update

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ Select queries and aggregations within your Playground files and translate them
4141

4242
![Query Translator](resources/screenshots/query-translator.png)
4343

44-
4544
### Document Editing
4645

4746
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
114113

115114
This will compile and package MongoDB for VS Code into a `.vsix` file and add the extension to your VS Code.
116115

117-
To install this locally on windows:
116+
To install this locally on Windows:
118117

119118
```shell
120119
npm install
@@ -126,7 +125,7 @@ This will compile and package MongoDB for VS Code into a `.vsix` file and add th
126125

127126
If you get an error because the `code` command is not found, you need to install it in your `$PATH`.
128127

129-
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".
128+
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".
130129

131130
## License
132131

src/connectionController.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ interface ConnectionAttemptResult {
5858
connectionErrorMessage: string;
5959
}
6060

61-
interface СonnectionQuickPicks {
61+
interface ConnectionQuickPicks {
6262
label: string;
6363
data: { type: NewConnectionType, connectionId?: string }
6464
}
@@ -833,7 +833,7 @@ export default class ConnectionController {
833833
this._disconnecting = disconnecting;
834834
}
835835

836-
getСonnectionQuickPicks(): СonnectionQuickPicks[] {
836+
getConnectionQuickPicks(): ConnectionQuickPicks[] {
837837
if (!this._connections) {
838838
return [
839839
{
@@ -868,7 +868,7 @@ export default class ConnectionController {
868868

869869
async changeActiveConnection(): Promise<boolean> {
870870
const selectedQuickPickItem = await vscode.window.showQuickPick(
871-
this.getСonnectionQuickPicks(),
871+
this.getConnectionQuickPicks(),
872872
{
873873
placeHolder: 'Select new connection...'
874874
}

src/test/suite/connectionController.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ suite('Connection Controller Test Suite', function () {
537537
assert.strictEqual(name, 'new connection name');
538538
});
539539

540-
test('СonnectionQuickPicks workspace connections list is displayed in the alphanumerical case insensitive order', async () => {
540+
test('ConnectionQuickPicks workspace connections list is displayed in the alphanumerical case insensitive order', async () => {
541541
await vscode.workspace
542542
.getConfiguration('mdb.connectionSaving')
543543
.update(
@@ -556,7 +556,7 @@ suite('Connection Controller Test Suite', function () {
556556

557557
await testConnectionController.loadSavedConnections();
558558

559-
let connections = testConnectionController._connections;
559+
const connections = testConnectionController._connections;
560560
const connectionIds = Object.keys(connections);
561561

562562
assert.strictEqual(connectionIds.length, 2);
@@ -576,11 +576,9 @@ suite('Connection Controller Test Suite', function () {
576576

577577
await testConnectionController.loadSavedConnections();
578578

579-
connections = testConnectionController._connections;
580-
581579
assert.strictEqual(connectionIds.length, 2);
582580

583-
const connectionQuickPicks = testConnectionController.getСonnectionQuickPicks();
581+
const connectionQuickPicks = testConnectionController.getConnectionQuickPicks();
584582

585583
assert.strictEqual(connectionQuickPicks.length, 3);
586584
assert.strictEqual(connectionQuickPicks[0].label, 'Add new connection');

0 commit comments

Comments
 (0)