Commit Graph

1399 Commits

Author SHA1 Message Date
Ajay Bhargav Baaskaran fb68a31ad5 Moved RazorCodeDocumentProvider from Mef to ILanguageService 2017-12-11 16:11:49 -08:00
ASP.NET CI 3ee6426503 Update dependencies.props
[auto-updated: dependencies]
2017-12-10 13:37:33 -08:00
N. Taylor Mullen 4476a72ecf Refactor `ImportDocumentManager` to not be windows specific.
- Added a `FileChangeTracker`, `FileChangeTrackerFactory` and corresponding implementations. These types now enable us to implement Windows and Mac file change tracking instead of replacing the entire import manager.
- Changed the import manager to be a Roslyn based service.
- Moved import manager implementation to the editor.razor assembly now since it no longer depends on windows.
- Updated import manager unit tests.
- Added import manager integration test
- Added file change tracking tests.

#1804
2017-12-08 16:34:43 -08:00
N. Taylor Mullen 65cdddf5d9 Make DefaultVisualStudioDocumentTrackerFactory VS agnostic.
- Moved `DefaultVisualStudioDocumentTrackerFactory` from language services Razor to editor Razor.

#1789
2017-12-08 16:34:43 -08:00
N. Taylor Mullen 37eed518f8 Make VisualStudioRazorParserFactory VisualStudio agnostic.
- Removed the `Microsoft.VisualStudio.Language.IntelliSense` dependency from `Microsoft.VisualStudio.Editor.Razor` because it isn't supported in VS for mac.
- Replaced `ICompletionBroker` usage in the VS agnostic dll with a new abstract type `VisualStudioCompletionBroker`. This also enables us to implement completion
- Added Mac implementation of new `VisualStudioCompletionBroker`.

#1789
2017-12-08 16:34:43 -08:00
Ajay Bhargav Baaskaran f708c463d9 Export RazorDocumentManager using roslyn services 2017-12-07 15:50:30 -08:00
N. Taylor Mullen 7cd1b6a5d0 Make BraceSmartIndenterFactory VisualStudio agnostic.
- Moved the `BraceSmartIndenterFactory` into the `Microsoft.VisualStudio.Editor.Razor` assembly so it can be used on Windows and Mac.
- Changed how the factory is exported since its only used internally. It now uses Roslyn services in the context of a Razor language service to be consistent with how the rest of Razor works.

#1789
2017-12-07 09:58:05 -08:00
N. Taylor Mullen ba496bf1af Add a way for tooling to determine if a span corresponds to a TagHelper.
- This enables the editor to ask us if an HTML parent happens to be a TagHelper.

#1778
2017-12-06 11:49:20 -08:00
Ajay Bhargav Baaskaran 6be80e7bed Use windows VS error reporter instead of the no-op default 2017-12-05 13:02:37 -08:00
N. Taylor Mullen 7ec0e9fb23 Make GenerateMPack target more resilient. 2017-12-05 11:59:42 -08:00
N. Taylor Mullen a0f4101453 Add Mac implementation of ErrorReporter.
- Moved the existing error reporter factory temporarily into the windows specific language service assembly so it did not conflict with the Mac specific implementation. The Windows VS API will be exposed later via https://github.com/aspnet/Razor/issues/1795.
- Updated the error reporter factory to specify service layers so the VS for mac implementation took priority.

#1789
2017-12-05 11:51:25 -08:00
N. Taylor Mullen bc8b2c86fd Add Mac implementation of VisualStudioForegroundDispatcher.
#1789
2017-12-05 10:11:14 -08:00
N. Taylor Mullen f67670927f Add Mac implementation of VisualStudioWorkspaceAccessor.
#1789
2017-12-05 10:01:51 -08:00
N. Taylor Mullen cd1d57f97b Add MonoDevelop.Core and MonoDevelop.Ide addin dependencies.
- Added the runtime package dependency to allow for proper assembly building.
- Added a new external package source for the MonoDevelop.Sdk.
- Had to change the MPack version to be compliant with VS for mac versioning support.

