Adopt native promises

This commit is contained in:
Alex Dima 2019-01-09 16:14:09 +01:00
parent 03a82594d2
commit 35c57b5990
50 changed files with 54 additions and 204 deletions

View file

@ -6,12 +6,9 @@
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: 'redshift',
extensions: [],
aliases: ['Redshift', 'redshift'],
loader: () => _monaco.Promise.wrap(import('./redshift'))
loader: () => import('./redshift')
});