Skip to content

Commit 54636c5

Browse files
authored
Merge pull request #81 from waldyrious/typos
Improve "no host" error message; fix several typos
2 parents e90757a + 51fbf9a commit 54636c5

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ All notable changes to the "Wikitext" extension will be documented in this file.
145145
### Added
146146

147147
- Table caption syntax.
148-
- `<ref>` tag synax.
148+
- `<ref>` tag syntax.
149149

150150
### Changed
151151

@@ -452,7 +452,7 @@ All notable changes to the "Wikitext" extension will be documented in this file.
452452

453453
### Added
454454

455-
- Special support for chinese charcters.
455+
- Special support for chinese characters.
456456

457457
## [0.4.0]\* - 2020-02-02
458458

src/export_command/vscode_function/host.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ export async function getHost(): Promise<string | undefined> {
1212
if (host) { return host; }
1313
// else ask to edit
1414
const selection: string | undefined = await vscode.window.showWarningMessage(
15-
`No Host Be Defined!
16-
You haven't defined the host of previewer yet, please input host value in the dialog box (or in settings) and try again.`
15+
`No host defined!
16+
You haven't defined the host for the previewer yet; please input a host value in the dialog box (or in settings) and try again.`
1717
, "Edit", "Cancel");
1818
// edit
1919
if (selection === 'Edit') {

src/export_command/wikimedia_function/view.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export function getPreviewFactory(extension: vscode.ExtensionContext) {
8787

8888
// if no panel, create one
8989
if (!previewCurrentPanel) {
90-
// if have not, try to creat new one.
90+
// if there is no panel, try to create new one.
9191
previewCurrentPanel = vscode.window.createWebviewPanel(
9292
"previewer", viewerTitle, vscode.ViewColumn.Beside, {
9393
enableScripts: config.get("enableJavascript"),

src/test/runTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async function main(): Promise<void> {
1717
// The path to test runner
1818
// Passed to --extensionTestsPath
1919
const extensionTestsPath = path.resolve(__dirname, './suite/index-node');
20-
console.log("Runing test.");
20+
console.log("Running test.");
2121
// Download VS Code, unzip it and run the integration test
2222
await runTests({
2323
extensionDevelopmentPath,

src/test/suite/extension.test.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,19 @@ suite('WikimediaFunction Core TestSuite', () => {
7070

7171
// Assert
7272
// hasInfo
73-
assert.strictEqual(hasInfo.content, content, "hasInfo content faild");
73+
assert.strictEqual(hasInfo.content, content, "hasInfo content failed");
7474
assert.deepStrictEqual(hasInfo.info, {
7575
pageTitle: pageTitle,
7676
pageID: "1",
7777
revisionID: undefined,
7878
contentFormat: undefined,
7979
contentModel: undefined
80-
}, "hasInfo info faild");
80+
}, "hasInfo info failed");
8181
// noInfo
82-
assert.strictEqual(noInfo.content, content, "noInfo content faild");
83-
assert.deepStrictEqual(noInfo.info, undefined, "noInfo info faild");
82+
assert.strictEqual(noInfo.content, content, "noInfo content failed");
83+
assert.deepStrictEqual(noInfo.info, undefined, "noInfo info failed");
8484
// mutiInfo
85-
assert.notStrictEqual(mutiInfo.info, undefined, "mutiInfo info faild");
85+
assert.notStrictEqual(mutiInfo.info, undefined, "mutiInfo info failed");
8686
});
8787
});
8888

@@ -156,16 +156,16 @@ suite('CiteFunction Web TestSuite', () => {
156156

157157
// Assert
158158
// title
159-
assert.strictEqual(tOnlyContentStr, content + content, "title only content faild");
160-
assert.strictEqual(tOnlyTagStr, content + content, "title only tag faild");
161-
assert.strictEqual(tOnlyArgStr, content + title + content, "title only arg faild");
162-
assert.strictEqual(tBothInStr, content + title + content, "title both in faild");
163-
assert.strictEqual(tBothOutStr, content + content + title, "title both out faild");
159+
assert.strictEqual(tOnlyContentStr, content + content, "title only content failed");
160+
assert.strictEqual(tOnlyTagStr, content + content, "title only tag failed");
161+
assert.strictEqual(tOnlyArgStr, content + title + content, "title only arg failed");
162+
assert.strictEqual(tBothInStr, content + title + content, "title both in failed");
163+
assert.strictEqual(tBothOutStr, content + content + title, "title both out failed");
164164
// notitle
165-
assert.strictEqual(nOnlyContentStr, content + content, "no only content faild");
166-
assert.strictEqual(nOnlyTagStr, content, "no only tag faild");
167-
assert.strictEqual(nOnlyArgStr, content + content, "no only arg faild");
165+
assert.strictEqual(nOnlyContentStr, content + content, "no only content failed");
166+
assert.strictEqual(nOnlyTagStr, content, "no only tag failed");
167+
assert.strictEqual(nOnlyArgStr, content + content, "no only arg failed");
168168
assert.strictEqual(nBothInStr, "", "no both in falid");
169-
assert.strictEqual(nBothOutStr, content, "no both out faild");
169+
assert.strictEqual(nBothOutStr, content, "no both out failed");
170170
});
171171
});

0 commit comments

Comments
 (0)