Select Subscriptions..., fixes #277
This commit is contained in:
Родитель
7aa966ad7e
Коммит
e104b294cc
14
README.md
14
README.md
|
@ -81,6 +81,20 @@ to get started with the Azure Functions extension.
|
|||
* [Maven 3.0+](https://maven.apache.org/)
|
||||
> NOTE: Once Maven is downloaded, you must ensure that Maven is in your PATH environment variable. You can check this by running: `mvn -v`.
|
||||
|
||||
## Managing Azure Subscriptions
|
||||
|
||||
If you are not signed in to Azure, you will see a "Sign in to Azure..." link. Alternatively, you can select "View->Command Palette" in the VS Code menu, and search for "Azure: Sign In".
|
||||
|
||||
![Sign in to Azure](resources/SignIn.gif)
|
||||
|
||||
If you don't have an Azure Account, you can sign up for one today for free and receive $200 in credits by selecting "Create a Free Azure Account..." or selecting "View->Command Palette" and searching for "Azure: Create an Account".
|
||||
|
||||
You may sign out of Azure by selecting "View->Command Palette" and searching for "Azure: Sign Out".
|
||||
|
||||
To select which subscriptions show up in the extension's explorer, click on the "Select Subscriptions..." button on any subscription node (indicated by a "filter" icon when you hover over it), or select "View->Command Palette" and search for "Azure: Select Subscriptions". Note that this selection affects all VS Code extensions that support the [Azure Account and Sign-In](https://github.com/Microsoft/vscode-azure-account) extension.
|
||||
|
||||
![Select Azure Subscriptions](resources/SelectSubscriptions.gif)
|
||||
|
||||
## Contributing
|
||||
There are a couple of ways you can contribute to this repo:
|
||||
|
||||
|
|
13
package.json
13
package.json
|
@ -62,6 +62,14 @@
|
|||
"main": "./out/src/extension",
|
||||
"contributes": {
|
||||
"commands": [
|
||||
{
|
||||
"command": "azureFunctions.selectSubscriptions",
|
||||
"title": "Select Subscriptions...",
|
||||
"icon": {
|
||||
"light": "resources/light/filter.svg",
|
||||
"dark": "resources/dark/filter.svg"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "azureFunctions.refresh",
|
||||
"title": "%azFunc.refresh%",
|
||||
|
@ -242,6 +250,11 @@
|
|||
}
|
||||
],
|
||||
"view/item/context": [
|
||||
{
|
||||
"command": "azureFunctions.selectSubscriptions",
|
||||
"when": "view == azureFunctionsExplorer && viewItem == azureextensionui.azureSubscription",
|
||||
"group": "inline"
|
||||
},
|
||||
{
|
||||
"command": "azureFunctions.createFunctionApp",
|
||||
"when": "view == azureFunctionsExplorer && viewItem == azureextensionui.azureSubscription",
|
||||
|
|
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 26 KiB |
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 540 KiB |
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.icon-canvas-transparent{opacity:0;fill:#2d2d30}.icon-vs-out{fill:#2d2d30}.icon-vs-bg{fill:#c5c5c5}.icon-vs-fg{fill:#2b282e}</style><path class="icon-canvas-transparent" d="M16 16H0V0h16v16z" id="canvas"/><path class="icon-vs-out" d="M0 0v3.043l5 6V16h6V9.043l5-6V0H0z" id="outline" style="display: none;"/><path class="icon-vs-fg" d="M7 14h2V8.319l5-6V2H2v.319l5 6V14z" id="iconFg" style="display: none;"/><path class="icon-vs-bg" d="M10 15H6V8.681l-5-6V1h14v1.681l-5 6V15zm-3-1h2V8.319l5-6V2H2v.319l5 6V14z" id="iconBg"/></svg>
|
После Ширина: | Высота: | Размер: 596 B |
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.icon-canvas-transparent{opacity:0;fill:#f6f6f6}.icon-vs-out{fill:#f6f6f6}.icon-vs-bg{fill:#424242}.icon-vs-fg{fill:#f0eff1}</style><path class="icon-canvas-transparent" d="M16 16H0V0h16v16z" id="canvas"/><path class="icon-vs-out" d="M0 0v3.043l5 6V16h6V9.043l5-6V0H0z" id="outline" style="display: none;"/><path class="icon-vs-fg" d="M7 14h2V8.319l5-6V2H2v.319l5 6V14z" id="iconFg" style="display: none;"/><path class="icon-vs-bg" d="M10 15H6V8.681l-5-6V1h14v1.681l-5 6V15zm-3-1h2V8.319l5-6V2H2v.319l5 6V14z" id="iconBg"/></svg>
|
После Ширина: | Высота: | Размер: 596 B |
|
@ -75,6 +75,7 @@ export function activate(context: vscode.ExtensionContext): void {
|
|||
|
||||
const templateDataTask: Promise<TemplateData> = getTemplateData(reporter, context);
|
||||
|
||||
actionHandler.registerCommand('azureFunctions.selectSubscriptions', () => vscode.commands.executeCommand('azure-account.selectSubscriptions'));
|
||||
actionHandler.registerCommand('azureFunctions.refresh', async (node?: IAzureNode) => await tree.refresh(node));
|
||||
actionHandler.registerCommand('azureFunctions.pickProcess', async function (this: IActionContext): Promise<string | undefined> { return await pickFuncProcess(this); });
|
||||
actionHandler.registerCommand('azureFunctions.loadMore', async (node: IAzureNode) => await tree.loadMore(node));
|
||||
|
|
Загрузка…
Ссылка в новой задаче