Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
Merged PR 265: 0.8.11 Release build
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudSmithBrandon committed Feb 6, 2020
2 parents 5692ac4 + af2f265 commit d58d511
Show file tree
Hide file tree
Showing 95 changed files with 1,296 additions and 848 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dist/**
resources/tools/packages/**
**/*.dll
**/*.obj
**/.vs/**
**/bin/**
**/obj/**
**/*.csproj.user
Expand Down
25 changes: 24 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,30 @@ All notable changes to the "cds-for-code" extension will be documented in this f

## v0.8 Early Preview - December 2019 - January 2020

### v0.8.11 (January 31, 2020)
> Release 0.8.11 will likely be the last release in the 0.8 branch. We look forward to shipping some exciting new features in 0.9 for evaluation soon!
### v0.8.11 (February 6, 2020)

- Feature: Code Generation: CrmSvcUtil now has CloudSmith extensions + configuration for customizing entity generation ([#509](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/509/))
- Feature: Code Generation: CrmSvcUtil can be called with an external .config file ([#510](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/510/))
- Feature: Solutions: Import and Export tasks no longer rely on Microsoft.Xrm.Data.PowerShell ([#542](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/542/))
- Feature: Plugins: Attribute selection is now a picker on plugin step UI ([#555](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/555/))
- Feature: Plugins: Attribute selection is now a picker on plugin step image UI ([#556](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/556/))
- Feature: CDS Explorer: Removing a connection asks for confirmation ([#575](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/575/))
- Docs: Privacy and security features are documented ([#412](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/412/))
- Docs: Templating process is now documented ([#410](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/410/))
- Bugfix: Critical - Geneate entities can show a password if errors occur in CrmSvcUtil ([#629](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/629/))
- Bugfix: Import file picker does not show .zip files by default ([#628](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/628/))
- Bugfix: Template explorer can error when expanding "publisher" nodes ([#580](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/580/))
- Bugfix: Script/template auto-loader shows warning about template not existing when it does ([#579](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/579/))
- Bugfix: Template explorer does not refresh when deleting templates ([#578](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/578/))
- Bugfix: Plugin templates have the class name SamplePlugin ([#577](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/577/))
- Bugfix: CDS Explorer: Creating a new process does not add it to the solution ([#576](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/576/))
- Bugfix: Privacy link is incorrect (reported on GitHub) ([GitHub Issue #9](https://github.com/cloudsmithconsulting/cds-for-code/issues/9) | [#572](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/572/))
- Bugfix: Version numbering causes bug downloading scripts ([#571](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/571/))
- Bugfix: Access tokens for online connections were refreshed too frequently ([#570](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/570/))
- Bugfix: PowerShell script downloader does not obtain correct assets under certain circumstances ([#569](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/569/))
- Bugfix: Adding on-prem connections can result in a HTTP 401 response ([#568](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_workitems/edit/568/))

### v0.8.10 (January 24, 2020)

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ This extension is designed to help developers with a simple development loop for

|Version|Link||
|:--|:--|:--|
|Release Version:|[0.8.10](https://github.com/cloudsmithconsulting/cds-for-code/releases/tag/v0.8.10)|![Marketplace: Version](https://flat.badgen.net/vs-marketplace/v/cloudsmithconsulting.cds-for-code) ![Marketplace: Installs](https://flat.badgen.net/vs-marketplace/i/cloudsmithconsulting.cds-for-code) ![Marketplace: Downloads](https://flat.badgen.net/vs-marketplace/d/cloudsmithconsulting.cds-for-code) ![Marketplace: Rating](https://flat.badgen.net/vs-marketplace/rating/cloudsmithconsulting.cds-for-code) ![Open Issues](https://flat.badgen.net/github/open-issues/cloudsmithconsulting/cds-for-code) ![Stars](https://flat.badgen.net/github/stars/cloudsmithconsulting/cds-for-code)|
|Development Version:|[0.8.11](https://github.com/cloudsmithconsulting/cds-for-code/releases/tag/v0.8.11)|[![Board Status](https://dev.azure.com/cloudsmith-consulting/c20ca92d-a9a9-45af-8bdb-da3ce0803b59/b63fc4c8-773b-4ffc-ac61-c71890277c2c/_apis/work/boardbadge/350decde-59a7-49b4-a6f6-ee220fa7e391)](https://dev.azure.com/cloudsmith-consulting/c20ca92d-a9a9-45af-8bdb-da3ce0803b59/_boards/board/t/b63fc4c8-773b-4ffc-ac61-c71890277c2c/Microsoft.RequirementCategory/) [![Build Status](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_apis/build/status/cds-for-code?branchName=master)](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_build/latest?definitionId=2&branchName=master) [![Release Status](https://vsrm.dev.azure.com/cloudsmith-consulting/_apis/public/Release/badge/c20ca92d-a9a9-45af-8bdb-da3ce0803b59/1/2)](https://vsrm.dev.azure.com/cloudsmith-consulting/_apis/public/Release/badge/c20ca92d-a9a9-45af-8bdb-da3ce0803b59/1/2)|
|Release Version:|[0.8.11](https://github.com/cloudsmithconsulting/cds-for-code/releases/tag/v0.8.11)|![Marketplace: Version](https://flat.badgen.net/vs-marketplace/v/cloudsmithconsulting.cds-for-code) ![Marketplace: Installs](https://flat.badgen.net/vs-marketplace/i/cloudsmithconsulting.cds-for-code) ![Marketplace: Downloads](https://flat.badgen.net/vs-marketplace/d/cloudsmithconsulting.cds-for-code) ![Marketplace: Rating](https://flat.badgen.net/vs-marketplace/rating/cloudsmithconsulting.cds-for-code) ![Open Issues](https://flat.badgen.net/github/open-issues/cloudsmithconsulting/cds-for-code) ![Stars](https://flat.badgen.net/github/stars/cloudsmithconsulting/cds-for-code)|
|Development Version:|[0.9.0](https://github.com/cloudsmithconsulting/cds-for-code/releases/tag/v0.9.0)|[![Board Status](https://dev.azure.com/cloudsmith-consulting/c20ca92d-a9a9-45af-8bdb-da3ce0803b59/b63fc4c8-773b-4ffc-ac61-c71890277c2c/_apis/work/boardbadge/350decde-59a7-49b4-a6f6-ee220fa7e391)](https://dev.azure.com/cloudsmith-consulting/c20ca92d-a9a9-45af-8bdb-da3ce0803b59/_boards/board/t/b63fc4c8-773b-4ffc-ac61-c71890277c2c/Microsoft.RequirementCategory/) [![Build Status](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_apis/build/status/cds-for-code?branchName=master)](https://dev.azure.com/cloudsmith-consulting/CloudSmith/_build/latest?definitionId=2&branchName=master) [![Release Status](https://vsrm.dev.azure.com/cloudsmith-consulting/_apis/public/Release/badge/c20ca92d-a9a9-45af-8bdb-da3ce0803b59/1/2)](https://vsrm.dev.azure.com/cloudsmith-consulting/_apis/public/Release/badge/c20ca92d-a9a9-45af-8bdb-da3ce0803b59/1/2)|

---

Expand Down Expand Up @@ -68,7 +68,7 @@ This VS Code extension will help you perform these tasks in your CDS development
- [X] Package and deploy CDS solutions from server into version control
- [X] Package and deploy CDS solution from version control into server
- [X] Generate entities using CrmSvcUtil
- [ ] Customize the CrmSvcUtil experience (coming soon)
- [X] Customize the CrmSvcUtil experience (coming soon)
- [X] Author web resources with VSCode
- [X] Put CDS solution assets into version control
- [x] Build and deploy plugins using VSCode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,22 @@ sidebar_label: "CodeGenerationManager"
* [createCrmSvcUtilConfig](_components_codegeneration_codegenerationmanager_.codegenerationmanager.md#createcrmsvcutilconfig)
* [createCrmSvcUtilConfigFromConfig](_components_codegeneration_codegenerationmanager_.codegenerationmanager.md#createcrmsvcutilconfigfromconfig)
* [createCrmSvcUtilConfigToFile](_components_codegeneration_codegenerationmanager_.codegenerationmanager.md#createcrmsvcutilconfigtofile)
* [editCrmSvcUtilConfigToFile](_components_codegeneration_codegenerationmanager_.codegenerationmanager.md#editcrmsvcutilconfigtofile)
* [generateEntities](_components_codegeneration_codegenerationmanager_.codegenerationmanager.md#generateentities)
* [generateEntityCodeToFile](_components_codegeneration_codegenerationmanager_.codegenerationmanager.md#generateentitycodetofile)
* [generateEntityCodeToFolder](_components_codegeneration_codegenerationmanager_.codegenerationmanager.md#generateentitycodetofolder)
* [generateEntityCodeUsingConfig](_components_codegeneration_codegenerationmanager_.codegenerationmanager.md#generateentitycodeusingconfig)
* [parseXml](_components_codegeneration_codegenerationmanager_.codegenerationmanager.md#parsexml)
* [saveConfig](_components_codegeneration_codegenerationmanager_.codegenerationmanager.md#saveconfig)
* [saveCrmSvcUtilConfig](_components_codegeneration_codegenerationmanager_.codegenerationmanager.md#savecrmsvcutilconfig)

## Methods

### createCrmSvcUtilConfig

**createCrmSvcUtilConfig**(`config?`: [Config](../interfaces/_api_cds_webapi_cdswebapi_.cdswebapi.config.md), `file?`: Uri): *Promise‹void›*

Defined in src/components/CodeGeneration/CodeGenerationManager.ts:36
Defined in src/components/CodeGeneration/CodeGenerationManager.ts:47

**Parameters:**

Expand All @@ -45,7 +49,7 @@ ___

**createCrmSvcUtilConfigFromConfig**(`config?`: [Config](../interfaces/_api_cds_webapi_cdswebapi_.cdswebapi.config.md)): *Promise‹unknown›*

Defined in src/components/CodeGeneration/CodeGenerationManager.ts:26
Defined in src/components/CodeGeneration/CodeGenerationManager.ts:37

**Parameters:**

Expand All @@ -61,7 +65,23 @@ ___

**createCrmSvcUtilConfigToFile**(`defaultUri?`: Uri): *Promise‹unknown›*

Defined in src/components/CodeGeneration/CodeGenerationManager.ts:21
Defined in src/components/CodeGeneration/CodeGenerationManager.ts:27

**Parameters:**

Name | Type |
------ | ------ |
`defaultUri?` | Uri |

**Returns:** *Promise‹unknown›*

___

### editCrmSvcUtilConfigToFile

**editCrmSvcUtilConfigToFile**(`defaultUri?`: Uri): *Promise‹unknown›*

Defined in src/components/CodeGeneration/CodeGenerationManager.ts:32

**Parameters:**

Expand All @@ -75,9 +95,9 @@ ___

### generateEntities

**generateEntities**(`config?`: [Config](../interfaces/_api_cds_webapi_cdswebapi_.cdswebapi.config.md), `folder?`: string, `outputFileName?`: string, `namespace?`: string): *Promise‹void›*
**generateEntities**(`config?`: [Config](../interfaces/_api_cds_webapi_cdswebapi_.cdswebapi.config.md), `folder?`: string, `outputFileName?`: string, `namespace?`: string, `configFile?`: Uri): *Promise‹void›*

Defined in src/components/CodeGeneration/CodeGenerationManager.ts:31
Defined in src/components/CodeGeneration/CodeGenerationManager.ts:42

**Parameters:**

Expand All @@ -87,6 +107,7 @@ Name | Type |
`folder?` | string |
`outputFileName?` | string |
`namespace?` | string |
`configFile?` | Uri |

**Returns:** *Promise‹void›*

Expand All @@ -96,7 +117,7 @@ ___

**generateEntityCodeToFile**(`file?`: Uri): *Promise‹unknown›*

Defined in src/components/CodeGeneration/CodeGenerationManager.ts:11
Defined in src/components/CodeGeneration/CodeGenerationManager.ts:12

**Parameters:**

Expand All @@ -112,7 +133,7 @@ ___

**generateEntityCodeToFolder**(`folder?`: Uri): *Promise‹unknown›*

Defined in src/components/CodeGeneration/CodeGenerationManager.ts:16
Defined in src/components/CodeGeneration/CodeGenerationManager.ts:22

**Parameters:**

Expand All @@ -124,11 +145,27 @@ Name | Type |

___

### generateEntityCodeUsingConfig

**generateEntityCodeUsingConfig**(`configFile?`: Uri): *Promise‹unknown›*

Defined in src/components/CodeGeneration/CodeGenerationManager.ts:17

**Parameters:**

Name | Type |
------ | ------ |
`configFile?` | Uri |

**Returns:** *Promise‹unknown›*

___

### parseXml

**parseXml**(`xml`: any): *any*

Defined in src/components/CodeGeneration/CodeGenerationManager.ts:40
Defined in src/components/CodeGeneration/CodeGenerationManager.ts:56

**Parameters:**

Expand All @@ -137,3 +174,37 @@ Name | Type |
`xml` | any |

**Returns:** *any*

___

### saveConfig

**saveConfig**(`config`: any, `xml`: any): *any*

Defined in src/components/CodeGeneration/CodeGenerationManager.ts:171

**Parameters:**

Name | Type |
------ | ------ |
`config` | any |
`xml` | any |

**Returns:** *any*

___

### saveCrmSvcUtilConfig

**saveCrmSvcUtilConfig**(`config`: any, `file?`: Uri): *Promise‹void›*

Defined in src/components/CodeGeneration/CodeGenerationManager.ts:52

**Parameters:**

Name | Type |
------ | ------ |
`config` | any |
`file?` | Uri |

**Returns:** *Promise‹void›*
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
---
id: "_components_templates_templateengine_.templateengine"
title: "TemplateEngine"
sidebar_label: "TemplateEngine"
---

[cds-for-code](../index.md)[Globals](../globals.md)["components/Templates/TemplateEngine"](../modules/_components_templates_templateengine_.md)[TemplateEngine](_components_templates_templateengine_.templateengine.md)

## Hierarchy

* **TemplateEngine**

## Index

### Methods

* [applyTemplate](_components_templates_templateengine_.templateengine.md#static-applytemplate)
* [defaultResolver](_components_templates_templateengine_.templateengine.md#static-private-defaultresolver)
* [getPlaceholders](_components_templates_templateengine_.templateengine.md#static-getplaceholders)
* [mergePlaceholders](_components_templates_templateengine_.templateengine.md#static-mergeplaceholders)
* [resolvePlaceholders](_components_templates_templateengine_.templateengine.md#static-resolveplaceholders)

## Methods

### `Static` applyTemplate

**applyTemplate**(`template`: [TemplateItem](_components_templates_types_.templateitem.md), `data`: string | Buffer, `placeholders?`: [Dictionary](_core_types_dictionary_.dictionary.md)‹string, string›, `object?`: any): *Promise‹string | Buffer›*

Defined in src/components/Templates/TemplateEngine.ts:15

**Parameters:**

Name | Type |
------ | ------ |
`template` | [TemplateItem](_components_templates_types_.templateitem.md) |
`data` | string | Buffer |
`placeholders?` | [Dictionary](_core_types_dictionary_.dictionary.md)‹string, string› |
`object?` | any |

**Returns:** *Promise‹string | Buffer›*

___

### `Static` `Private` defaultResolver

**defaultResolver**(`data`: string | Buffer, `placeholderRegExp`: RegExp, `template?`: [TemplateItem](_components_templates_types_.templateitem.md), `defaultPlaceholders?`: [Dictionary](_core_types_dictionary_.dictionary.md)‹string, string›): *Promise‹string | Buffer›*

Defined in src/components/Templates/TemplateEngine.ts:72

**Parameters:**

Name | Type |
------ | ------ |
`data` | string | Buffer |
`placeholderRegExp` | RegExp |
`template?` | [TemplateItem](_components_templates_types_.templateitem.md) |
`defaultPlaceholders?` | [Dictionary](_core_types_dictionary_.dictionary.md)‹string, string› |

**Returns:** *Promise‹string | Buffer›*

___

### `Static` getPlaceholders

**getPlaceholders**(`fsItem`: string, `placeholderRegExp`: string, `isFolder`: boolean): *string[]*

Defined in src/components/Templates/TemplateEngine.ts:157

**Parameters:**

Name | Type |
------ | ------ |
`fsItem` | string |
`placeholderRegExp` | string |
`isFolder` | boolean |

**Returns:** *string[]*

___

### `Static` mergePlaceholders

**mergePlaceholders**(`source`: [TemplatePlaceholder](_components_templates_types_.templateplaceholder.md)[], `merge`: [TemplatePlaceholder](_components_templates_types_.templateplaceholder.md)[]): *[TemplatePlaceholder](_components_templates_types_.templateplaceholder.md)‹›[]*

Defined in src/components/Templates/TemplateEngine.ts:229

**Parameters:**

Name | Type |
------ | ------ |
`source` | [TemplatePlaceholder](_components_templates_types_.templateplaceholder.md)[] |
`merge` | [TemplatePlaceholder](_components_templates_types_.templateplaceholder.md)[] |

**Returns:** *[TemplatePlaceholder](_components_templates_types_.templateplaceholder.md)‹›[]*

___

### `Static` resolvePlaceholders

**resolvePlaceholders**(`data`: string | Buffer, `placeholderRegExp`: string, `placeholders`: [Dictionary](_core_types_dictionary_.dictionary.md)‹string, string›, `templateInfo`: [TemplateItem](_components_templates_types_.templateitem.md), `resolvers?`: function[]): *Promise‹string | Buffer›*

Defined in src/components/Templates/TemplateEngine.ts:48

Replaces any placeholders found within the input data. Will use a
dictionary of values from the user's workspace settings, or will prompt
if value is not known.

**Parameters:**

Name | Type | Description |
------ | ------ | ------ |
`data` | string | Buffer | input data |
`placeholderRegExp` | string | regular expression to use for detecting placeholders. The first capture group is used as the key. |
`placeholders` | [Dictionary](_core_types_dictionary_.dictionary.md)‹string, string› | dictionary of placeholder key-value pairs |
`templateInfo` | [TemplateItem](_components_templates_types_.templateitem.md) | - |
`resolvers?` | function[] | - |

**Returns:** *Promise‹string | Buffer›*

the (potentially) modified data, with the same type as the input data

This file was deleted.

Loading

0 comments on commit d58d511

Please sign in to comment.