From 0ddaffa0922aa328bb1c5366c07d5d22507bb532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noel=20Kim=20=28=EA=B9=80=EB=AF=BC=ED=98=81=29?= Date: Tue, 23 Aug 2022 21:04:37 +0900 Subject: [PATCH] Add CommonJS, ESM extension for TS --- src/basic-languages/typescript/typescript.contribution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic-languages/typescript/typescript.contribution.ts b/src/basic-languages/typescript/typescript.contribution.ts index eaec2a91..8627f521 100644 --- a/src/basic-languages/typescript/typescript.contribution.ts +++ b/src/basic-languages/typescript/typescript.contribution.ts @@ -10,7 +10,7 @@ declare var require: any; registerLanguage({ id: 'typescript', - extensions: ['.ts', '.tsx'], + extensions: ['.ts', '.tsx', '.cts', '.mts'], aliases: ['TypeScript', 'ts', 'typescript'], mimetypes: ['text/typescript'], loader: (): Promise => {