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

376 Коммитов

Автор SHA1 Сообщение Дата
Stephen Weatherford (MSFT) ce4c9f9b47
Merge pull request #647 from Microsoft/ej/betaCreate
Fix creating function app with beta setting
2018-09-23 18:32:20 -07:00
Eric Jizba e7786a353b Fix creating function app with beta setting 2018-09-23 12:39:20 -07:00
Eric Jizba 5f92c1803a
Ensure func_env is in .funcignore (#637) 2018-09-21 17:26:49 -07:00
Eric Jizba 4ccfc674e9
Fix separator for executeCommand on windows (#636)
And switch from '|' to ';'
2018-09-21 12:39:00 -07:00
Eric Jizba 8d822ac20d
Better error message when failing to list functions on linux (#635) 2018-09-21 11:51:22 -07:00
Eric Jizba b325094498
Bump appservice package to fix linux deploy (#633) 2018-09-20 18:22:30 -07:00
Eric Jizba dec20ea62b
Always use v2 for Python (#629) 2018-09-20 17:37:42 -07:00
Eric Jizba 67f2858ca8
Make python venv work on linux (#623) 2018-09-20 16:59:37 -07:00
Eric Jizba 40ad9b53e1
Improve Python version parsing (#622) 2018-09-20 15:46:39 -07:00
Eric Jizba 43e055c3f3
Give "azureFunctions.deploySubpath" setting more precedence (#620)
We've had multiple customers fail to deploy because they selected "Deploy to Function App" from the wrong sub folder of a project. This hopefully fixes that in two ways:

1. Use "azureFunctions.deploySubpath" instead of the folder they select. Users will get a warning.
1. If there is only one workspace folder open and the deploySubpath setting is not an empty string - just use that path without prompting the user at all.

C# already has "deploySubpath" set on new projects. I modified Python and JavaScript to also set it.
2018-09-20 13:04:07 -07:00
Eric Jizba 327a05de2d
Fix initProjectForVSCode for python projects (#621) 2018-09-20 12:01:41 -07:00
Eric Jizba 5a136720e8
Move over to common invalid tree logic (#613) 2018-09-19 14:56:09 -07:00
Eric Jizba 3a37454c8c
Prep for 0.11.0 release (#614) 2018-09-19 14:44:01 -07:00
Eric Jizba 10531928eb
Clarify preview support for Python (#609) 2018-09-19 11:16:57 -07:00
Eric Jizba 806665e9b2
Prompt user to re-create Python venv if it doesn't exist (#612) 2018-09-19 10:01:05 -07:00
Eric Jizba d1f32f9b46
Add separate tree item for invalid function (#611) 2018-09-19 08:46:58 -07:00
Eric Jizba 90136e1b05
Force users to have workspace open when deploying (#606)
We check several settings when deploying and we can't read/write those if the folder isn't open in the workspace
2018-09-18 18:53:22 -07:00
Eric Jizba b5b681ead6
Add service bus to verified templates (#607)
Now that we have support for installing func extensions, we can add a few more templates to the "verified" category.
2018-09-18 18:35:44 -07:00
Eric Jizba f79a341b59
Dynamically retrieve appropriate dist-tag for npm (#610)
The tags are changing when v2 GA's soon. We could hard-code the new strings and try to time our release perfectly with the func cli, but I'd rather dynamically check the dist-tags.
2018-09-18 13:34:15 -07:00
Eric Jizba 0c0829d4d4
Use long running notification when creating a project (#600) 2018-09-18 09:55:04 -07:00
Eric Jizba 7e55c25961
Use admin api to get function keys (#605)
Based on the discussion here: https://github.com/Azure/azure-functions-host/issues/3411, the kudu api is deprecated and the ARM api is not ready. However, the admin api works
2018-09-18 09:21:47 -07:00
Eric Jizba d6fbb6caf1
Don't use storage emulator on mac/linux for python projects (#601) 2018-09-18 09:19:34 -07:00
Eric Jizba c07053b1f7
Allow creation of python function apps on linux (#599)
Also default to 'WEBSITE_RUN_FROM_PACKAGE' for non-python apps since that just GA-ed
2018-09-17 17:34:26 -07:00
Eric Jizba 0918e8e135
Prompt for python path instead of just error (#598) 2018-09-17 13:10:45 -07:00
Eric Jizba f9fdd4a741
Show local settings file after downloading (#595) 2018-09-17 13:09:45 -07:00
Eric Jizba 65724f882c
Move linux consumption deployment to shared package (#597) 2018-09-13 16:59:37 -07:00
Eric Jizba b7d8f9d7b8
Add install/update command (#596) 2018-09-13 09:46:31 -07:00
Nathan 94ce0a1242 Include func extensions install in Run Functions Host task (#588) 2018-09-12 18:46:17 -07:00
Nathan 0f0b91b810
Install ptvsd and other local debug fixes (#582)
* Install ptvsd and other local debug fixes
* Check to see if .gitignore includes func_env/pythonpackages
2018-09-12 17:18:27 -07:00
Nathan 49a26c82f5
Nat/storage from setting (#586)
Uses the AzureWebJobsStorage app setting for storage account
2018-09-12 16:45:34 -07:00
Eric Jizba de998312f0
Add python verified templates (#585)
And Cosmos DB trigger to v2 JavaScript
2018-09-12 16:40:48 -07:00
Eric Jizba 8f89b0badd
Change pythonExperimental to python for non-windows (#579) 2018-09-12 15:16:49 -07:00
Eric Jizba 38b781d852
Change beta to ~2 (#581) 2018-09-12 15:11:35 -07:00
Eric Jizba 806bd74ff9
Update to next alpha (#580) 2018-09-12 10:28:51 -07:00
Eric Jizba 2d03c56528
Contribute func-watch problemMatcher (#578)
I'm basically shifting the implementation of the problem matcher from each user's project to our extension. This means we can change/improve it in the future without having to modify the user's project.

Unfortunately, the func cli is very annoying to parse, so I only added support for one error (although it's somewhat common).
2018-09-12 10:19:48 -07:00
Nathan f5afb39c35
Nturinski/runFromPackage (#574)
Deploy logic for Linux Consumption Apps to leverage `Run From Package`
2018-09-11 16:35:44 -07:00
Eric Jizba 91f495af05
Move several function calls from kudu to ARM (#577)
Linux consumption doesn't support kudu so this should help
2018-09-11 16:04:29 -07:00
Eric Jizba 52432b8d38
Keep track of whether func task is running for pickProcess (#575)
I incorrectly made the assumption that `vscode.tasks.taskExecutions` was the list of _running_ tasks, but it's actually a list of tasks that have _ever_ run in this session, even if they're not running right now.
2018-09-10 11:44:36 -07:00
Hanxiao Liu 816a4392bb Add guide for users to set maven path. (#530) 2018-09-07 15:30:07 -07:00
Eric Jizba 631a368cc3
Make pickFuncProcess more robust to timing issues (#573)
As described in this PR: https://github.com/Microsoft/vscode-azurefunctions/pull/558, we have to get the inner 'func' process on Windows instead of attaching to the parent PowerShell process. Well it turns out there's a delay between when the PowerShell process is created and when it has the child process running the func cli. This change prevents us from attaching to the PowerShell process and getting "unverified" breakpoints.
2018-09-07 11:41:02 -07:00
Nathan aa5a99b4cb Remove issue of Github in log (#571) 2018-09-07 08:51:01 -07:00
Eric Jizba 71d1c25c81
Fix "func extensions install" on v1 (#569) 2018-09-06 15:55:38 -07:00
Nathan f0d200e60c Add resourceGroup to createFunctionApp api (#551) 2018-09-05 18:16:13 -07:00
Eric Jizba 1500f6204d Prep for 0.10.1 release (#564) 2018-09-05 16:58:11 -07:00
Eric Jizba 14855708f8
Refactor pickProcess to leverage tasks api (#558)
We've had a whole host of issues related to pickProcess for C# debugging. I was able to simplify this logic by leveraging VS Code's tasks api that was released a few months ago rather than searching the entire list of processes myself. The VS Code tasks api actually gives me the pid of the task, which is great.

Unfortunately it's never that simple, though 😅 On Windows, it gives me the pid of the parent PowerShell process, not the actual func process. In order to find the child process, I decided to leverage the windows-process-tree module that's created for and shipped with VS Code, which is a native windows module and avoids a lot of the problems we originally ran into with wmic (which most other modules like 'ps-node' use).
2018-09-05 11:35:07 -07:00
Eric Jizba 3762024b27 Update backup templates post breaking changes 2018-09-05 10:15:01 -07:00
Eric Jizba d91e983728 Format backup script templates 2018-09-05 10:15:01 -07:00
Eric Jizba b3e5b1b737
Run 'func extensions install' before debug/deploy (#549)
Users need to run `func extensions install` before debugging or deploying on JavaScript projects. This was always the case for some triggers (that we didn't "officially" support in VS Code), but it wasn't required on blob/queue triggers until the most recent functions release. Hence why we're adding this now.

As part of this change, I made the C# 'preDeploy' logic more generic so that it would also cover the JavaScript `func extensions install` case. I also changed the C# logic so that it won't run for local git deployments, since that should be covered by kudu.
2018-08-31 15:25:47 -07:00
Nathan 494e20331e
Python Project Creating/Local Debugging (#525)
Create and locally debug Python functions projects.  Option to create is still hidden as Python is still in preview and we are working on the deployment scenario.

In order to debug, `python -m pip install --pre ptvsd` must be run within the project's virtual environment.  There is also a dependency on the experimental Python Extension, but they should release on Tuesday, 9/5/2018.
2018-08-31 14:51:56 -07:00
Eric Jizba f3de5b2b08
Add button to Stream Logs after deploy (#541) 2018-08-30 14:56:52 -07:00