diff --git a/extensions/vscode-api-tests/src/singlefolder-tests/webview.test.ts b/extensions/vscode-api-tests/src/singlefolder-tests/webview.test.ts
index fd97ea91728..83357278c5d 100644
--- a/extensions/vscode-api-tests/src/singlefolder-tests/webview.test.ts
+++ b/extensions/vscode-api-tests/src/singlefolder-tests/webview.test.ts
@@ -33,7 +33,7 @@ suite.skip('vscode API - webview', () => {
test('webviews should be able to send and receive messages', async () => {
const webview = _register(vscode.window.createWebviewPanel(webviewId, 'title', { viewColumn: vscode.ViewColumn.One }, { enableScripts: true }));
- const firstResponse = getMesssage(webview);
+ const firstResponse = getMessage(webview);
webview.webview.html = createHtmlDocumentWithBody(/*html*/`
`);
await ready;
- const firstResponse = getMesssage(webview);
+ const firstResponse = getMessage(webview);
assert.strictEqual(Math.round((await firstResponse).value), 100);
@@ -214,7 +214,7 @@ suite.skip('vscode API - webview', () => {
test('webviews with retainContextWhenHidden should be able to recive messages while hidden', async () => {
const webview = _register(vscode.window.createWebviewPanel(webviewId, 'title', { viewColumn: vscode.ViewColumn.One }, { enableScripts: true, retainContextWhenHidden: true }));
- const ready = getMesssage(webview);
+ const ready = getMessage(webview);
webview.webview.html = statefulWebviewHtml;
await ready;
@@ -264,7 +264,7 @@ suite.skip('vscode API - webview', () => {
vscode.postMessage({ type: 'ready' });
`);
- const ready = getMesssage(webview);
+ const ready = getMessage(webview);
await ready;
{
@@ -341,7 +341,7 @@ suite.skip('vscode API - webview', () => {
img.addEventListener('error', () => { vscode.postMessage({ value: false }); });
`);
- const firstResponse = getMesssage(webview);
+ const firstResponse = getMessage(webview);
assert.strictEqual((await firstResponse).value, true);
});
@@ -365,7 +365,7 @@ suite.skip('vscode API - webview', () => {
assert.strictEqual((await viewStateChanged).webviewPanel.viewColumn, vscode.ViewColumn.One);
- const firstResponse = getMesssage(webview);
+ const firstResponse = getMessage(webview);
webview.webview.html = createHtmlDocumentWithBody(/*html*/`
`);
-function getMesssage(webview: vscode.WebviewPanel): Promise {
+function getMessage(webview: vscode.WebviewPanel): Promise {
return new Promise(resolve => {
const sub = webview.webview.onDidReceiveMessage(message => {
sub.dispose();
@@ -447,7 +447,7 @@ function getMesssage(webview: vscode.WebviewPanel): Promise {
}
function sendRecieveMessage(webview: vscode.WebviewPanel, message: T): Promise {
- const p = getMesssage(webview);
+ const p = getMessage(webview);
webview.webview.postMessage(message);
return p;
}