Repository: FHIR/sushi
Pull request #999 (2022-01-04 13:49:20)

Update link to VS Code FSH extension
The name kind of says it all.

Actually, it doesn't.  I also updated the copyright dates.

There.  Now it has all been said.

_EDIT: No, it has not all been said. I have also fixed the date-sensitive SUSHI init tests.  So... *now* all has been said._

cmoesel: Somehow my change to the README broke unit tests?  This is not good.

Patch:
diff --git a/README.md b/README.md
index b13551b..dbf905b 100644
--- a/README.md
+++ b/README.md
@@ -123,11 +123,11 @@ For the best experience, developers should use [Visual Studio Code](https://code
         "editor.formatOnSave": true
     }
     ```
-- [vscode-language-fsh](https://marketplace.visualstudio.com/items?itemName=kmahalingam.vscode-language-fsh)
+- [vscode-language-fsh](https://marketplace.visualstudio.com/items?itemName=MITRE-Health.vscode-language-fsh)
 
 # License
 
-Copyright 2019 Health Level Seven International
+Copyright 2019-2022 Health Level Seven International
 
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
diff --git a/src/utils/init-project/sushi-config.yaml b/src/utils/init-project/sushi-config.yaml
index da05ee2..fa13c43 100644
--- a/src/utils/init-project/sushi-config.yaml
+++ b/src/utils/init-project/sushi-config.yaml
@@ -167,20 +167,20 @@ menu:
 # * copyright
 # * packageId
 #
-# 
+#
 # ╭──────────────────────────────────────────SUSHI flags───────────────────────────────────────────╮
 # │  The flags below configure aspects of how SUSHI processes FSH.                                 │
 # ╰────────────────────────────────────────────────────────────────────────────────────────────────╯
 # The FSHOnly flag indicates if only FSH resources should be exported.
 # If set to true, no IG related content will be generated.
 # The default value for this property is false.
-# 
+#
 # FSHOnly: false
 #
-# 
+#
 # When set to true, the "short" and "definition" field on the root element of an Extension will
 # be set to the "Title" and "Description" of that Extension. Default is true.
-# 
+#
 # applyExtensionMetadataToRoot: true
 #
 #


Test patch:
diff --git a/test/utils/Processing.test.ts b/test/utils/Processing.test.ts
index 796d6f2..8e2ced5 100644
--- a/test/utils/Processing.test.ts
+++ b/test/utils/Processing.test.ts
@@ -1149,6 +1149,7 @@ describe('Processing', () => {
             'utf-8'
           )
           .replace(/[\n\r]/g, '')
+          .replace('${YEAR}', String(new Date().getFullYear()))
       );
 
       expect(copyFileSpy.mock.calls).toHaveLength(3);
@@ -1221,6 +1222,7 @@ describe('Processing', () => {
             'utf-8'
           )
           .replace(/[\n\r]/g, '')
+          .replace('${YEAR}', String(new Date().getFullYear()))
       );
       expect(copyFileSpy.mock.calls).toHaveLength(3);
       expect(copyFileSpy.mock.calls[0][1]).toMatch(/.*MyNonDefaultName.*fsh.*patient.fsh/);
diff --git a/test/utils/fixtures/init-config/default-config.yaml b/test/utils/fixtures/init-config/default-config.yaml
index 988e909..7d3ffd2 100644
--- a/test/utils/fixtures/init-config/default-config.yaml
+++ b/test/utils/fixtures/init-config/default-config.yaml
@@ -11,7 +11,7 @@ name: ExampleIG
 status: draft # draft | active | retired | unknown
 version: 0.1.0
 fhirVersion: 4.0.1 # https://www.hl7.org/fhir/valueset-FHIR-version.html
-copyrightYear: 2021+
+copyrightYear: ${YEAR}+
 releaseLabel: ci-build # ci-build | draft | qa-preview | ballot | trial-use | release | update | normative+trial-use
 # license: CC0-1.0 # https://www.hl7.org/fhir/valueset-spdx-license.html
 # jurisdiction: urn:iso:std:iso:3166#US "United States of America" # https://www.hl7.org/fhir/valueset-jurisdiction.html
@@ -167,20 +167,20 @@ menu:
 # * copyright
 # * packageId
 #
-# 
+#
 # ╭──────────────────────────────────────────SUSHI flags───────────────────────────────────────────╮
 # │  The flags below configure aspects of how SUSHI processes FSH.                                 │
 # ╰────────────────────────────────────────────────────────────────────────────────────────────────╯
 # The FSHOnly flag indicates if only FSH resources should be exported.
 # If set to true, no IG related content will be generated.
 # The default value for this property is false.
-# 
+#
 # FSHOnly: false
 #
-# 
+#
 # When set to true, the "short" and "definition" field on the root element of an Extension will
 # be set to the "Title" and "Description" of that Extension. Default is true.
-# 
+#
 # applyExtensionMetadataToRoot: true
 #
 #
diff --git a/test/utils/fixtures/init-config/user-input-config.yaml b/test/utils/fixtures/init-config/user-input-config.yaml
index 8d2549b..e4a981d 100644
--- a/test/utils/fixtures/init-config/user-input-config.yaml
+++ b/test/utils/fixtures/init-config/user-input-config.yaml
@@ -11,7 +11,7 @@ name: MyNonDefaultName
 status: active # draft | active | retired | unknown
 version: 2.0.0
 fhirVersion: 4.0.1 # https://www.hl7.org/fhir/valueset-FHIR-version.html
-copyrightYear: 2021+
+copyrightYear: ${YEAR}+
 releaseLabel: ci-build # ci-build | draft | qa-preview | ballot | trial-use | release | update | normative+trial-use
 # license: CC0-1.0 # https://www.hl7.org/fhir/valueset-spdx-license.html
 # jurisdiction: urn:iso:std:iso:3166#US "United States of America" # https://www.hl7.org/fhir/valueset-jurisdiction.html
@@ -167,20 +167,20 @@ menu:
 # * copyright
 # * packageId
 #
-# 
+#
 # ╭──────────────────────────────────────────SUSHI flags───────────────────────────────────────────╮
 # │  The flags below configure aspects of how SUSHI processes FSH.                                 │
 # ╰────────────────────────────────────────────────────────────────────────────────────────────────╯
 # The FSHOnly flag indicates if only FSH resources should be exported.
 # If set to true, no IG related content will be generated.
 # The default value for this property is false.
-# 
+#
 # FSHOnly: false
 #
-# 
+#
 # When set to true, the "short" and "definition" field on the root element of an Extension will
 # be set to the "Title" and "Description" of that Extension. Default is true.
-# 
+#
 # applyExtensionMetadataToRoot: true
 #
 #