Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Osenkov <github@osenkov.com>2018-08-16 04:39:36 +0300
committerKirill Osenkov <github@osenkov.com>2018-08-16 04:39:36 +0300
commitbc41f9e81d80e04feb18214558e4d271a5636078 (patch)
tree0ec24bda997705e82a93845a694da65a23435a90
parent0696080a86590ed2d9f5369b798fe6ca73c66d30 (diff)
Enable previously commented code that depended on Language.Utilities.
-rw-r--r--src/Language/Impl/Language/QuickInfo/AsyncQuickInfoBroker.cs6
-rw-r--r--src/Language/Impl/Language/QuickInfo/AsyncQuickInfoPresentationSession.cs6
-rw-r--r--src/Language/Impl/Language/QuickInfo/AsyncQuickInfoSession.cs10
3 files changed, 11 insertions, 11 deletions
diff --git a/src/Language/Impl/Language/QuickInfo/AsyncQuickInfoBroker.cs b/src/Language/Impl/Language/QuickInfo/AsyncQuickInfoBroker.cs
index 53511a3..3ec7fcb 100644
--- a/src/Language/Impl/Language/QuickInfo/AsyncQuickInfoBroker.cs
+++ b/src/Language/Impl/Language/QuickInfo/AsyncQuickInfoBroker.cs
@@ -8,7 +8,7 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Internal.VisualStudio.Language.Intellisense;
- //using Microsoft.VisualStudio.Language.Utilities;
+ using Microsoft.VisualStudio.Language.Utilities;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Adornments;
using Microsoft.VisualStudio.Text.Editor;
@@ -234,7 +234,7 @@
// Listens for the session being dismissed so that we can remove it from the view's property bag.
private void OnStateChanged(object sender, QuickInfoSessionStateChangedEventArgs e)
{
- //IntellisenseUtilities.ThrowIfNotOnMainThread(this.joinableTaskContext);
+ IntellisenseUtilities.ThrowIfNotOnMainThread(this.joinableTaskContext);
if (e.NewState == QuickInfoSessionState.Dismissed)
{
@@ -252,7 +252,7 @@
private ITrackingPoint PointToViewBuffer(ITextView textView, ITrackingPoint trackingPoint)
{
// Requires UI thread for BufferGraph.
- //IntellisenseUtilities.ThrowIfNotOnMainThread(this.joinableTaskContext);
+ IntellisenseUtilities.ThrowIfNotOnMainThread(this.joinableTaskContext);
if ((trackingPoint == null) || (textView.TextBuffer == trackingPoint.TextBuffer))
{
diff --git a/src/Language/Impl/Language/QuickInfo/AsyncQuickInfoPresentationSession.cs b/src/Language/Impl/Language/QuickInfo/AsyncQuickInfoPresentationSession.cs
index 77a36f0..b159b8d 100644
--- a/src/Language/Impl/Language/QuickInfo/AsyncQuickInfoPresentationSession.cs
+++ b/src/Language/Impl/Language/QuickInfo/AsyncQuickInfoPresentationSession.cs
@@ -8,7 +8,7 @@
using System.Threading.Tasks;
using Microsoft.Internal.VisualStudio.Language.Intellisense;
using Microsoft.VisualStudio.Language.Intellisense;
- //using Microsoft.VisualStudio.Language.Utilities;
+ using Microsoft.VisualStudio.Language.Utilities;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Adornments;
using Microsoft.VisualStudio.Text.Editor;
@@ -94,7 +94,7 @@
private void OnDismissed(object sender, EventArgs e)
{
- //IntellisenseUtilities.ThrowIfNotOnMainThread(this.JoinableTaskContext);
+ IntellisenseUtilities.ThrowIfNotOnMainThread(this.JoinableTaskContext);
this.JoinableTaskContext.Factory.RunAsync(async delegate
{
@@ -137,7 +137,7 @@
private bool ContentRequestsKeepOpen()
{
- //IntellisenseUtilities.ThrowIfNotOnMainThread(this.JoinableTaskContext);
+ IntellisenseUtilities.ThrowIfNotOnMainThread(this.JoinableTaskContext);
if (this.HasInteractiveContent)
{
diff --git a/src/Language/Impl/Language/QuickInfo/AsyncQuickInfoSession.cs b/src/Language/Impl/Language/QuickInfo/AsyncQuickInfoSession.cs
index 91b2764..4e49ef0 100644
--- a/src/Language/Impl/Language/QuickInfo/AsyncQuickInfoSession.cs
+++ b/src/Language/Impl/Language/QuickInfo/AsyncQuickInfoSession.cs
@@ -218,7 +218,7 @@
private async Task<IList<Exception>> ComputeContentAndUpdateAsync(QuickInfoSessionState initialState, bool allowUpdate, CancellationToken cancellationToken)
{
- //IntellisenseUtilities.ThrowIfNotOnMainThread(this.JoinableTaskContext);
+ IntellisenseUtilities.ThrowIfNotOnMainThread(this.JoinableTaskContext);
// Alert subscribers on the UI thread.
this.TransitionTo(QuickInfoSessionState.Calculating, allowUpdate);
@@ -372,7 +372,7 @@
private void ComputeApplicableToSpan(IEnumerable<ITrackingSpan> applicableToSpans)
{
// Requires UI thread for access to BufferGraph.
- //IntellisenseUtilities.ThrowIfNotOnMainThread(this.JoinableTaskContext);
+ IntellisenseUtilities.ThrowIfNotOnMainThread(this.JoinableTaskContext);
ITrackingSpan newApplicableToSpan = Volatile.Read(ref this.applicableToSpan);
@@ -414,7 +414,7 @@
IList<Exception> failures)
{
#pragma warning restore 618
- //IntellisenseUtilities.ThrowIfNotOnMainThread(joinableTaskContext);
+ IntellisenseUtilities.ThrowIfNotOnMainThread(joinableTaskContext);
int i = 0;
var sourcesList = new List<OrderedSource>();
@@ -448,7 +448,7 @@
private Collection<ITextBuffer> GetBuffersForTriggerPoint()
{
- //IntellisenseUtilities.ThrowIfNotOnMainThread(this.JoinableTaskContext);
+ IntellisenseUtilities.ThrowIfNotOnMainThread(this.JoinableTaskContext);
return this.TextView.BufferGraph.GetTextBuffers(
buffer => this.GetTriggerPoint(buffer.CurrentSnapshot) != null);
@@ -456,7 +456,7 @@
protected void TransitionTo(QuickInfoSessionState newState, bool allowUpdate = false)
{
- //IntellisenseUtilities.ThrowIfNotOnMainThread(this.JoinableTaskContext);
+ IntellisenseUtilities.ThrowIfNotOnMainThread(this.JoinableTaskContext);
var oldState = this.State;
bool isValid = false;