Skip to content

[LSP] Disable snippets in Nexus#48805

Merged
2 commits merged intodotnet:masterfrom
allisonchou:LSPSnippetDisable
Oct 21, 2020
Merged

[LSP] Disable snippets in Nexus#48805
2 commits merged intodotnet:masterfrom
allisonchou:LSPSnippetDisable

Conversation

@allisonchou
Copy link
Contributor

Possibly fixes snippet crash https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1231856. This bug only replicates in Nexus and not Liveshare. I was having a lot of trouble getting running RoslynDev hive on the Nexus client, so I thought it would be the most efficient to open this low-risk PR (since snippets shouldn't work yet in LSP anyway) and verify whether it fixes the problem once inserted into VS.

Add check disabling snippets in cloud scenario
@allisonchou allisonchou added Area-IDE LSP issues related to the roslyn language server protocol implementation labels Oct 21, 2020
@allisonchou allisonchou requested a review from dibarbet October 21, 2020 01:11
@allisonchou allisonchou requested a review from a team as a code owner October 21, 2020 01:11
AssertIsForeground();

// Don't execute in cloud environment, should be handled by LSP
if (subjectBuffer.IsInCloudEnvironmentClientContext())
Copy link
Member

Choose a reason for hiding this comment

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

I think we should just move this check to AreSnippetsEnabled, that way it happens earlier and still covers all entry points

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved!

@ghost
Copy link

ghost commented Oct 21, 2020

Hello @allisonchou!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Auto-approval

@ghost ghost merged commit 5cb8f36 into dotnet:master Oct 21, 2020
@ghost ghost added this to the Next milestone Oct 21, 2020
@allisonchou allisonchou deleted the LSPSnippetDisable branch October 21, 2020 20:50
@allisonchou allisonchou modified the milestones: Next, 16.9.P2 Nov 24, 2020
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE auto-merge LSP issues related to the roslyn language server protocol implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants