Skip to content

Commit 751199d

Browse files
committed
Revert "Add backwards compat for old setting and update Changelog"
This reverts commit a8c605d.
1 parent a8c605d commit 751199d

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
- Add `markdownCodeBlock.includeLanguageIdentifier` configuration option for Markdown block behavior.
1111
- Allows to set whether Markdown blocks should always include the [language identifier](https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks) which allows for syntax highlighting in some tools (for example github.com) but is not compatible with others (for example Slack).
1212
- The default is "`prompt`" which makes the extension always prompt when using the "Copy Snippet as Markdown Code Block" command.
13-
- **This replaces `snippet-copy.addLanguageIdentifierToMarkdownBlock`**. Switch to the new `snippet-copy.markdownCodeBlock.includeLanguageIdentifier` setting.
1413

1514
## [0.2.3]
1615

src/lib/textHelpers.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ export function wrapTextInMarkdownCodeBlock(document: TextDocument, text: string
4747
}
4848

4949
export async function includeLanguageIdentifier(config: ExtensionConfig): Promise<boolean> {
50-
if (config.addLanguageIdentifierToMarkdownBlock) {
51-
return true;
52-
}
53-
5450
let includeLanguageIdentifier = config.markdownCodeBlock.includeLanguageIdentifier;
5551

5652
if (includeLanguageIdentifier === 'prompt') {

0 commit comments

Comments
 (0)