Skip to content

Commit

Permalink
Adding TypeScript language (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocav authored and ahmelsayed committed Oct 7, 2016
1 parent 2c9d206 commit 3116a25
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,15 @@ export class MonacoEditorDirective {
break;
case "py":
this._language = "python";
break;
case "ts":
this._language = "typescript";
break;
// Monaco does not have sh, php
case "sh":
case "php":
default:
this._language = undefined;
break;
}

Expand Down
4 changes: 4 additions & 0 deletions AzureFunctions.Client/app/models/function-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export class FunctionInfoHelper {
lang = "Python";
//python
break;
case "ts":
lang = "TypeScript";
//typescript
break;
}
return lang;
}
Expand Down

0 comments on commit 3116a25

Please sign in to comment.