Skip to content

Todo settings#63218

Merged
tmat merged 2 commits intodotnet:mainfrom
tmat:TodoSettings
Aug 5, 2022
Merged

Todo settings#63218
tmat merged 2 commits intodotnet:mainfrom
tmat:TodoSettings

Conversation

@tmat
Copy link
Copy Markdown
Member

@tmat tmat commented Aug 4, 2022

Replaces CommentTaskTokenSerializer specialized option provider with standard RoamingProfileStorageLocation storage that reads the options using ISettingManager.

There is an oddity with how this option is stored in the Settings Manager. If the option is read as object the Settings Manager returns Newtonsoft.Json's JArray object. To avoid taking dependency on this type we explicitly query for string[]. If we do so we get back string[] that we can use directly.

Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1585190

@ghost ghost added the Area-IDE label Aug 4, 2022
@tmat tmat force-pushed the TodoSettings branch 2 times, most recently from a6a2056 to c814594 Compare August 4, 2022 20:53
@tmat tmat marked this pull request as ready for review August 5, 2022 16:55
@tmat tmat requested a review from a team as a code owner August 5, 2022 16:55
@tmat
Copy link
Copy Markdown
Member Author

tmat commented Aug 5, 2022

@jasonmalinowski PTAL

@jasonmalinowski jasonmalinowski self-requested a review August 5, 2022 17:11
return ImmutableArray<TodoCommentDescriptor>.Empty;

var tuples = data.Split('|');
using var _ = ArrayBuilder<TodoCommentDescriptor>.GetInstance(out var result);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit, but we can we pass capacity? (This probaby runs rarely enough to matter though.)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Feel free to ignore unless you have to make some other edit.)

@tmat tmat enabled auto-merge (squash) August 5, 2022 17:39
@tmat tmat merged commit 4a1f4d3 into dotnet:main Aug 5, 2022
@ghost ghost added this to the Next milestone Aug 5, 2022
@tmat tmat deleted the TodoSettings branch August 5, 2022 19:39
}

public static ImmutableArray<TodoCommentDescriptor> Parse(string data)
public static ImmutableArray<TodoCommentDescriptor> Parse(ImmutableArray<string> items)
Copy link
Copy Markdown
Member

@davidwengier davidwengier Aug 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/xamarin/vsmac/pull/8604 would indicate that TypeScript has IVT usage of this. Will try to confirm

@dibarbet dibarbet modified the milestones: Next, 17.4 P2 Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants