Skip to content

Enable NRT in AbstractSyncNamespaceCodeRefactoringProvider#60492

Merged
genlu merged 1 commit intodotnet:mainfrom
genlu:NRTSyncNamespace
Apr 1, 2022
Merged

Enable NRT in AbstractSyncNamespaceCodeRefactoringProvider#60492
genlu merged 1 commit intodotnet:mainfrom
genlu:NRTSyncNamespace

Conversation

@genlu
Copy link
Copy Markdown
Member

@genlu genlu commented Mar 31, 2022

Fixes #60270
Fixes #54363

@genlu genlu requested a review from a team as a code owner March 31, 2022 00:14
@ghost ghost added the Area-IDE label Mar 31, 2022
@genlu genlu enabled auto-merge March 31, 2022 18:26
@genlu genlu closed this Mar 31, 2022
auto-merge was automatically disabled March 31, 2022 23:09

Pull request was closed

@genlu genlu reopened this Mar 31, 2022
@genlu genlu enabled auto-merge March 31, 2022 23:13
return null;

var position = span.Start;
if (await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false) is not CompilationUnitSyntax compilationUnit)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if we're exported for LangNamesd.CSharp, this should always work, right? can you se GetRequiredSyntaxRootASync?

@genlu genlu merged commit 65942dc into dotnet:main Apr 1, 2022
@ghost ghost added this to the Next milestone Apr 1, 2022
/// </summary>
private static bool IsDocumentPathRootedInProjectFolder(Document document)
{
var absoluteDircetoryPath = PathUtilities.GetDirectoryName(document.FilePath);
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.

I was hoping you'd fix the spelling :) dircetory -> directory

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ah, I missed that. Will fix

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.

@genlu I've filed #62507 to track this :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks!

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.

NullRef in AbstractSyncNamespaceCodeRefactoringProvider.State.cs#L161 CSharpSyncNamespaceCodeRefactoringProvider encountered an error

5 participants