This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<UserSettings> | |
<ApplicationIdentity version="15.0"/> | |
<ToolsOptions> | |
<ToolsOptionsCategory name="Environment" RegisteredName="Environment"/> | |
</ToolsOptions> | |
<Category name="Environment_Group" RegisteredName="Environment_Group"> | |
<Category name="Environment_FontsAndColors" Category="{1EDA5DD4-927A-43a7-810E-7FD247D0DA1D}" Package="{DA9FB551-C724-11d0-AE1F-00A0C90FFFC3}" RegisteredName="Environment_FontsAndColors" PackageName="Visual Studio Environment Package"> | |
<PropertyValue name="Version">2</PropertyValue> | |
<FontsAndColors Version="2.0"> | |
<Theme Id="{A4D6A176-B948-4B29-8C66-53C97A1ED7D0}"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static DocumentService _workItemDocumentService; | |
private static void OpenWorkItem(TeamFoundationServer tfsServer, int workItemId) | |
{ | |
if(_workItemDocumentService == null) | |
_workItemDocumentService = (DocumentService)DTE2.DTE.GetObject("Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.DocumentService"); | |
// you can also use _workItemDocumentService = (DocumentService)Package.GetGlobalService(typeof(DocumentService)); | |
IWorkItemDocument workItemDocument = workItemDocumentService.GetWorkItem(activeTFS, workItemId, this); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Threading; | |
namespace WordEnumerable | |
{ | |
/// <summary> | |
/// TextParser was taken mostly (some minor refactoring took place only) from | |
/// <see cref="http://www.blackbeltcoder.com/Articles/strings/a-text-parsing-helper-class">Jonathan Wood's article on blackbeltcoder.com</see>. | |
/// All (c) etc in this class are his. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
namespace WordEnumerable | |
{ | |
internal class WordEnumerator : IEnumerator<string> | |
{ | |
private readonly TextParser _textParser; | |
private int _currentStartPosition; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
namespace WordEnumerable | |
{ | |
public class WordEnumerable : IEnumerable<string> | |
{ | |
/// <summary> | |
/// Stores initial text for GetEnumerator() / enumerator re-creation | |
/// </summary> |