Skip to content

Commit b342034

Browse files
committed
fix todo in TMSyntax
1 parent ac16d37 commit b342034

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/vs/editor/node/textMate/TMSyntax.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ export interface ITMSyntaxExtensionPoint {
3232
injectTo: string[];
3333
}
3434

35-
// TODO@Martin TS(2.0.2) - Type IJsonSchema has no defined property require. Keeping semantic using any cast
36-
export const grammarsExtPoint: IExtensionPoint<ITMSyntaxExtensionPoint[]> = ExtensionsRegistry.registerExtensionPoint<ITMSyntaxExtensionPoint[]>('grammars', [languagesExtPoint], <any>{
35+
export const grammarsExtPoint: IExtensionPoint<ITMSyntaxExtensionPoint[]> = ExtensionsRegistry.registerExtensionPoint<ITMSyntaxExtensionPoint[]>('grammars', [languagesExtPoint], {
3736
description: nls.localize('vscode.extension.contributes.grammars', 'Contributes textmate tokenizers.'),
3837
type: 'array',
3938
defaultSnippets: [{ body: [{ language: '${1:id}', scopeName: 'source.${2:id}', path: './syntaxes/${3:id}.tmLanguage.' }] }],
@@ -65,7 +64,7 @@ export const grammarsExtPoint: IExtensionPoint<ITMSyntaxExtensionPoint[]> = Exte
6564
}
6665
}
6766
},
68-
require: ['scopeName', 'path']
67+
required: ['scopeName', 'path']
6968
}
7069
});
7170

0 commit comments

Comments
 (0)