Граф коммитов

161 Коммитов

Автор SHA1 Сообщение Дата
Matt Hernandez 8b8d315110 Add link to Functions deployment tutorial. (#217)
Added a link to the new Azure Functions deployment tutorial in the VS
Code docs.
2018-02-09 16:26:07 +00:00
Eric Jizba a7fca0467a
Make warnings consistent (#212)
For the 64 bit warning, it now opens the link directly with a 'See more info' instead of having to copy the link. There's also a 'Don't warn again' option
2018-02-09 16:25:41 +00:00
Sheng Chen 228d70e6e0 check function runtime version at extension activation (#204) 2018-02-08 16:20:17 +00:00
Eric Jizba dee40a83ed
Support Function projects in multi-root workspaces (#210)
Our project settings were being completely ignored in multi-root workspaces. Here's what I did to fix that:
1. Declare our project-based settings as 'resource' scope (If you use the default scope of 'window', then settings only apply at the user/workspace level - not the workspaceFolder level)
1. Pass the projectPath in when getting settings so that the specific folder takes precedent
1. Modify the workspace folder picker so that it dynamically gets the subpath for each folder
1. Fix 'update' for mutli-root settings: If you don't pass the ConfiguratonTarget, it uses the appropriate scope from the configuration (Workspace vs WorkspaceFolder)
2018-02-07 21:55:45 +00:00
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
Eric Jizba 04a1dabcd6
Add log streaming (#207) 2018-02-06 19:47:12 +00:00
Eric Jizba f45ce3c339 Add docs for installing 64-bit version of func cli 2018-02-06 00:20:06 +00:00
Eric Jizba 9878d05302 Use akams link instead of direct link
That way we can change the link (to better docs, etc.) without having to re-publish
2018-02-02 17:39:50 +00:00
Eric Jizba aecf8b4d6c
Fix C# debugging for v1 (.NET Framework) (#199)
1. The type for the launch.json should be 'clr' instead of 'coreclr'
1. We have to show a warning about attaching to 64 bit processes
1. Allow for func.exe possibly being renamed to func64.exe
1. The regex for the process was wrong. Specifically, we want to match these two strings (v1 and v2 of the runtime)
```
emjdev3,C:\Users\erijiz\AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin/func.exe host start,func.exe,10608
emjdev3,dotnet C:\Users\erijiz\AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin/Azure.Functions.Cli.dll host start,dotnet.exe,10528
```

But we don't want to match these (other languages than C#):
```
emjdev3,C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command func host start,powershell.exe,10020
emjdev3,C:\WINDOWS\system32\cmd.exe /c ""C:\Users\erijiz\AppData\Roaming\npm\func.cmd" host start",cmd.exe,3664
emjdev3,node   "C:\Users\erijiz\AppData\Roaming\npm\\node_modules\azure-functions-core-tools\lib\main.js" host start,node.exe,8700
```
2018-02-01 23:19:06 +00:00
Eric Jizba b776cc4bf2
Update prereqs section of README (#198)
* Include more detail about v1.0 vs v2.0
* Explain how to uninstall/reinstall C# templates
* Move language specific sections down the page
* dotnet cli -> .NET CLI
2018-02-01 00:42:34 +00:00
Eric Jizba 22bf5eb038
Improve C# F5 experience (#196)
1. Switch away from ps-node on windows because it is very slow
1. Stop and restart the functions host if it is running when the user starts debugging
1. Only build once when the user F5's instead of twice
2018-01-31 22:35:07 +00:00
Jay Wang 62afb5b460
Add build/release badges to README (#197) 2018-01-31 11:29:09 -08:00
Eric Jizba 56e8197f48 Doc updates 2018-01-26 00:40:39 +00:00
Eric Jizba 4d6b38cc32 Rename attach task for c#
(Since it could be .NET Framework instead of .NET Core)
2018-01-26 00:40:39 +00:00
Eric Jizba 34d248f60b Add more logging
1. How to uninstall/reinstall templates
1. Show that we're searching for the func process on F5 (since it can take a while)
2018-01-26 00:40:31 +00:00
Eric Jizba 68d6f15e62 Prep for 0.5.0 2018-01-24 15:39:35 -08:00
Eric Jizba afbf0e7a67 subPath -> subpath 2018-01-24 13:29:52 -08:00
Eric Jizba d236d8c519 Improve C# template installation
1. Allow windows users to install either the .NET Core _or_ .NET Framework templates
1. Provide commands to install/uninstall the templates
1. Limit function templates to just the main 4
1. Detect if the project created was .NET Core or .NET Framework and set runtime accordingly
2018-01-24 13:29:52 -08:00
Eric Jizba d6c137bad5
Fix C# blob trigger path (#178) 2018-01-24 13:19:33 -08:00
Eric Jizba fcfaceec9b
Only use global settings when creating a new project (#177)
Since a project is basically a new 'workspace', it doesn't make sense to use settings from the 'previous' workspace. Instead, only respect global settings.
2018-01-24 13:19:10 -08:00
Eric Jizba d61db5d4ad Add local debug support for C# Scripts 2018-01-24 12:03:01 -08:00
Eric Jizba 283d77109b Add preview support for several script languages 2018-01-24 12:03:01 -08:00
Eric Jizba a76a321edb Add deploy support for C# class libraries 2018-01-22 16:15:35 -08:00
Eric Jizba 00941569ca C# functions - prompt for namespace 2018-01-22 10:37:04 -08:00
Eric Jizba 3d7cf5f75f
Add createFunctionApp to api (#172) 2018-01-18 14:43:48 -08:00
Eric Jizba 198a3486be Fix function.json parsing for C# functions
They don't require the direction information
2018-01-18 14:36:17 -08:00
Eric Jizba 767808b70b Increase timeout for a few tests 2018-01-17 14:02:32 -08:00
Eric Jizba b8516f32d2 Automatically start the functions host when F5ing C# projects
And remove the problemMatcher since it's not used for C# projects
2018-01-17 14:02:32 -08:00
Eric Jizba 3d42f2ab35 Default ignoreFocusOut to true 2018-01-17 13:45:29 -08:00
Eric Jizba 7fe28b5a79
Add support for C# Class library projects (#161)
This supports project/function creation and local debugging. It does not include deploy logic.

A brief summary:
1. We default C# projects to beta runtime and class library (instead of C# script)
1. We use dotnet templates for project/function creation. We will automatically install the templates for the user if they are not on their machine (I don't prompt at all - let me know if you think we should prompt).
1. We use the parameter information from the functions portal (Aka C# Script templates) since it's easier to parse than the dotnet cli and it gives us more information (like validation). This requires us to assume that parameters for C# Scripts are the same as the parameters for the C# Class libraries. Since that might not always be the case, I mitigated this with unit tests and hard-coding the version of the dotnet templates.
1. Unlike JavaScript debugging, we have to attach to a specific process instead of attaching with a port. I implemented a 'pickProcess' command to search for the functions host process.
1. This only works on Windows. There's a few issues on a Mac I still need to iron out.
2018-01-11 17:37:52 -08:00
Eric Jizba a6f0af8e04 Move test to gulp instead of npm 2018-01-11 11:28:00 -08:00
Eric Jizba 09f45e014f Install azure account extension for tests 2018-01-11 11:28:00 -08:00
Eric Jizba 4af25798c3 Allow programatic use of deploy, createFunction, and createNewProject 2018-01-11 11:28:00 -08:00
Eric Jizba 32b2fb8317 Refresh app's state when the node is refreshed 2018-01-05 16:29:14 -08:00
Eric Jizba bf2b67589c
Leverage shared AzureActionHandler (#150) 2018-01-04 15:06:57 -08:00
chrisdias 62842d7fc0 fixes #151 2018-01-04 14:50:11 -08:00
Eric Jizba b3154f8ba2 Move browse to the bottom of the list of folders 2018-01-04 10:09:07 -08:00
Sheng Chen 5c0332b814 refactor function creator 2018-01-03 08:57:13 -08:00
Eric Jizba f44e6f7ece Force refresh functions node on deploy 2018-01-02 13:42:53 -08:00
Eric Jizba a8a8276378 Split function/project creation into separate files
This helps isolate language-specific code and will be more important as we add C# class library support. It should have no functional effect.
2018-01-02 13:42:04 -08:00
Eric Jizba d5433158d5 Move create function and create project to subfolders 2018-01-02 13:42:04 -08:00
Sheng Chen 7cb3ecba39 Stop app before Java deploy (#138)
To avoid *.jar file being locked
2017-12-18 11:49:21 -08:00
Eric Jizba e91435f344 Prep for 0.4.0 release 2017-12-14 17:10:05 -08:00
Eric Jizba c5a36078b9 Show http trigger urls in deploy log 2017-12-14 16:42:57 -08:00
Eric Jizba fdd1329623 Add note about debugggable languages to language setting 2017-12-14 11:25:34 -08:00
Eric Jizba c0c0503e65 Remove C# script file support
Turns out we want to add support for class libraries (.cs), but this code added support for C# script files (.csx). I want to leave this code in the git history in case we add support for .csx _in addition_ to .cs
2017-12-14 11:25:34 -08:00
Eric Jizba 8c894060b8 Add support for other languages/runtimes
* Add CSharp to the list of options when creating a new project
* Add setting for projectLanguage
  * The user has many options for language, but only C#/Java/JavaScript can be debugged in VS Code today. The rest only support create & deploy
  * If it's not set (for example in old projects before this release), the user will be prompted one time and their workspace setting will be updated
* Add setting for projectRuntime
  * We want to use ~1 for JavaScript and beta as the default for Java/C#
2017-12-14 11:25:34 -08:00
Jay Wang 1215930b67
Settings for Zip glob patterns 2017-12-13 14:47:33 -08:00
REDMOND\jiewan d52911031d Update app service package version 2017-12-13 13:52:19 -08:00
REDMOND\jiewan 81119b7a87 Settings for Zip glob patterns. 2017-12-12 15:53:57 -08:00