Exemple #1
0
        protected override void Initialize()
        {
            EncodingCommand.Initialize(this);
            TransformCommand.Initialize(this);
            SortLinesCommand.Initialize(this);
            RemoveEmptyLinesCommand.Initialize(this);
            RemoveDuplicateLinesCommand.Initialize(this);

            base.Initialize();
        }
Exemple #2
0
        protected override async System.Threading.Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            await Logger.InitializeAsync(this, Vsix.Name);

            var dte = await GetServiceAsync(typeof(DTE)) as DTE2;

            var commandService = await GetServiceAsync(typeof(IMenuCommandService)) as OleMenuCommandService;

            EncodingCommand.Initialize(dte, commandService);
            TransformCommand.Initialize(dte, commandService);
            SortLinesCommand.Initialize(dte, commandService);
            RemoveEmptyLinesCommand.Initialize(dte, commandService);
            RemoveDuplicateLinesCommand.Initialize(dte, commandService);
        }