diff --git a/package.json b/package.json index c821333..886cf6a 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "@types/vscode": "^1.0.0", "@vscode/test-electron": "^2.0.0", "@vscode/vsce": "^2.0.0", - "esbuild": "^0.19.0", + "esbuild": "^0.20.0", "ovsx": "^0.8.0", "prettier": "^3.0.0", "remark-cli": "^11.0.0", @@ -45,7 +45,7 @@ "remark-preset-wooorm": "^9.0.0", "typescript": "^5.0.0", "vscode-languageclient": "^9.0.0", - "xo": "^0.56.0" + "xo": "^0.58.0" }, "scripts": { "vscode:prepublish": "npm run build", diff --git a/test/index.test.js b/test/index.test.js index 4f39a9d..540ceb7 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -7,16 +7,16 @@ const {commands, extensions, window, workspace} = require('vscode') module.exports.run = async () => { const filePath = path.join(__dirname, 'test.md') - const ext = extensions.getExtension('unifiedjs.vscode-remark') - await ext?.activate() + const extension = extensions.getExtension('unifiedjs.vscode-remark') + await extension?.activate() await test('use the language server', async () => { await fs.writeFile(filePath, '- remark\n- lsp\n- vscode\n') - const doc = await workspace.openTextDocument(filePath) - await window.showTextDocument(doc) + const document = await workspace.openTextDocument(filePath) + await window.showTextDocument(document) await commands.executeCommand('editor.action.formatDocument') - assert.equal(doc.getText(), '* remark\n* lsp\n* vscode\n') + assert.equal(document.getText(), '* remark\n* lsp\n* vscode\n') }) await fs.rm(filePath, {force: true})