Skip to content

Commit 3116a25

Browse files
fabiocavahmelsayed
authored andcommitted
Adding TypeScript language (#642)
1 parent 2c9d206 commit 3116a25

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

AzureFunctions.Client/app/directives/monaco-editor.directive.ts

+6
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,15 @@ export class MonacoEditorDirective {
7575
break;
7676
case "py":
7777
this._language = "python";
78+
break;
79+
case "ts":
80+
this._language = "typescript";
81+
break;
7882
// Monaco does not have sh, php
7983
case "sh":
8084
case "php":
85+
default:
86+
this._language = undefined;
8187
break;
8288
}
8389

AzureFunctions.Client/app/models/function-info.ts

+4
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ export class FunctionInfoHelper {
5252
lang = "Python";
5353
//python
5454
break;
55+
case "ts":
56+
lang = "TypeScript";
57+
//typescript
58+
break;
5559
}
5660
return lang;
5761
}

0 commit comments

Comments
 (0)