async Task DocCommentIdCaretPosAsync(IVsEditorAdaptersFactoryService editorAdapter, IVsTextManager textManager)
{
ErrorHandler.ThrowOnFailure(textManager.GetActiveView(1, null, out IVsTextView activeView));
activeView.GetCaretPos(out int line, out int col);
activeView.GetNearestPosition(line, col, out int pos, out int vspace);
var textView = editorAdapter.GetWpfTextView(activeView);
var document = textView.TextSnapshot.GetOpenDocumentInCurrentContextWithChanges();
var semanticModel = await document.GetSemanticModelAsync();
var symbol = semanticModel.GetEnclosingSymbol(pos);
Console.WriteLine(symbol.GetDocumentationCommentId());
}
I just need to find the F# equivalent! 😄
Add support for top level namespace declaration in FSharp files. Currently TestDriven.Net only looks for module declarations.
Asking @TIHan about this here: https://twitter.com/jcansdale/status/1017660377201610753
The code to support this in C# looks like this:
I just need to find the F# equivalent! 😄
Add support for top level
namespace
declaration in FSharp files. Currently TestDriven.Net only looks formodule
declarations.See also: https://stackoverflow.com/questions/44360348/f-unit-test-error-xunit-net-testdriven-net https://twitter.com/rahulpnath/status/1006407482963456001
FileCodeModel
in F#?: https://github.com/dotnet/project-system/issues/3664