Skip to content

Commit

Permalink
Correct handler for config file
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmlnc committed Dec 10, 2016
1 parent bd61d6d commit 7f24ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async function runRemark(document: vscode.TextDocument, range: vscode.Range): Pr
let remarkSettings;

const config = await getWorkspaceConfig();
if (config) {
if (config && Object.keys(config).length !== 0) {
remarkSettings = config;
remarkSettings.rules = config.settings;
} else {
Expand Down

0 comments on commit 7f24ba5

Please sign in to comment.