An open API service indexing awesome lists of open source software.

https://github.com/zardoy/vscode-ide-scripting

True scripting using full VSCode API !
https://github.com/zardoy/vscode-ide-scripting

Last synced: about 1 year ago
JSON representation

True scripting using full VSCode API !

Awesome Lists containing this project

README

          

# IDE Scripting

Effective VSCode API explorer / playground. Enjoy!

## Example Usages

### One-Time Scripts

- run specific command on every line/specific lines
- find line by processing outline
- open every file by using glob to fix diagnostics, that are not displayed in problems panel

## Use & install modules

You can import packages from global node_modules. For example:

```console
npm i -g superb
```

```ts
import superb from 'superb'

info(`You are ${superb.random()}`) // You are awesome
```

Or

```console
npm i -g jsonc-parser
```

```ts
import {parseTree} from 'jsonc-parser'

console.show() // show console
console.dir(parseTree(text), {
depth: 6
}) // observe tree
```

## Code Examples

```ts
// count files
const item = trackDisposable(vscode.window.createStatusBarItem())
item.show()
item.text = '...'
vscode.workspace.findFiles('**/*.js', '**/node_modules/**').then((files) => {
// Want to do something special with each file?
item.text = 'Files: '+files.length
})
```

## Some More Screenshots

![screenshot-1](assets/screenshot-1.png)

---

![screenshot-2](assets/screenshot-2.png)