Azure Functions extension for VS Code
Перейти к файлу
Eric Jizba 7b284ad4c9 Fix multiple prompts if language not set
This is what currently happens if you try to create a function without a language/runtime set:
1. Language is an empty string, but user isn't prompted to set it
1. Runtime is an empty string, and user _is_ prompted
1. We try to find the templates matching the user's settings, but we can't find any so we prompt them for all three values again (language, runtime, and filter)

Instead, we should prompt them in step 1 & 2 and then we don't have to prompt for step 3. (Step 3 is only meant to happen if the user changes their settings to something like 'Python', 'beta', and 'Verified' - which has no templates)
2018-02-07 19:34:35 +00:00
.vscode Leverage fs-extra instead of defining our own fsUtils 2017-11-02 23:21:44 +00:00
docs Add docs for installing 64-bit version of func cli 2018-02-06 00:20:06 +00:00
resources Add function and app setting tree items (#87) 2017-11-29 20:55:48 +00:00
src Fix multiple prompts if language not set 2018-02-07 19:34:35 +00:00
test subPath -> subpath 2018-01-24 13:29:52 -08:00
.gitignore Refactor error handling and add unit tests for the first time 2017-10-12 13:58:48 -07:00
.travis.yml Add support for C# Class library projects (#161) 2018-01-11 17:37:52 -08:00
.vscodeignore Add vscodeignore 2017-11-21 21:42:03 +00:00
CHANGELOG.md Improve C# F5 experience (#196) 2018-01-31 22:35:07 +00:00
LICENSE.md Add functions explorer 2017-09-21 16:20:07 -07:00
README.md Add docs for installing 64-bit version of func cli 2018-02-06 00:20:06 +00:00
gulpfile.js Add preview support for several script languages 2018-01-24 12:03:01 -08:00
package.json Add log streaming (#207) 2018-02-06 19:47:12 +00:00
package.nls.json Add log streaming (#207) 2018-02-06 19:47:12 +00:00
thirdpartynotices.txt C# functions - prompt for namespace 2018-01-22 10:37:04 -08:00
tsconfig.json Add more tsconfig checks 2017-10-02 09:08:42 -07:00
tslint.json Refactor function template resource prompt 2017-11-06 19:46:32 +00:00

README.md

Azure Functions for Visual Studio Code (Preview)

Build Status Release Status

Prerequisites

  • Install your desired version of the Azure Functions Core Tools
    • For version 2.0 (This version works cross-platform, but is still in preview and not recommended for production):
      npm install -g azure-functions-core-tools@core
      

      Note: When installing on Ubuntu, you may need to use sudo. On MacOS and Linux, you may need to include the unsafe-perm flag, as follows:

      sudo npm install -g azure-functions-core-tools@core --unsafe-perm true
      
    • For version 1.0 (This version is only supported on Windows):
      npm install -g azure-functions-core-tools
      
  • Install the prerequisites for your desired language:

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
  • View, create, delete, start, stop, and restart Azure Function Apps
  • JSON Intellisense for function.json, host.json, and proxies.json

Create New Project

CreateProject

Debug Function App Locally

Debug

Deploy to Azure

Deploy

Language-Specific Prerequisites

JavaScript

C#

  • VS Code Debugger for C#
  • .NET CLI
  • .NET Templates for Azure Functions
    • You will be automatically prompted to install these templates when you first create a project/function
      • If you are using v2.0 of the Azure Functions runtime, you must install the beta (.NET Core) templates
      • If you are using v1.0 of the Azure Functions runtime, you must install the v1.0 (.NET Framework) templates.

      NOTE: The VS Code Debugger for C# only supports attaching to 64-bit processes. v1.0 of the Azure Functions runtime defaults to 32-bit and you must install a 64-bit version. See here for instructions.

    • You may uninstall or reinstall the templates with the following steps:
      1. Open Command Palette (View -> Command Palette...)
      2. Search for "Azure Functions" and "install" or "uninstall"
      3. Run the corresponding command for .NET templates

NOTE: The default experience for C# uses class libraries (*.cs files), which provide superior performance, scalability, and versatility over C# Scripts (*.csx files). If you want to use C# Scripts, you may change your azureFunctions.projectLanguage user setting to C#Script.

Java

Contributing

There are a couple of ways you can contribute to this repo:

  • Ideas, feature requests and bugs: We are open to all ideas and we want to get rid of bugs! Use the Issues section to either report a new issue, provide your ideas or contribute to existing threads.
  • 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.
    • 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.

Before we can accept your pull request you will need to sign a Contribution License Agreement. All you need to do is to submit a pull request, then the PR will get appropriately labelled (e.g. cla-required, cla-norequired, cla-signed, cla-already-signed). If you already signed the agreement we will continue with reviewing the PR, otherwise system will tell you how you can sign the CLA. Once you sign the CLA all future PR's will be labeled as cla-signed.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Telemetry

VS Code collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more. If you dont wish to send usage data to Microsoft, you can set the telemetry.enableTelemetry setting to false. Learn more in our FAQ.

License

MIT