javascript.contribution.ts 681 B

1234567891011121314151617
  1. /*---------------------------------------------------------------------------------------------
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Licensed under the MIT License. See License.txt in the project root for license information.
  4. *--------------------------------------------------------------------------------------------*/
  5. 'use strict';
  6. import { registerLanguage } from '../_.contribution';
  7. registerLanguage({
  8. id: 'javascript',
  9. extensions: ['.js', '.es6', '.jsx', '.mjs'],
  10. firstLine: '^#!.*\\bnode',
  11. filenames: ['jakefile'],
  12. aliases: ['JavaScript', 'javascript', 'js'],
  13. mimetypes: ['text/javascript'],
  14. loader: () => import('./javascript')
  15. });