/// <summary> /// Creates the services exposed by this project. /// </summary> protected object CreateServices(Type serviceType) { object service = null; if (typeof(SVSMDCodeDomProvider) == serviceType) { service = new PowerShellCodeDomProvider(); } return(service); }
public override int QueryService(ref Guid guidService, out object result) { // // If you have a code dom provider you'd provide it here. if (guidService == typeof(SVSMDCodeDomProvider).GUID) { result = new PowerShellCodeDomProvider(); return(VSConstants.S_OK); } return(base.QueryService(ref guidService, out result)); }
public override int QueryService(ref Guid guidService, out object result) { // // If you have a code dom provider you'd provide it here. if (guidService == typeof(SVSMDCodeDomProvider).GUID) { result = new PowerShellCodeDomProvider(); return(VSConstants.S_OK); } if (guidService == typeof(DesignerContext).GUID && Path.GetExtension(Url)?.Equals(".xaml", StringComparison.OrdinalIgnoreCase) == true) { // Create a DesignerContext for the XAML designer for this file result = DesignerContext; return(VSConstants.S_OK); } return(base.QueryService(ref guidService, out result)); }