when i override globPatterns() method in BaseLanguageClientContribution class error occurs like this
error code like this
src/browser/jcl-language-client-contribution.ts:19:19 - error TS2611: 'globPatterns' is defined as a property in class 'BaseLanguageClientContribution', but is overridden here in 'JclLanguageClientContribution' as an accessor.
my code is
import { BaseLanguageClientContribution, LanguageClientFactory, Languages, Workspace } from ‘@theia/languages/lib/browser’;
import { inject, injectable } from ‘inversify’;
import { JCL_LANGUAGE_ID, JCL_LANGUAGE_NAME, EXTENSIONS_WITH_DOT } from ‘…/common’;@injectable()
export class JclLanguageClientContribution extends BaseLanguageClientContribution {readonly id = JCL_LANGUAGE_ID; readonly name = JCL_LANGUAGE_NAME; constructor( @inject(Workspace) protected readonly workspace: Workspace, @inject(Languages) protected readonly languages: Languages, @inject(LanguageClientFactory) protected readonly languageClientFactory: LanguageClientFactory ) { super(workspace, languages, languageClientFactory); } protected get globPatterns(): string[] { return [ '**/*.{' + EXTENSIONS_WITH_DOT.join()+ '}' ]; } protected get documentSelector(): string[] { return [ JCL_LANGUAGE_ID ]; }
}
it was worked before,
but error occurs suddenly.
How can i do?