WIP: GraphQL first shot

This commit is contained in:
Pavel Lang 2018-11-21 04:30:46 +01:00
parent 8f7537dee5
commit f0df74079c
No known key found for this signature in database
GPG key ID: 623A223A57974B55
5 changed files with 199 additions and 0 deletions

View file

@ -0,0 +1,19 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'use strict';
import { registerLanguage } from '../_.contribution';
// Allow for running under nodejs/requirejs in tests
const _monaco: typeof monaco =
typeof monaco === 'undefined' ? (<any>self).monaco : monaco;
registerLanguage({
id: 'graphql',
extensions: ['.graphql', '.gql'],
aliases: ['GraphQL', 'graphql', 'gql'],
mimetypes: ['application/graphql'],
loader: () => _monaco.Promise.wrap(import('./graphql')),
});