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 !
- Host: GitHub
- URL: https://github.com/zardoy/vscode-ide-scripting
- Owner: zardoy
- License: mit
- Created: 2022-09-04T21:15:27.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-01T09:42:32.000Z (almost 3 years ago)
- Last Synced: 2025-02-13T03:41:30.595Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=zardoy.ide-scripting
- Size: 1.18 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
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

---