#1789
2017-12-04 17:35:54 -08:00
Ryan Brandenburg 3da41ae4bb Remove unneeded exclusion 2017-12-04 12:49:33 -08:00
Ajay Bhargav Baaskaran 8abbaa46cc Added imports tracking to TagHelper project system
- #1744
2017-12-01 16:54:36 -08:00
Ryan Brandenburg 99cb120571 Update bootstrappers 2017-12-01 12:29:02 -08:00
N. Taylor Mullen b6fb9bda50 Remove flaky, already tested test.
- This test was flaky due to the nature of what it was testing and had negative value due to the testing complexities. In the integration test pieces (running VS) this is already tested thoroughly.
2017-11-30 10:41:26 -08:00
Pranav K ee3bc17559 Specify runtime versions to install 2017-11-29 14:09:29 -08:00
N. Taylor Mullen 182714c324 Move away from WPF text view connection listener.
- Had to add a new NuGet feed to access latest VS bits.
- Updated tests to react to new ITextViewConnectionListener.

#1735
2017-11-28 10:42:35 -08:00
N. Taylor Mullen df1d0bbcd4 Change text buffer code document provider to follow our public API MEF rules. 2017-11-27 17:28:18 -08:00
N. Taylor Mullen 345eb29c62 Update code doc provider to only rely on VSRazorParser.
- Prior to this change the code document provider took in many sub-providers to allow for understanding of the old RazorEditorParser AND VisualStudioRazorParser. Now that RazorEditorParser is gone we can also change the code doc provider.
2017-11-27 16:54:53 -08:00
Ajay Bhargav Baaskaran 0a76ad7017 Added TagHelper discovery to Razor project systen 2017-11-22 10:56:52 -08:00
Ajay Bhargav Baaskaran 90120f6a3b Added necessary infrastructure for Tag helper project system imports
tracking
2017-11-22 08:48:57 -08:00
Pranav K ece080466b Replace aspnetcore-ci-dev feed with aspnetcore-dev 2017-11-21 15:53:12 -08:00
Nate McMaster 5acef44685 Use MSBuild to set NuGet feeds instead of NuGet.config 2017-11-20 12:30:45 -08:00
N. Taylor Mullen 00ab662429 Merge branch 'rel/vs15.6' into dev 2017-11-20 02:32:12 -08:00
N. Taylor Mullen 4af7a47aac Change code document provider to work in old Razor.
- Prior to this the old code document provider would utilize the editor factory service which would incorrectly create a parser for older Razor documents. This was wrong on many levels.
- Updated tests to react to new expectations.
2017-11-20 02:26:14 -08:00
Pranav K adaa204b06 Use MicrosoftNETCoreApp21PackageVersion to determine the runtime framework in netcoreapp2.1 2017-11-17 13:00:26 -08:00
N. Taylor Mullen 4f7aab7720 Prevent Razor Core from running in non-core scenarios.
- Also added tests.

#1776
2017-11-16 16:23:24 -08:00
N. Taylor Mullen fa2d79296a Merge branch 'dev' into rel/vs15.6 2017-11-15 16:55:09 -08:00
Ajay Bhargav Baaskaran 9a2e3ceab6 Added public api changes for TagHelper project system 2017-11-15 15:52:02 -08:00
N. Taylor Mullen 6cf78ceb1b Move TagHelperCompletionService to VS.Editor.Razor and export it.
- Moved service poco types: `AttributeCompletionContext`, `AttributeCompletionResult`, `ElementCompletionContext` and `ElementCompletionResult`.
- Exported DefaultTagHelperCompletionService.

#1762
2017-11-15 13:01:06 -08:00
N. Taylor Mullen 458111ad03 Move TagHelperFactsService and export it.
- Created a `TagHelperFactsServiceInternal` and export its public counterpart in `Microsoft.VisualStudio.Editor.Razor`.
- Updated tests to react to new naming.

