diff --git a/src/vs/editor/node/textMate/TMSyntax.ts b/src/vs/editor/node/textMate/TMSyntax.ts index 78abd5b84f5ce0d9be6105a9a7608b3a817ac1ac..0f23be02c3d3436bc193666d31e8e72fef28ca12 100644 --- a/src/vs/editor/node/textMate/TMSyntax.ts +++ b/src/vs/editor/node/textMate/TMSyntax.ts @@ -32,8 +32,7 @@ export interface ITMSyntaxExtensionPoint { injectTo: string[]; } -// TODO@Martin TS(2.0.2) - Type IJsonSchema has no defined property require. Keeping semantic using any cast -export const grammarsExtPoint: IExtensionPoint = ExtensionsRegistry.registerExtensionPoint('grammars', [languagesExtPoint], { +export const grammarsExtPoint: IExtensionPoint = ExtensionsRegistry.registerExtensionPoint('grammars', [languagesExtPoint], { description: nls.localize('vscode.extension.contributes.grammars', 'Contributes textmate tokenizers.'), type: 'array', defaultSnippets: [{ body: [{ language: '${1:id}', scopeName: 'source.${2:id}', path: './syntaxes/${3:id}.tmLanguage.' }] }], @@ -65,7 +64,7 @@ export const grammarsExtPoint: IExtensionPoint = Exte } } }, - require: ['scopeName', 'path'] + required: ['scopeName', 'path'] } });