Skip to content

Commit

Permalink
0.9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
formulahendry committed Jan 16, 2019
1 parent 41c5a1d commit 6267d12
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 0.9.6 (2019-01-16)
* Add support for Lisp

### 0.9.5 (2018-10-29)
* We have our first sponsor now: [CodeStream](https://codestream.com/?utm_source=vscmarket&utm_medium=banner&utm_campaign=coderunner)

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

[![Join the chat at https://gitter.im/formulahendry/vscode-code-runner](https://badges.gitter.im/formulahendry/vscode-code-runner.svg)](https://gitter.im/formulahendry/vscode-code-runner?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Marketplace Version](https://vsmarketplacebadge.apphb.com/version/formulahendry.code-runner.svg)](https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner) [![Installs](https://vsmarketplacebadge.apphb.com/installs/formulahendry.code-runner.svg)](https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner) [![Rating](https://vsmarketplacebadge.apphb.com/rating/formulahendry.code-runner.svg)](https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner) [![Build Status](https://travis-ci.org/formulahendry/vscode-code-runner.svg?branch=master)](https://travis-ci.org/formulahendry/vscode-code-runner)

Run code snippet or code file for multiple languages: **C, C++, Java, JavaScript, PHP, Python, Perl, Perl 6, Ruby, Go, Lua, Groovy, PowerShell, BAT/CMD, BASH/SH, F# Script, F# (.NET Core), C# Script, C# (.NET Core), VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml Script, R, AppleScript, Elixir, Visual Basic .NET, Clojure, Haxe, Objective-C, Rust, Racket, AutoHotkey, AutoIt, Kotlin, Dart, Free Pascal, Haskell, Nim, D**, and custom command
Run code snippet or code file for multiple languages: **C, C++, Java, JavaScript, PHP, Python, Perl, Perl 6, Ruby, Go, Lua, Groovy, PowerShell, BAT/CMD, BASH/SH, F# Script, F# (.NET Core), C# Script, C# (.NET Core), VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml Script, R, AppleScript, Elixir, Visual Basic .NET, Clojure, Haxe, Objective-C, Rust, Racket, AutoHotkey, AutoIt, Kotlin, Dart, Free Pascal, Haskell, Nim, D, Lisp**, and custom command

## Sponsor
## Sponsors

[![CodeStream](images/CodeStream.png)](https://codestream.com/?utm_source=vscmarket&utm_medium=banner&utm_campaign=coderunner)

Use Slack inside VS Code and save your technical discussions where they belong - with your codebase. [Try CodeStream](https://codestream.com/?utm_source=vscmarket&utm_medium=banner&utm_campaign=coderunner).
Discuss, review, and share code with your team in VS Code. Links discussions about code to your code. Integrates w/ Slack, Jira, Trello, and Live Share. [Try it free](https://codestream.com/?utm_source=vscmarket&utm_medium=banner&utm_campaign=coderunner).

## Donation

Expand Down Expand Up @@ -90,7 +90,7 @@ Besides, you could set the default language to run:
"code-runner.defaultLanguage": "javascript"
}
```
**For the default language:** It should be set with language id defined in [VS Code](https://github.com/Microsoft/vscode/tree/master/extensions). The languages you could set are `java, c, cpp, javascript, php, python, perl, ruby, go, lua, groovy, powershell, bat, shellscript, fsharp, csharp, vbscript, typescript, coffeescript, swift, r, clojure, haxe, objective-c, rust, racket, ahk, autoit, kotlin, dart, pascal, haskell, nim, d`
**For the default language:** It should be set with language id defined in [VS Code](https://github.com/Microsoft/vscode/tree/master/extensions). The languages you could set are `java, c, cpp, javascript, php, python, perl, ruby, go, lua, groovy, powershell, bat, shellscript, fsharp, csharp, vbscript, typescript, coffeescript, swift, r, clojure, haxe, objective-c, rust, racket, ahk, autoit, kotlin, dart, pascal, haskell, nim, d, lisp`

Also, you could set the executor per file extension:
```json
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"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, Objective-C, Rust, Racket, AutoHotkey, AutoIt, Kotlin, Dart, Pascal, Haskell, Nim, D",
"version": "0.9.5",
"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",
"publisher": "formulahendry",
"icon": "images/logo.png",
"engines": {
Expand Down
8 changes: 0 additions & 8 deletions src/appInsightsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import appInsights = require("applicationinsights");
import * as vscode from "vscode";

const compilers = ["gcc -framework Cocoa", "gcc", "g++", "javac"];

export class AppInsightsClient {
private _client;
private _enableAppInsights;
Expand All @@ -16,12 +14,6 @@ export class AppInsightsClient {

public sendEvent(eventName: string, properties?: { [key: string]: string; }): void {
if (this._enableAppInsights) {
for (const i in compilers) {
if (eventName.indexOf(compilers[i] + " ") >= 0) {
eventName = compilers[i];
break;
}
}
this._client.trackEvent(eventName === "" ? "bat" : eventName, properties);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/codeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,8 @@ export class CodeManager implements vscode.Disposable {
isNewTerminal = true;
}
this._terminal.show(this._config.get<boolean>("preserveFocus"));
executor = this.changeExecutorFromCmdToPs(executor);
this.sendRunEvent(executor, true);
executor = this.changeExecutorFromCmdToPs(executor);
let command = this.getFinalCommandToRunCodeFile(executor, appendFile);
command = this.changeFilePathForBashOnWindows(command);
if (this._config.get<boolean>("clearPreviousOutput") && !isNewTerminal) {
Expand Down

0 comments on commit 6267d12

Please sign in to comment.