"use strict" ; import vscode = require ( "vscode" ) ; import fs = require ( "fs" ) ; import { SpecflowDriver } from "./driver/SpecflowDriver" ; import { Driver , DriverContext } from "./driver/Common" ; export class SpecflowCompletionItemProvider implements vscode . CompletionItemProvider { public provideCompletionItems ( document , position , token ) { var specflowDriver = new SpecflowDriver ( new DefaultDriverContext ( ) ) ; return specflowDriver . suggestBindings ( ) ; } ; } class DefaultDriverContext implements DriverContext { public getAllFiles ( include , exclude ) { return vscode . workspace . findFiles ( include , exclude , 200 ) ; } ; }