Permalink
Browse files

Publish the majority of our Visual Studio code base to GitHub. (chang…

…eset 1408225)
  • Loading branch information...
dotnet-bot authored and RoslynTeam committed Jan 31, 2015
1 parent bf3bb3c commit 2d5f9cc04da1474628534bcd064652f96f6ebc14
Showing 518 changed files with 129,614 additions and 0 deletions.
View
@@ -229,6 +229,28 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServicesVisualStudioImpl",
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SolutionExplorerShim", "VisualStudio\Core\SolutionExplorerShim\SolutionExplorerShim.csproj", "{7BE3DEEB-87F8-4E15-9C21-4F94B0B1C2D6}"
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "BasicVisualStudio", "VisualStudio\VisualBasic\Impl\BasicVisualStudio.vbproj", "{D49439D7-56D2-450F-A4F0-74CB95D620E6}"
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "BasicVisualStudioRepl", "VisualStudio\VisualBasic\Repl\BasicVisualStudioRepl.vbproj", "{B4A38526-5F15-4CA8-B5E9-0BA04E547023}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSharpVisualStudio", "VisualStudio\CSharp\Impl\CSharpVisualStudio.csproj", "{5DEFADBD-44EB-47A2-A53E-F1282CC9E4E9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSharpVisualStudioRepl", "VisualStudio\CSharp\Repl\CSharpVisualStudioRepl.csproj", "{737FF62C-F068-4317-84D0-BFB210C17A4E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSharpVisualStudioTest", "VisualStudio\CSharp\Test\CSharpVisualStudioTest.csproj", "{91C574AD-0352-47E9-A019-EE02CC32A396}"
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ServicesVisualStudioTest", "VisualStudio\Core\Test\ServicesVisualStudioTest.vbproj", "{A1455D30-55FC-45EF-8759-3AEBDB13D940}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VisualStudioComponents", "VisualStudio\Components\VisualStudioComponents.csproj", "{201EC5B7-F91E-45E5-B9F2-67A266CCE6FC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VisualStudioInteractiveComponents", "VisualStudio\VisualStudioInteractiveComponents\VisualStudioInteractiveComponents.csproj", "{2169F526-8A88-435D-8732-486ACA095A6A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VisualStudioInteractiveServices", "VisualStudio\InteractiveServices\VisualStudioInteractiveServices.csproj", "{A31228BB-F05C-4D4A-B98A-0E681D876B7C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ErrorListDiagnostics", "VisualStudio\ErrorList\ErrorListDiagnosticsPackage\ErrorListDiagnostics.csproj", "{5DAB19A2-85A2-478E-8E0A-CA1A4ED923AC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VisualStudioSetupInteractive", "VisualStudio\SetupInteractive\VisualStudioSetupInteractive.csproj", "{C467FEFA-337D-4705-BB5A-BDF41A555FDC}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
Compilers\Core\SharedCollections\SharedCollections.projitems*{5f8d2414-064a-4b3a-9b42-8e2a04246be5}*SharedItemsImports = 4
@@ -1337,6 +1359,72 @@ Global
{7BE3DEEB-87F8-4E15-9C21-4F94B0B1C2D6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{7BE3DEEB-87F8-4E15-9C21-4F94B0B1C2D6}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{7BE3DEEB-87F8-4E15-9C21-4F94B0B1C2D6}.Release|x64.ActiveCfg = Release|Any CPU
{D49439D7-56D2-450F-A4F0-74CB95D620E6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{D49439D7-56D2-450F-A4F0-74CB95D620E6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{D49439D7-56D2-450F-A4F0-74CB95D620E6}.Debug|x64.ActiveCfg = Debug|Any CPU
{D49439D7-56D2-450F-A4F0-74CB95D620E6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{D49439D7-56D2-450F-A4F0-74CB95D620E6}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{D49439D7-56D2-450F-A4F0-74CB95D620E6}.Release|x64.ActiveCfg = Release|Any CPU
{B4A38526-5F15-4CA8-B5E9-0BA04E547023}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{B4A38526-5F15-4CA8-B5E9-0BA04E547023}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{B4A38526-5F15-4CA8-B5E9-0BA04E547023}.Debug|x64.ActiveCfg = Debug|Any CPU
{B4A38526-5F15-4CA8-B5E9-0BA04E547023}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{B4A38526-5F15-4CA8-B5E9-0BA04E547023}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{B4A38526-5F15-4CA8-B5E9-0BA04E547023}.Release|x64.ActiveCfg = Release|Any CPU
{5DEFADBD-44EB-47A2-A53E-F1282CC9E4E9}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{5DEFADBD-44EB-47A2-A53E-F1282CC9E4E9}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{5DEFADBD-44EB-47A2-A53E-F1282CC9E4E9}.Debug|x64.ActiveCfg = Debug|Any CPU
{5DEFADBD-44EB-47A2-A53E-F1282CC9E4E9}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{5DEFADBD-44EB-47A2-A53E-F1282CC9E4E9}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{5DEFADBD-44EB-47A2-A53E-F1282CC9E4E9}.Release|x64.ActiveCfg = Release|Any CPU
{737FF62C-F068-4317-84D0-BFB210C17A4E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{737FF62C-F068-4317-84D0-BFB210C17A4E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{737FF62C-F068-4317-84D0-BFB210C17A4E}.Debug|x64.ActiveCfg = Debug|Any CPU
{737FF62C-F068-4317-84D0-BFB210C17A4E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{737FF62C-F068-4317-84D0-BFB210C17A4E}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{737FF62C-F068-4317-84D0-BFB210C17A4E}.Release|x64.ActiveCfg = Release|Any CPU
{91C574AD-0352-47E9-A019-EE02CC32A396}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{91C574AD-0352-47E9-A019-EE02CC32A396}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{91C574AD-0352-47E9-A019-EE02CC32A396}.Debug|x64.ActiveCfg = Debug|Any CPU
{91C574AD-0352-47E9-A019-EE02CC32A396}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{91C574AD-0352-47E9-A019-EE02CC32A396}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{91C574AD-0352-47E9-A019-EE02CC32A396}.Release|x64.ActiveCfg = Release|Any CPU
{A1455D30-55FC-45EF-8759-3AEBDB13D940}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{A1455D30-55FC-45EF-8759-3AEBDB13D940}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{A1455D30-55FC-45EF-8759-3AEBDB13D940}.Debug|x64.ActiveCfg = Debug|Any CPU
{A1455D30-55FC-45EF-8759-3AEBDB13D940}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{A1455D30-55FC-45EF-8759-3AEBDB13D940}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{A1455D30-55FC-45EF-8759-3AEBDB13D940}.Release|x64.ActiveCfg = Release|Any CPU
{201EC5B7-F91E-45E5-B9F2-67A266CCE6FC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{201EC5B7-F91E-45E5-B9F2-67A266CCE6FC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{201EC5B7-F91E-45E5-B9F2-67A266CCE6FC}.Debug|x64.ActiveCfg = Debug|Any CPU
{201EC5B7-F91E-45E5-B9F2-67A266CCE6FC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{201EC5B7-F91E-45E5-B9F2-67A266CCE6FC}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{201EC5B7-F91E-45E5-B9F2-67A266CCE6FC}.Release|x64.ActiveCfg = Release|Any CPU
{2169F526-8A88-435D-8732-486ACA095A6A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{2169F526-8A88-435D-8732-486ACA095A6A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{2169F526-8A88-435D-8732-486ACA095A6A}.Debug|x64.ActiveCfg = Debug|Any CPU
{2169F526-8A88-435D-8732-486ACA095A6A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{2169F526-8A88-435D-8732-486ACA095A6A}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{2169F526-8A88-435D-8732-486ACA095A6A}.Release|x64.ActiveCfg = Release|Any CPU
{A31228BB-F05C-4D4A-B98A-0E681D876B7C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{A31228BB-F05C-4D4A-B98A-0E681D876B7C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{A31228BB-F05C-4D4A-B98A-0E681D876B7C}.Debug|x64.ActiveCfg = Debug|Any CPU
{A31228BB-F05C-4D4A-B98A-0E681D876B7C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{A31228BB-F05C-4D4A-B98A-0E681D876B7C}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{A31228BB-F05C-4D4A-B98A-0E681D876B7C}.Release|x64.ActiveCfg = Release|Any CPU
{5DAB19A2-85A2-478E-8E0A-CA1A4ED923AC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{5DAB19A2-85A2-478E-8E0A-CA1A4ED923AC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{5DAB19A2-85A2-478E-8E0A-CA1A4ED923AC}.Debug|x64.ActiveCfg = Debug|Any CPU
{5DAB19A2-85A2-478E-8E0A-CA1A4ED923AC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{5DAB19A2-85A2-478E-8E0A-CA1A4ED923AC}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{5DAB19A2-85A2-478E-8E0A-CA1A4ED923AC}.Release|x64.ActiveCfg = Release|Any CPU
{C467FEFA-337D-4705-BB5A-BDF41A555FDC}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
{C467FEFA-337D-4705-BB5A-BDF41A555FDC}.Debug|Mixed Platforms.Build.0 = Debug|x86
{C467FEFA-337D-4705-BB5A-BDF41A555FDC}.Debug|x64.ActiveCfg = Debug|x86
{C467FEFA-337D-4705-BB5A-BDF41A555FDC}.Release|Mixed Platforms.ActiveCfg = Release|x86
{C467FEFA-337D-4705-BB5A-BDF41A555FDC}.Release|Mixed Platforms.Build.0 = Release|x86
{C467FEFA-337D-4705-BB5A-BDF41A555FDC}.Release|x64.ActiveCfg = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -0,0 +1,159 @@
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.ErrorReporting;
using Microsoft.CodeAnalysis.Options;
using Microsoft.VisualStudio.LanguageServices.CSharp.ObjectBrowser;
using Microsoft.VisualStudio.LanguageServices.CSharp.ProjectSystemShim;
using Microsoft.VisualStudio.LanguageServices.CSharp.ProjectSystemShim.Interop;
using Microsoft.VisualStudio.LanguageServices.Implementation;
using Microsoft.VisualStudio.LanguageServices.Implementation.LanguageService;
using Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Interop;
using Roslyn.Utilities;
// NOTE(DustinCa): The EditorFactory registration is in VisualStudioComponents\CSharpPackageRegistration.pkgdef.
// The reason for this is because the ProvideEditorLogicalView does not allow a name value to specified in addition to
// its GUID. This name value is used to identify untrusted logical views and link them to their physical view attributes.
// The net result is that using the attributes only causes designers to be loaded in the preview tab, even when they
// shouldn't be.
namespace Microsoft.VisualStudio.LanguageServices.CSharp.LanguageService
{
// TODO(DustinCa): Put all of this in CSharpPackageRegistration.pkgdef rather than using attributes
// (See vsproject\cool\coolpkg\pkg\VCSharp_Proj_System_Reg.pkgdef for an example).
[Guid(Guids.CSharpPackageIdString)]
[PackageRegistration(UseManagedResourcesOnly = true)]
[ProvideLanguageExtension(typeof(CSharpLanguageService), ".cs")]
[ProvideLanguageService(Guids.CSharpLanguageServiceIdString, "CSharp", languageResourceID: 101, RequestStockColors = true, ShowDropDownOptions = true)]
[ProvideLanguageEditorToolsOptionCategory("CSharp", "Formatting", "#107")]
[ProvideLanguageEditorOptionPage(typeof(Options.AdvancedOptionPage), "CSharp", null, "Advanced", pageNameResourceId: "#102", keywordListResourceId: 306)]
[ProvideLanguageEditorOptionPage(typeof(Options.Formatting.FormattingStylePage), "CSharp", null, @"Code Style", pageNameResourceId: "#114", keywordListResourceId: 313)]
[ProvideLanguageEditorOptionPage(typeof(Options.IntelliSenseOptionPage), "CSharp", null, "IntelliSense", pageNameResourceId: "#103", keywordListResourceId: 312)]
[ProvideLanguageEditorOptionPage(typeof(Options.Formatting.FormattingOptionPage), "CSharp", "Formatting", "General", pageNameResourceId: "#108", keywordListResourceId: 307)]
[ProvideLanguageEditorOptionPage(typeof(Options.Formatting.FormattingIndentationOptionPage), "CSharp", "Formatting", "Indentation", pageNameResourceId: "#109", keywordListResourceId: 308)]
[ProvideLanguageEditorOptionPage(typeof(Options.Formatting.FormattingWrappingPage), "CSharp", "Formatting", "Wrapping", pageNameResourceId: "#110", keywordListResourceId: 311)]
[ProvideLanguageEditorOptionPage(typeof(Options.Formatting.FormattingNewLinesPage), "CSharp", "Formatting", "NewLines", pageNameResourceId: "#111", keywordListResourceId: 309)]
[ProvideLanguageEditorOptionPage(typeof(Options.Formatting.FormattingSpacingPage), "CSharp", "Formatting", "Spacing", pageNameResourceId: "#112", keywordListResourceId: 310)]
[ProvideAutomationProperties("TextEditor", "CSharp", Guids.TextManagerPackageString, profileNodeLabelId: 101, profileNodeDescriptionId: 106, resourcePackageGuid: Guids.CSharpPackageIdString)]
[ProvideAutomationProperties("TextEditor", "CSharp-Specific", packageGuid: Guids.CSharpPackageIdString, profileNodeLabelId: 104, profileNodeDescriptionId: 105)]
[ProvideService(typeof(CSharpLanguageService), ServiceName = "C# Language Service")]
[ProvideService(typeof(ICSharpTempPECompilerService), ServiceName = "C# TempPE Compiler Service")]
internal class CSharpPackage : AbstractPackage<CSharpPackage, CSharpLanguageService, CSharpProject>, IVsUserSettingsQuery
{
private ObjectBrowserLibraryManager _libraryManager;
private uint _libraryManagerCookie;
protected override void Initialize()
{
try
{
base.Initialize();
this.RegisterService<ICSharpTempPECompilerService>(() => new TempPECompilerService(this.Workspace));
RegisterObjectBrowserLibraryManager();
}
catch (Exception e) when(FatalError.Report(e))
{
}
}
protected override VisualStudioWorkspaceImpl CreateWorkspace()
{
return this.ComponentModel.GetService<VisualStudioWorkspaceImpl>();
}
protected override void Dispose(bool disposing)
{
UnregisterObjectBrowserLibraryManager();
base.Dispose(disposing);
}
private void RegisterObjectBrowserLibraryManager()
{
var objectManager = this.GetService(typeof(SVsObjectManager)) as IVsObjectManager2;
if (objectManager != null)
{
_libraryManager = new ObjectBrowserLibraryManager(this);
if (ErrorHandler.Failed(objectManager.RegisterSimpleLibrary(_libraryManager, out _libraryManagerCookie)))
{
_libraryManagerCookie = 0;
}
}
}
private void UnregisterObjectBrowserLibraryManager()
{
if (_libraryManagerCookie != 0)
{
var objectManager = this.GetService(typeof(SVsObjectManager)) as IVsObjectManager2;
if (objectManager != null)
{
objectManager.UnregisterLibrary(_libraryManagerCookie);
_libraryManagerCookie = 0;
}
_libraryManager.Dispose();
_libraryManager = null;
}
}
int IVsUserSettingsQuery.NeedExport(string pageID, out int needExport)
{
// We need to override MPF's definition of NeedExport since it doesn't know about our automation object
needExport = (pageID == "TextEditor.CSharp-Specific") ? 1 : 0;
return VSConstants.S_OK;
}
protected override object GetAutomationObject(string name)
{
if (name == "CSharp-Specific")
{
var workspace = this.ComponentModel.GetService<VisualStudioWorkspace>();
var optionService = workspace.Services.GetService<IOptionService>();
return new Options.AutomationObject(optionService);
}
return base.GetAutomationObject(name);
}
protected override IEnumerable<IVsEditorFactory> CreateEditorFactories()
{
var editorFactory = new CSharpEditorFactory(this);
var codePageEditorFactory = new CSharpCodePageEditorFactory(editorFactory);
return new IVsEditorFactory[] { editorFactory, codePageEditorFactory };
}
protected override CSharpLanguageService CreateLanguageService()
{
return new CSharpLanguageService(this);
}
protected override void RegisterMiscellaneousFilesWorkspaceInformation(MiscellaneousFilesWorkspace miscellaneousFilesWorkspace)
{
miscellaneousFilesWorkspace.RegisterLanguage(
Guids.CSharpLanguageServiceId,
LanguageNames.CSharp,
".csx",
CSharpParseOptions.Default);
}
protected override string RoslynLanguageName
{
get
{
return LanguageNames.CSharp;
}
}
}
}
Oops, something went wrong.

0 comments on commit 2d5f9cc

Please sign in to comment.