Skip to content

Commit

Permalink
add pictures
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Oct 9, 2020
1 parent 2a109c1 commit a0ee91d
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 29 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@

## amis vscode plugin

此项目的主要目标是用于提升使用[amis](https://github.com/baidu/amis)进行开发及二次开发的各种项目,在vscode中的开发体验及开发速度
此项目的主要目标是用于帮助使用[amis](https://github.com/baidu/amis)进行开发及二次开发的各种项目,提升在vscode中开发的体验及效率。

自动补全

![autocompletion](./pictures/20201009171003.png)

信息提示

![hover](./pictures/20201009171057.png)

## 安装

Expand Down
Binary file added pictures/20201009171003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pictures/20201009171057.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 28 additions & 28 deletions server/test/suite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,44 @@ import * as glob from 'glob'
// const testFiles = '**/+(emmetCompleteTag|autoCloseTag).test.js'
// const testFiles = '**/+(emmetCompleteTag).test.js'
const files = [
'dryrun'
'dryrun'
]
const testFiles = `**/+(${files.join('|')}).test.js`
// const testFiles = '**/+(emmetCompleteTag).benchmark.js'

export function run(): Promise<void> {
// Create the mocha test
const mocha = new Mocha({
ui: 'tdd',
timeout: 1000000,
})
// Create the mocha test
const mocha = new Mocha({
ui: 'tdd',
timeout: 1000000,
})

mocha.bail(true)
mocha.bail(true)

const testsRoot = path.resolve(__dirname, '..')
const testsRoot = path.resolve(__dirname, '..')

return new Promise((resolve, reject) => {
glob(testFiles, { cwd: testsRoot }, (err, files) => {
console.log(files)
if (err) {
return reject(err)
}
return new Promise((resolve, reject) => {
glob(testFiles, { cwd: testsRoot }, (err, files) => {
console.log(files)
if (err) {
return reject(err)
}

// Add files to the test suite
files.forEach(f => mocha.addFile(path.resolve(testsRoot, f)))
// Add files to the test suite
files.forEach(f => mocha.addFile(path.resolve(testsRoot, f)))

try {
// Run the mocha test
mocha.run(failures => {
if (failures > 0) {
reject(new Error(`${failures} tests failed.`))
} else {
resolve()
}
try {
// Run the mocha test
mocha.run(failures => {
if (failures > 0) {
reject(new Error(`${failures} tests failed.`))
} else {
resolve()
}
})
} catch (err) {
reject(err)
}
})
} catch (err) {
reject(err)
}
})
})
}

0 comments on commit a0ee91d

Please sign in to comment.