Skip to content

Commit ff7a5bb

Browse files
fix(vscode): resolved typo in dialog label (#834)
Co-authored-by: Renan <[email protected]>
1 parent 14a651c commit ff7a5bb

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

extensions/vscode/src/commands/new-middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const newMiddleware = async (uri: Uri | undefined): Promise<void> => {
6767
async function promptForTargetDirectory(): Promise<string | undefined> {
6868
const options: OpenDialogOptions = {
6969
canSelectMany: false,
70-
openLabel: "Select a folder or file to create the Route in",
70+
openLabel: "Select a folder or file to create the middleware in",
7171
canSelectFolders: true,
7272
canSelectFiles: true,
7373
};

extensions/vscode/src/commands/new-route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function promptRouteName(routePath: string): Thenable<string | undefined> {
9898
async function promptForTargetDirectory(): Promise<string | undefined> {
9999
const options: OpenDialogOptions = {
100100
canSelectMany: false,
101-
openLabel: "Select a folder or file to create the Route in",
101+
openLabel: "Select a folder or file to create the route in",
102102
canSelectFolders: true,
103103
canSelectFiles: true,
104104
};

extensions/vscode/src/test/suite/commands/new-middleware.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ suite("new-middleware command", () => {
5757

5858
sinon.assert.calledWith(vscodeStub.window.showOpenDialog, {
5959
canSelectMany: false,
60-
openLabel: "Select a folder or file to create the Route in",
60+
openLabel: "Select a folder or file to create the middleware in",
6161
canSelectFolders: true,
6262
canSelectFiles: true,
6363
});

extensions/vscode/src/test/suite/commands/new-route.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ suite("new-route command", () => {
131131

132132
sinon.assert.calledWith(vscodeStub.window.showOpenDialog, {
133133
canSelectMany: false,
134-
openLabel: "Select a folder or file to create the Route in",
134+
openLabel: "Select a folder or file to create the route in",
135135
canSelectFolders: true,
136136
canSelectFiles: true,
137137
});

0 commit comments

Comments
 (0)