Make RazorEditorFactoryService VS agnostic.
- Moved the editor factory service into the Editor dll. It did not have any windows specific functionality within it. #1789
This commit is contained in:
parent
f7636fdfc0
commit
1aff9d0031
|
|
@ -5,10 +5,9 @@ using System;
|
||||||
using System.ComponentModel.Composition;
|
using System.ComponentModel.Composition;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using Microsoft.CodeAnalysis.Razor;
|
using Microsoft.CodeAnalysis.Razor;
|
||||||
using Microsoft.VisualStudio.Editor.Razor;
|
|
||||||
using Microsoft.VisualStudio.Text;
|
using Microsoft.VisualStudio.Text;
|
||||||
|
|
||||||
namespace Microsoft.VisualStudio.LanguageServices.Razor.Editor
|
namespace Microsoft.VisualStudio.Editor.Razor
|
||||||
{
|
{
|
||||||
[System.Composition.Shared]
|
[System.Composition.Shared]
|
||||||
[Export(typeof(RazorEditorFactoryService))]
|
[Export(typeof(RazorEditorFactoryService))]
|
||||||
|
|
@ -74,7 +73,7 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor.Editor
|
||||||
}
|
}
|
||||||
|
|
||||||
EnsureTextBufferInitialized(textBuffer);
|
EnsureTextBufferInitialized(textBuffer);
|
||||||
|
|
||||||
if (!textBuffer.Properties.TryGetProperty(typeof(VisualStudioDocumentTracker), out documentTracker))
|
if (!textBuffer.Properties.TryGetProperty(typeof(VisualStudioDocumentTracker), out documentTracker))
|
||||||
{
|
{
|
||||||
Debug.Fail("Document tracker should have been stored on the text buffer during initialization.");
|
Debug.Fail("Document tracker should have been stored on the text buffer during initialization.");
|
||||||
|
|
@ -2,13 +2,12 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using Microsoft.CodeAnalysis.Razor;
|
using Microsoft.CodeAnalysis.Razor;
|
||||||
using Microsoft.VisualStudio.Editor.Razor;
|
|
||||||
using Microsoft.VisualStudio.Text;
|
using Microsoft.VisualStudio.Text;
|
||||||
using Microsoft.VisualStudio.Utilities;
|
using Microsoft.VisualStudio.Utilities;
|
||||||
using Moq;
|
using Moq;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.VisualStudio.LanguageServices.Razor.Editor
|
namespace Microsoft.VisualStudio.Editor.Razor
|
||||||
{
|
{
|
||||||
public class DefaultRazorEditorFactoryServiceTest
|
public class DefaultRazorEditorFactoryServiceTest
|
||||||
{
|
{
|
||||||
Loading…
Reference in New Issue