/// <summary> /// Initializes a new instance of the <see cref="EventControllerBase"/> class. /// </summary> /// <param name="serviceProvider">The service provider.</param> /// <param name="errorListProvider">The error list provider.</param> /// <param name="visualStudioJSLintProvider">The Visual Studio JSLint provider.</param> public EventControllerBase(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider, IVisualStudioJSLintProvider visualStudioJSLintProvider) { this.ServiceProvider = serviceProvider; this.ErrorListProvider = errorListProvider; this.VisualStudioJSLintProvider = visualStudioJSLintProvider; this.Environment = this.ServiceProvider.GetService<DTE, DTE2>(); }
/// <summary> /// Initializes a new instance of the <see cref="EventControllerBase"/> class. /// </summary> /// <param name="serviceProvider">The service provider.</param> /// <param name="errorListProvider">The error list provider.</param> /// <param name="visualStudioJSLintProvider">The Visual Studio JSLint provider.</param> public EventControllerBase(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider, IVisualStudioJSLintProvider visualStudioJSLintProvider) { this.ServiceProvider = serviceProvider; this.ErrorListProvider = errorListProvider; this.VisualStudioJSLintProvider = visualStudioJSLintProvider; this.Environment = this.ServiceProvider.GetService <DTE, DTE2>(); }
public JSLintTagger(ITextBuffer buffer, IJSLintErrorListProvider errorListProvider, string fileName) { this.buffer = buffer; this.errorListProvider = errorListProvider; this.fileName = fileName; this.tags = new List <JSLintTag>(); this.PopulateTags(); this.errorListProvider.ErrorListChange += this.OnErrorListChange; }
/// <summary> /// Initializes a new instance of the <see cref="VisualStudioJSLintProvider" /> class. /// </summary> /// <param name="serviceProvider">The service provider.</param> /// <param name="errorListProvider">The error list provider.</param> /// <param name="jsLintFactory">The JSLint factory.</param> /// <param name="fileSystemWrapper">The file system wrapper.</param> /// <param name="settingsRepository">The settings repository.</param> /// <param name="cacheProvider">The cache provider.</param> public VisualStudioJSLintProvider(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider, IJSLintFactory jsLintFactory, IFileSystemWrapper fileSystemWrapper, ISettingsRepository settingsRepository, ICacheProvider cacheProvider) { this.serviceProvider = serviceProvider; this.errorListProvider = errorListProvider; this.jsLintFactory = jsLintFactory; this.fileSystemWrapper = fileSystemWrapper; this.settingsRepository = settingsRepository; this.cacheProvider = cacheProvider; this.statusBar = this.serviceProvider.GetService<SVsStatusbar, IVsStatusbar>(); this.solutionService = this.serviceProvider.GetService<SVsSolution, IVsSolution>(); }
/// <summary> /// Initializes a new instance of the <see cref="VisualStudioJSLintProvider" /> class. /// </summary> /// <param name="serviceProvider">The service provider.</param> /// <param name="errorListProvider">The error list provider.</param> /// <param name="jsLintFactory">The JSLint factory.</param> /// <param name="fileSystemWrapper">The file system wrapper.</param> /// <param name="settingsRepository">The settings repository.</param> /// <param name="cacheProvider">The cache provider.</param> public VisualStudioJSLintProvider(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider, Func <IJSLintContext> jsLintFactory, IFileSystemWrapper fileSystemWrapper, ISettingsRepository settingsRepository, ICacheProvider cacheProvider) { this.serviceProvider = serviceProvider; this.errorListProvider = errorListProvider; this.jsLintFactory = jsLintFactory; this.fileSystemWrapper = fileSystemWrapper; this.settingsRepository = settingsRepository; this.cacheProvider = cacheProvider; this.statusBar = this.serviceProvider.GetService <SVsStatusbar, IVsStatusbar>(); this.solutionService = this.serviceProvider.GetService <SVsSolution, IVsSolution>(); }
/// <summary> /// Called when the VSPackage is loaded by Visual Studio. /// </summary> protected override void Initialize() { base.Initialize(); var errorListProvider = new JSLintErrorListProvider(this); CurrentErrorListProvider = errorListProvider; this.menuEventController = new MenuEventController(this, errorListProvider); this.documentEventController = new DocumentEventController(this, errorListProvider); this.buildEventController = new BuildEventController(this, errorListProvider); this.menuEventController.Initialize(); this.documentEventController.Initialize(); this.buildEventController.Initialize(); }
public DocumentEventController(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider, IVisualStudioJSLintProvider visualStudioJSLintProvider) : base(serviceProvider, errorListProvider, visualStudioJSLintProvider) { this.documentEvents = this.Environment.Events.DocumentEvents; }
/// <summary> /// Initializes a new instance of the <see cref="VisualStudioJSLintProvider" /> class. /// </summary> /// <param name="serviceProvider">The service provider.</param> /// <param name="errorListProvider">The error list provider.</param> public VisualStudioJSLintProvider(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider) : this(serviceProvider, errorListProvider, new JSLintFactory(), new FileSystemWrapper(), new SettingsRepository(), new CacheProvider()) { }
public MenuEventController(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider, IVisualStudioJSLintProvider visualStudioJSLintProvider, IViewFactory viewFactory) : base(serviceProvider, errorListProvider, visualStudioJSLintProvider) { this.viewFactory = viewFactory; this.menuService = serviceProvider.GetService <IMenuCommandService>(); }
public MenuEventController(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider) : this(serviceProvider, errorListProvider, new VisualStudioJSLintProvider(serviceProvider, errorListProvider), new ViewFactory()) { }
public BuildEventController(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider, IBuildProjectManager buildProjectManager, IVisualStudioJSLintProvider visualStudioJSLintProvider) : base(serviceProvider, errorListProvider, visualStudioJSLintProvider) { this.buildProjectManager = buildProjectManager; this.buildEvents = this.Environment.Events.BuildEvents; }
public BuildEventController(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider) : this(serviceProvider, errorListProvider, new BuildProjectManager(), new VisualStudioJSLintProvider(serviceProvider, errorListProvider)) { }
public DocumentEventController(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider) : this(serviceProvider, errorListProvider, new VisualStudioJSLintProvider(serviceProvider, errorListProvider)) { }
/// <summary> /// Initializes a new instance of the <see cref="VisualStudioJSLintProvider" /> class. /// </summary> /// <param name="serviceProvider">The service provider.</param> /// <param name="errorListProvider">The error list provider.</param> public VisualStudioJSLintProvider(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider) : this(serviceProvider, errorListProvider, () => new JSLintContext(), new FileSystemWrapper(), new SettingsRepository(), new CacheProvider()) { }
public MenuEventController(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider, IVisualStudioJSLintProvider visualStudioJSLintProvider, IViewFactory viewFactory) : base(serviceProvider, errorListProvider, visualStudioJSLintProvider) { this.viewFactory = viewFactory; this.menuService = serviceProvider.GetService<IMenuCommandService>(); }