import * as vscode from 'vscode' ; import { DevToolsExtensionContext } from "../devToolsExtensionContext" ; import { ALDocCommentsProvider } from "../editorextensions/alDocCommentsProvider" ; import { DevToolsExtensionService } from './devToolsExtensionService' ; export class ALCompletionService extends DevToolsExtensionService { protected _alDocCommentsProvider : ALDocCommentsProvider | undefined ; constructor ( context ) { super ( context ) ; if ( this . _context . alLangProxy . version . major < 6 ) { this . _alDocCommentsProvider = new ALDocCommentsProvider ( this . _context ) ; this . _context . vscodeExtensionContext . subscriptions . push ( vscode . languages . registerCompletionItemProvider ( 'al' , this . _alDocCommentsProvider , '/' ) ) ; } } }