#1762
2017-11-15 13:01:06 -08:00
N. Taylor Mullen 520876e55d Re-add some Legacy ITagHelperResolver infrastructure.
- This is required until the TagHelperProjectSystem is completed.
2017-11-14 16:49:35 -08:00
N. Taylor Mullen 44b4bf6bc6 Cleanup legacy and unintentionally public bits.
- Made `RazorTemplateEngineFactoryService`, `TagHelperResolver`, `RazorDiagnosticJsonConverter` and `RazorLanguageServiceException` internal.
- Deleted all items in the Legacy folder in VisualStudio.LanguageServices.Razor and `RazorLanguageServiceException`.

#1762
2017-11-14 15:42:40 -08:00
N. Taylor Mullen 44e5874029 Move RazorSyntaxFactsService to VS.Editor.Razor and export it.
- Moved service poco types: `AcceptedCharacters`, `BlockKind`, `ClassifiedSpan`, `SpanKind` and `TagHelperSpan` into VS.Editor.Razor.

#1762
2017-11-14 15:42:40 -08:00
N. Taylor Mullen de23788019 Move indentation service to VS.Editor.Razor and export it.
- Removed indentation service extensions and made `GetDesiredIndentation` understand `ITextSnapshot`s and `ITextLineSnapshot`.
- Updated our test `StringTextSnapshot` implementation to have the required features our indentation tests require.
- Updated indentation service tests to use new API.

#1762
2017-11-14 15:42:40 -08:00
N. Taylor Mullen 44a47182b2 Add EditorSettingsManager as an exported MEF component.
- Internalized the core implementation of `EditorSettingsManagerInternal`.
- Added a `VisualStudioWorkspaceAccessor` to enable the `Microsoft.VisualStudio.Editor.Razor` project to have access to the current workspace. Only added the Windows specific implementation of this type since the VS for mac implementation will require infrastructural work to make happen.

#1762
2017-11-14 15:42:40 -08:00
Pranav K 82247fbb09 Update samples and tests to target netcoreapp2.1 2017-11-14 09:45:28 -08:00
Pranav K c61e9b3e84 Preparing to update to 2.2 SDK 2017-11-09 16:45:26 -08:00
Nate McMaster 809dedd40c Preserve DotNetPackageVersionPropsPath when restoring with msbuild.exe 2017-11-08 10:17:50 -08:00
N. Taylor Mullen 80fdad0551 Revert "Only use release VS."
This reverts commit 834fd5a5d0.
2017-11-08 09:35:47 -08:00
N. Taylor Mullen 801ad07560 Add TextBuffer snapshot restriction back to VisualStudioRazorParser. 2017-11-07 10:50:06 -08:00
N. Taylor Mullen 399dcca4f2 Make Foreground dispatchable methods noop if parser is disposed.
- Added tests to validate each of the new noopable methods.

#1750
2017-11-06 16:18:43 -08:00
N. Taylor Mullen 834fd5a5d0 Only use release VS. 2017-11-06 15:06:06 -08:00
N. Taylor Mullen a2972ebf1c Dispatch DocumentStructureChanged event on foreground thread.
- Had to add extra logic to track document structure changes so listeners could know if an event was on its way or not.
- Added and fixed some tests.

#1748
2017-11-06 14:49:18 -08:00
Ajay Bhargav Baaskaran 7002dbf20a Added Name and Documentation to DirectiveTokenDescriptor 2017-11-06 10:55:52 -08:00
Nate McMaster 4d737af167 Pin tool and package versions to make builds more repeatable
Part of aspnet/Universe#575
2017-11-01 18:12:08 -07:00
Nate McMaster 6c7551d9c7 Require the Microsoft.VisualStudio.Component.VSSDK workload to be installed 2017-10-30 08:59:20 -07:00