diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c43af5..1c6aef8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +### 0.9.7 (2019-01-29) +* Add config entry to set the executor per filename glob +* Support Maven project (pom.xml) +* Add [CODING](https://e.coding.net/?utm_source=hendry-code-runner&utm_medium=cpc&utm_campaign=hendry-code-runner) as our second sponsor + ### 0.9.6 (2019-01-16) * Add support for Lisp diff --git a/README.md b/README.md index 52d666d..c5e7533 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ If you like this extension, you could become a backer or sponsor via **[Patreon] * Run code file through context menu of file explorer * Run selected code snippet in Text Editor * Run code per Shebang +* Run code per filename glob * Run custom command * Stop code running * View output in Output Window @@ -88,6 +89,17 @@ e.g. To set the executor PATH for ruby, php and html: * Back slash: please use `\\` * If there ares spaces in file path, please use `\"` to surround your file path +You could set the executor per filename [glob](https://en.wikipedia.org/wiki/Glob_(programming)): +```json +{ + "code-runner.executorMapByGlob": { + "pom.xml": "cd $dir && mvn clean package", + "*.test.js": "tap", + "*.js": "node" + } +} +``` + Besides, you could set the default language to run: ```json { diff --git a/package-lock.json b/package-lock.json index a111c60..e717026 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "code-runner", - "version": "0.9.6", + "version": "0.9.7", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0b2e61b..0443546 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "code-runner", "displayName": "Code Runner", "description": "Run C, C++, Java, JS, PHP, Python, Perl, Ruby, Go, Lua, Groovy, PowerShell, CMD, BASH, F#, C#, VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml, R, AppleScript, Elixir, VB.NET, Clojure, Haxe, Obj-C, Rust, Racket, AutoHotkey, AutoIt, Kotlin, Dart, Pascal, Haskell, Nim, D, Lisp", - "version": "0.9.6", + "version": "0.9.7", "publisher": "formulahendry", "icon": "images/logo.png", "engines": {