This commit is contained in:
Eric Jizba 2019-03-28 09:24:25 -07:00 коммит произвёл GitHub
Родитель 27a454c0ce
Коммит dbad338d2d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
13 изменённых файлов: 558 добавлений и 324 удалений

Просмотреть файл

@ -4,7 +4,26 @@
All notable changes to the "azurefunctions" extension will be documented in this file.
## 0.15.0 - 2018-02-22
## 0.16.0 - 2019-03-28
### Added
- Improved multi-prompt wizards (e.g. "Create function")
- Added support for back button
- All prompts will occur up front before any steps are executed
- Creating a project will automatically prompt for the first function
- Projects in sub-directory of a workspace will be recognized as function projects
- Prompt to upload local app settings after deploy
- View commit in GitHub for an applicable deployment
### Changed
- Creating a Function App in Azure will only prompt for Function App name. Set `azureFunctions.advancedCreation` to `true` to be prompted for all other values.
### Fixed
- [Bugs fixed](https://github.com/Microsoft/vscode-azurefunctions/issues?q=is%3Aissue+milestone%3A%220.16.0%22+is%3Aclosed)
## 0.15.0 - 2019-02-22
### Added
@ -20,7 +39,7 @@ All notable changes to the "azurefunctions" extension will be documented in this
- [Bugs fixed](https://github.com/Microsoft/vscode-azurefunctions/issues?q=is%3Aissue+milestone%3A%220.15.0%22+is%3Aclosed)
## 0.14.0 - 2018-02-11
## 0.14.0 - 2019-02-11
### Added
@ -30,7 +49,7 @@ All notable changes to the "azurefunctions" extension will be documented in this
- Removed terminal specific separators from debug config
- Allow deployment to dedicated App Service plans
- Added retry logic to handle momentary issues while deploying
- Added `azureFunctions.advancedCreation` setting. When set to true, this allows you to manually select several properties (i.e. OS and runtime) when creating a function app
- Added `azureFunctions.advancedCreation` setting. When set to true, this allows you to manually select several properties (i.e. OS and runtime) when creating a Function App
- App setting values are hidden by default
### Changed
@ -105,7 +124,7 @@ All notable changes to the "azurefunctions" extension will be documented in this
- Added several more templates to the "verified" category, including Cosmos DB and Service Bus.
### Changed
- Newly created function apps will default to "Run From Package". See [here](https://docs.microsoft.com/en-us/azure/azure-functions/run-functions-from-deployment-package) for more info.
- Newly created Function Apps will default to "Run From Package". See [here](https://docs.microsoft.com/azure/azure-functions/run-functions-from-deployment-package) for more info.
- Deprecated projectRuntime of "beta" in favor of "~2".
- "azureFunctions.deploySubpath" setting takes precedence
@ -187,7 +206,7 @@ All notable changes to the "azurefunctions" extension will be documented in this
## 0.8.1 - 2018-04-13
### [Fixed](https://github.com/Microsoft/vscode-azurefunctions/issues?q=is%3Aissue+milestone%3A%220.8.1%22+label%3Abug+is%3Aclosed)
- Deployment fail when deploying to function app with a custom domain
- Deployment fail when deploying to Function App with a custom domain
## 0.8.0 - 2018-04-05
@ -229,7 +248,7 @@ All notable changes to the "azurefunctions" extension will be documented in this
### Added
- Stream logs from your remote Function Apps
- Stream logs from your Azure Function Apps
- Support projects in multi-root workspaces
- Link to deployment tutorial
@ -338,7 +357,7 @@ All notable changes to the "azurefunctions" extension will be documented in this
- Create new project
- Create new function from template
- Debug function apps locally
- Debug function projects locally
- View Azure Functions
- Deploy to Azure Functions
- Start, stop, and restart Azure Functions

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -6,6 +6,8 @@ Create, debug, manage, and deploy Azure Functions directly from VS Code. Check
out this [deployment tutorial](https://code.visualstudio.com/tutorials/functions-extension/getting-started)
to get started with the Azure Functions extension.
**Visit the [wiki](https://github.com/Microsoft/vscode-azurefunctions/wiki) for additional information about the extension.**
## Prerequisites
Follow the OS-specific instructions to install the [Azure Functions Core Tools](https://docs.microsoft.com/azure/azure-functions/functions-run-local):
@ -16,34 +18,32 @@ Follow the OS-specific instructions to install the [Azure Functions Core Tools](
Install the prerequisites for your desired language:
* [JavaScript](#javascript)
* [TypeScript](#javascript)
* [C#](#c)
* [JavaScript](#node)
* [TypeScript](#node)
* [C#](#net)
* [Java](#java)
* [Python (Preview)](#python)
> **NOTE**: You may change your `azureFunctions.projectLanguage` user setting to multiple other 'preview' languages not listed above. This allows you to create a project/function in that language, but we do not yet support local debugging for these languages.
## Features
* Create new Function projects
* Create new Functions from a template
* Debug Function projects locally
* Deploy to Azure Function Apps
* Create new function projects
* Create new functions from a template
* Debug function projects locally
* Deploy to Azure
* View, create, delete, start, stop, and restart Azure Function Apps
* View, edit, upload, and download application settings
* JSON Intellisense for `function.json`, `host.json`, and `proxies.json`
* Stream logs from your remote Function Apps
* Stream logs from your Azure Function Apps
* View and manage deployment slots
> **NOTE**: To enable, set `azureFunctions.enableSlots` to true.
* Debug Java Function App on Azure (experimental)
* Debug Java function project in Azure (experimental)
> **NOTE**: To enable, set `azureFunctions.enableRemoteDebugging` to true.
### Create New Project
![CreateProject](resources/CreateProject.gif)
### Debug Function App Locally
### Debug Function Project Locally
![Debug](resources/Debug.gif)
@ -112,11 +112,11 @@ See [here](https://github.com/Azure/azure-functions-core-tools/blob/master/READM
## Language-Specific Prerequisites
### JavaScript
### Node
* [Node 8.0+](https://nodejs.org/)
### C#
### .NET
* [VS Code Debugger for C#](https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp)
* [.NET CLI](https://docs.microsoft.com/dotnet/core/tools/?tabs=netcore2x)
@ -156,7 +156,7 @@ There are a couple of ways you can contribute to this repo:
* **Documentation**: Found a typo or strangely worded sentences? Submit a PR!
* **Code**: Contribute bug fixes, features or design changes:
* Clone the repository locally and open in VS Code.
* Install [TSLint for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=eg2.tslint).
* Install [TSLint for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-tslint-plugin).
* Open the terminal (press `CTRL+`\`) and run `npm install`.
* To build, press `F1` and type in `Tasks: Run Build Task`.
* Debug: press `F5` to start debugging the extension.

2
package-lock.json сгенерированный
Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "vscode-azurefunctions",
"version": "0.15.1-alpha",
"version": "0.16.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

Просмотреть файл

@ -2,7 +2,7 @@
"name": "vscode-azurefunctions",
"displayName": "Azure Functions",
"description": "%extension.description%",
"version": "0.15.1-alpha",
"version": "0.16.0",
"publisher": "ms-azuretools",
"icon": "resources/azure-functions.png",
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",

Просмотреть файл

@ -64,7 +64,7 @@
"azFunc.disconnectRepo": "Disconnect from Repo...",
"azFunc.createSlot": "Create Slot...",
"azFunc.swapSlot": "Swap Slot...",
"azFunc.advancedCreationDescription": "Enables advanced creation of function apps, which will prompt for several additional values instead of using a default.",
"azFunc.advancedCreationDescription": "Enables advanced creation of Azure Function Apps, which will prompt for several additional values instead of using a default.",
"azFunc.toggleAppSettingVisibility": "Toggle App Setting Visibility.",
"azFunc.enablePowerShell": "Enable preview support for PowerShell."
}

Двоичные данные
resources/CreateProject.gif

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 876 KiB

После

Ширина:  |  Высота:  |  Размер: 316 KiB

Двоичные данные
resources/Debug.gif

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 876 KiB

После

Ширина:  |  Высота:  |  Размер: 1.1 MiB

Двоичные данные
resources/Deploy.gif

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 1.6 MiB

После

Ширина:  |  Высота:  |  Размер: 4.3 MiB

Просмотреть файл

@ -34,7 +34,7 @@ export class DebugProxy extends EventEmitter {
if (!this._server) {
this.emit('error', new Error('Proxy server is not started.'));
} else {
// wake up the function app before connecting to it.
// wake up the Function App before connecting to it.
await this.keepAlive();
this._server.on('connection', (socket: Socket) => {
@ -137,7 +137,7 @@ export class DebugProxy extends EventEmitter {
this._keepAlive = false;
}
//keep querying the function app state, otherwise the connection will lose.
//keep querying the Function App state, otherwise the connection will lose.
private async keepAlive(): Promise<void> {
if (this._keepAlive) {
try {

Просмотреть файл

@ -66,7 +66,7 @@ export async function deploy(this: IActionContext, target?: vscode.Uri | string
if (functionAppNode) {
node = <SlotTreeItemBase>functionAppNode;
} else {
throw new Error(localize('noMatchingFunctionApp', 'Failed to find a function app matching id "{0}".', functionAppId));
throw new Error(localize('noMatchingFunctionApp', 'Failed to find a Function App matching id "{0}".', functionAppId));
}
}
}
@ -81,7 +81,7 @@ export async function deploy(this: IActionContext, target?: vscode.Uri | string
telemetryProperties.projectRuntime = runtime;
if (language === ProjectLanguage.Python && !node.root.client.isLinux) {
throw new Error(localize('pythonNotAvailableOnWindows', 'Python projects are not supported on Windows function apps. Deploy to a Linux function app instead.'));
throw new Error(localize('pythonNotAvailableOnWindows', 'Python projects are not supported on Windows Function Apps. Deploy to a Linux Function App instead.'));
}
await verifyWebContentSettings(node, telemetryProperties);

Просмотреть файл

@ -37,8 +37,8 @@ export class FunctionAppProvider extends SubscriptionTreeItem {
} catch (error) {
if (parseError(error).errorType.toLowerCase() === 'notfound') {
// This error type means the 'Microsoft.Web' provider has not been registered in this subscription
// In that case, we know there are no function apps, so we can return an empty array
// (The provider will be registered automatically if the user creates a new function app)
// In that case, we know there are no Function Apps, so we can return an empty array
// (The provider will be registered automatically if the user creates a new Function App)
return [];
} else {
throw error;
@ -126,7 +126,7 @@ export class FunctionAppProvider extends SubscriptionTreeItem {
executeSteps.push(new SiteCreateStep(async (context): Promise<WebSiteManagementModels.NameValuePair[]> => await createFunctionAppSettings(context, runtime, language)));
const title: string = localize('functionAppCreatingTitle', 'Create new function app');
const title: string = localize('functionAppCreatingTitle', 'Create new Function App in Azure');
const wizard: AzureWizard<IAppServiceWizardContext> = new AzureWizard(wizardContext, { promptSteps, executeSteps, title });
await wizard.prompt(actionContext);

Просмотреть файл

@ -34,7 +34,7 @@ export abstract class FunctionTesterBase {
private async initializeTestFolder(testFolder: string): Promise<void> {
await fse.ensureDir(path.join(testFolder, '.vscode'));
// Pretend to create the parent function app
// Pretend to create the parent function project
await Promise.all([
fse.writeFile(path.join(testFolder, 'host.json'), ''),
fse.writeFile(path.join(testFolder, 'local.settings.json'), '{ "Values": { "AzureWebJobsStorage": "test" } }'),