Skip to content

Commit 173cb83

Browse files
committed
Fix config option
1 parent ccf5626 commit 173cb83

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"configuration": {
3838
"title": "Snippet Copy",
3939
"properties": {
40-
"snippet-copy.addLanguageIdToMarkdownBlock": {
40+
"snippet-copy.addLanguageIdentifierToMarkdownBlock": {
4141
"type": "boolean",
4242
"default": false,
4343
"description": "Add a programming language identifier to the beginning of the Markdown code block. This is incompatible with some apps, for example Slack."

src/lib/textHelpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function generateSnippet(document: TextDocument, selections: Selection[],
1313
if (markdownCodeBlock) {
1414
const config = workspace.getConfiguration('snippet-copy');
1515

16-
return wrapTextInMarkdownCodeBlock(document, snippet, config.addLanguageId);
16+
return wrapTextInMarkdownCodeBlock(document, snippet, config.addLanguageIdentifierToMarkdownBlock);
1717
}
1818

1919
return snippet;

0 commit comments

Comments
 (0)