Skip to content

Commit 42dfe9b

Browse files
authored
Merge pull request #33 from team-monolith-product/feature/support-multi-root-setting-v2
Support resource scoped configurations v2 : editMap and renderMap
2 parents b0392e6 + 1e6bf37 commit 42dfe9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Config {
5858

5959
function getEditMap() {
6060
/**@type {string[]} */
61-
const cmds = vscode.workspace.getConfiguration("mdPasteEnhanced")["editMap"];
61+
const cmds = vscode.workspace.getConfiguration("mdPasteEnhanced", vscode.window.activeTextEditor.document)["editMap"];
6262
return cmds.map(parseCmd);
6363
/**
6464
*
@@ -97,7 +97,7 @@ function getEditMap() {
9797
function getRenderPattern() {
9898
/**@type {string[]} */
9999
const rawPatterns =
100-
vscode.workspace.getConfiguration("mdPasteEnhanced")["renderMap"];
100+
vscode.workspace.getConfiguration("mdPasteEnhanced", vscode.window.activeTextEditor.document)["renderMap"];
101101
return rawPatterns.map(parsePattern);
102102

103103
/**

0 commit comments

Comments
 (0)