Skip to content

Commit

Permalink
Update dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Apr 12, 2024
1 parent f565c08 commit 96a3c67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@
"@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",
"remark-language-server": "^2.0.0",
"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",
Expand Down
10 changes: 5 additions & 5 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 96a3c67

Please sign in to comment.