-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move project.json dependency completion & hover to vscode-omnisharp #224
Move project.json dependency completion & hover to vscode-omnisharp #224
Conversation
Remarks:
|
Master is currently locked down. I will follow up over email. |
Ok, I'll wait with removing our support until your stream is open again. |
Any updates here? |
Hi, quick question here. I notice that spaces and tabs are mixed as indents in C# extension source code. Looks like in this PR every indentation is a tab. Just wondering do we have a guideline in place in terms of tab vs spaces? If not, I think it would be nice to settle on one (cough, space, cough). |
import * as nls from 'vscode-nls'; | ||
const localize = nls.loadMessageBundle(); | ||
|
||
const FEED_INDEX_URL = 'https://api.nuget.org/v3/index.json'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it possible to export this value and make it configurable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that would be a future improvement. The feeds to use should probably be picked up from nuget.config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 cool.
@gregg-miskelly Any update here? Please let me know when I can remove the project.json code on the VSCode side... |
@gregg-miskelly @DustinCampbell Any updates here? |
@DustinCampbell this is more your area, so I will leave this to you. |
@aeschli: Sorry for the delay. This definitely won't merge cleanly, so I'm going to take this week and migrate your changes. |
Closing in favor of #1236. |
Until now the code that drove intellisense for dependencies in project.json was sitting in the JSON extension.
We want the omnisharp extension to take ownership.
This pull request implements a completion provider and a hover provider using the newly created 'jsonc-parser' node module that does the JSON file processing.
It gets nuget packages from the nuget API, but is not aware of any nuget configuration files.
In the future the omnisharp extension can also consider to power the completions and hovers directly from the omnisharp server.
We will remove the project.json completion support from the JSON extension for the coming release (end of April).