Skip to content

Commit

Permalink
Template - VSCode: Add extensions.json (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-hughes authored Apr 17, 2024
1 parent 5b43dd8 commit d00110a
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Added extensions.json for vscode

### Changed

- Update template for SECURITY.md and add it to Sampler repository as well.
Expand Down
6 changes: 6 additions & 0 deletions Sampler/Templates/Sampler/plasterManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,12 @@
condition='${PLASTER_PARAM_ModuleType} -in @("dsccommunity","CompleteSample") -or ${PLASTER_PARAM_Features} -Contains ("All") -or ${PLASTER_PARAM_Features} -Contains ("vscode")'
/>

<!-- VSCODE SETTINGS -->
<file source='../VscodeConfig/extensions.json'
destination='${PLASTER_PARAM_ModuleName}/.vscode/extensions.json'
condition='${PLASTER_PARAM_ModuleType} -in @("dsccommunity","CompleteSample") -or ${PLASTER_PARAM_Features} -Contains ("All") -or ${PLASTER_PARAM_Features} -Contains ("vscode")'
/>

<!-- VSCODE SETTINGS -->
<file source='../VscodeConfig/tasks.json'
destination='${PLASTER_PARAM_ModuleName}/.vscode/tasks.json'
Expand Down
8 changes: 8 additions & 0 deletions Sampler/Templates/VscodeConfig/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"davidanson.vscode-markdownlint",
"ms-vscode.powershell",
"streetsidesoftware.code-spell-checker",
"redhat.vscode-yaml"
]
}
7 changes: 6 additions & 1 deletion Sampler/Templates/VscodeConfig/plasterManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<metadata>
<name>VscodeConfig</name>
<id>48fd55d5-306a-4f98-b65f-a516f652d228</id>
<version>0.0.1</version>
<version>0.0.2</version>
<title>VscodeConfig Template</title>
<description>A template to add a .vscode config with settings, Analyzersettings and tasks to a Sampler Project</description>
<author>Gael Colas</author>
Expand All @@ -30,5 +30,10 @@
destination='.vscode/tasks.json'
/>

<!-- VSCODE EXTENSIONS -->
<file source='extensions.json'
destination='.vscode/extensions.json'
/>

</content>
</plasterManifest>
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Describe 'Complete Module Plaster Template' {
'.vscode/analyzersettings.psd1'
'.vscode/settings.json'
'.vscode/tasks.json'
'.vscode/extensions.json'
'source/ModuleDsc.psd1'
'source/ModuleDsc.psm1'
# 'source/Modules/Folder.Common/Folder.Common.psm1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ Describe 'Custom Module Plaster Template' {
'.vscode/analyzersettings.psd1'
'.vscode/settings.json'
'.vscode/tasks.json'
'.vscode/extensions.json'
'source/ModuleDsc.psd1'
'source/ModuleDsc.psm1'
'source/Classes/1.class1.ps1'
Expand Down Expand Up @@ -237,6 +238,7 @@ Describe 'Custom Module Plaster Template' {
'.vscode/analyzersettings.psd1'
'.vscode/settings.json'
'.vscode/tasks.json'
'.vscode/extensions.json'
'source/ModuleDsc.psd1'
'source/ModuleDsc.psm1'
'source/Classes/1.class1.ps1'
Expand Down Expand Up @@ -391,6 +393,7 @@ Describe 'Custom Module Plaster Template' {
'.vscode/analyzersettings.psd1'
'.vscode/settings.json'
'.vscode/tasks.json'
'.vscode/extensions.json'
'source/ModuleDsc.psd1'
'source/ModuleDsc.psm1'
'source/Classes/1.class1.ps1'
Expand Down Expand Up @@ -545,6 +548,7 @@ Describe 'Custom Module Plaster Template' {
'.vscode/analyzersettings.psd1'
'.vscode/settings.json'
'.vscode/tasks.json'
'.vscode/extensions.json'
'source/ModuleDsc.psd1'
'source/ModuleDsc.psm1'
'source/Classes/1.class1.ps1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Describe 'DSC Community Plaster Template' {
'.vscode/analyzersettings.psd1'
'.vscode/settings.json'
'.vscode/tasks.json'
'.vscode/extensions.json'
'source/en-US/about_ModuleDsc.help.txt'
'source/ModuleDsc.psd1'
'source/ModuleDsc.psm1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Describe 'Vscode repo config files Plaster Template' {

# Files (relative to module folder)
'.vscode/analyzersettings.psd1'
'.vscode/extensions.json'
'.vscode/settings.json'
'.vscode/tasks.json'
)
Expand Down

0 comments on commit d00110a

Please sign in to comment.