Skip to content
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

Use views container to add Azure section in activity bar #167

Closed
fiveisprime opened this issue Apr 30, 2018 · 13 comments
Closed

Use views container to add Azure section in activity bar #167

fiveisprime opened this issue Apr 30, 2018 · 13 comments

Comments

@fiveisprime
Copy link
Member

See vscode#43645

Contribute to a new Azure section in the activity bar rather than individual explorers in the files view. The functionality in VS Code will ship in the next release (sometime this week) so let's start thinking through this.

I'm not incredibly concerned about the tremendous shift in location given there will be a new Azure icon in the sidebar and we may be one of the first extensions to contribute to the activity bar. I expect this could be an issue once the bar starts to get cluttered.

@ejizba
Copy link
Contributor

ejizba commented May 1, 2018

@fiveisprime I don't think there's a way to support old and new versions of VS Code with this. As far as I can tell, we have to replace 'explorer' with 'azure' in the following code (which would break people on older version of VS Code):

"views": {
    "explorer": [
        {
            "id": "azureAppService",
            "name": "Azure App Service",
            "when": "config.appService.showExplorer == true"
        }
    ]
}

Unless there's some magic logic we can do in the 'when' clause that I'm not aware of?

@fiveisprime
Copy link
Member Author

Dang! Any ideas @chrisdias?

@chrisdias
Copy link
Member

CC @sandy081

You can specify the min version of VS Code required by setting the engine to ^1.23.0 such that the extension will only be installed/updated for users that have that version (or greater):

In package.json:

  "engines": {
    "vscode": "^1.23.0"
  }

@ejizba
Copy link
Contributor

ejizba commented May 1, 2018

Yes @chrisdias I'm aware of that, but we need to ship App Service before //build and I'm trying to plan for the (hopefully unlikely) case that VS Code doesn't push this update in time

@ejizba
Copy link
Contributor

ejizba commented May 1, 2018

I also prefer not to force people to update so quickly, but I'm willing to cave on that one. Sometimes people want the latest app service tooling without an ugly orange icon! 😜

@chrisdias
Copy link
Member

@EricJizbaMSFT we're hoping to ship VS Code 1.23 this week.

@ejizba
Copy link
Contributor

ejizba commented May 1, 2018

Okey dokey! I suppose it's not too hard to ship the vsix from right before this change if VS Code slips anyways

@ejizba
Copy link
Contributor

ejizba commented May 1, 2018

Woah you can drag and drop these into different orders! @sandy081 that's cool!!!

screen shot 2018-05-01 at 9 19 48 am screen shot 2018-05-01 at 9 21 08 am

@ejizba
Copy link
Contributor

ejizba commented May 1, 2018

@StephenWeatherford @fiveisprime @chrisdias Do you think the JSON Outline for the ARM extension should also be moved to the 'Azure' view? I'm leaning no - since it's directly related to the file you have open, which to me feels appropriate for the file explorer container (Also it doesn't show any remote Azure resources)

@StephenWeatherford
Copy link
Contributor

Good point, I'm inclined to agree, at least until we've played with it a bit.

@StephenWeatherford
Copy link
Contributor

@fiveisprime @chrisdias Is there a plan for letting people know that their cheese was moved from the file view to a separate view? Pretty sure people will be confused by this. Especially since 50% (I’m looking at you, Matt!) are annoyed by update notifications that might tell them.

@fiveisprime
Copy link
Member Author

There will be a note about view containers in the VS Code release notes and people read those. That, along with the fact there will be a new icon in the activity view makes me think people will figure it out pretty quickly.

@ejizba
Copy link
Contributor

ejizba commented May 4, 2018

Closing this as all our extensions should be moved over now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants