public async Task InitializeCommandsAsync(AsyncPackage aAsyncPackage) { if (CompileCommand.Instance == null) { await CompileCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kCompileId); await CompileCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kCompileToolbarId); } if (TidyCommand.Instance == null) { await TidyCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kTidyId); await TidyCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kTidyToolbarId); await TidyCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kTidyFixId); await TidyCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kTidyFixToolbarId); } if (FormatCommand.Instance == null) { await FormatCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kClangFormat); await FormatCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kClangFormatToolbarId); } if (IgnoreFormatCommand.Instance == null) { await IgnoreFormatCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kIgnoreFormatId); } if (IgnoreCompileCommand.Instance == null) { await IgnoreCompileCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kIgnoreCompileId); } if (StopCommand.Instance == null) { await StopCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kStopClang); } if (SettingsCommand.Instance == null) { await SettingsCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kSettingsId); } if (TidyConfigCommand.Instance == null) { await TidyConfigCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kITidyExportConfigId); } if (Logout.Instance == null) { await Logout.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kLogoutId); } }
private void Initialize(string ignoreFiles) { ThreadHelper.ThrowIfNotOnUIThread(); mDte = (DTE2)ServiceProvider.GlobalProvider.GetService(typeof(DTE)); SettingsTestUtility.ResetClangGeneralOptionsView(); mIgnoreCompileCommand = IgnoreCompileCommand.Instance; mGeneralOptions = SettingsProvider.GeneralSettings; mGeneralOptions.FilesToIgnore = ignoreFiles; }
public async Task InitializeCommandsAsync(AsyncPackage aAsyncPackage) { if (CompileCommand.Instance == null) { await CompileCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kCompileId); await CompileCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kCompileToolbarId); } if (TidyCommand.Instance == null) { await TidyCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kTidyId); await TidyCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kTidyToolbarId); await TidyCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kTidyFixId); await TidyCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kTidyFixToolbarId); } if (FormatCommand.Instance == null) { await FormatCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kClangFormat); await FormatCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kClangFormatToolbarId); } if (IgnoreFormatCommand.Instance == null) { await IgnoreFormatCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kIgnoreFormatId); } if (IgnoreCompileCommand.Instance == null) { await IgnoreCompileCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kIgnoreCompileId); } if (StopCommand.Instance == null) { await StopCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kStopClang); } if (JsonCompilationDatabaseCommand.Instance == null) { await JsonCompilationDatabaseCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kJsonCompilationDatabase); } if (SettingsCommand.Instance == null) { await SettingsCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kSettingsId); } }
public async System.Threading.Tasks.Task InitializeAsyncCommands(AsyncPackage aAsyncPackage) { if (null == CompileCommand.Instance) { await CompileCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kCompileId); } if (null == TidyCommand.Instance) { await TidyCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kTidyId); await TidyCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kTidyFixId); await TidyCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kTidyFixMenuId); } if (null == ClangFormatCommand.Instance) { await ClangFormatCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kClangFormat); } if (IgnoreFormatCommand.Instance == null) { await IgnoreFormatCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kIgnoreFormatId); } if (IgnoreCompileCommand.Instance == null) { await IgnoreCompileCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kIgnoreCompileId); } if (null == StopClang.Instance) { await StopClang.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kStopClang); } if (null == SettingsCommand.Instance) { await SettingsCommand.InitializeAsync(this, aAsyncPackage, mCommandSet, CommandIds.kSettingsId); } }