Skip to content

Commit

Permalink
Make sure we use correct resource when accessing the [markdown] con…
Browse files Browse the repository at this point in the history
…fig setting

Fixes #51650
  • Loading branch information
mjbvz committed Jun 12, 2018
1 parent f38638c commit 99c825f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class MarkdownPreviewConfiguration {
private constructor(resource: vscode.Uri) {
const editorConfig = vscode.workspace.getConfiguration('editor', resource);
const markdownConfig = vscode.workspace.getConfiguration('markdown', resource);
const markdownEditorConfig = vscode.workspace.getConfiguration('[markdown]');
const markdownEditorConfig = vscode.workspace.getConfiguration('[markdown]', resource);

this.scrollBeyondLastLine = editorConfig.get<boolean>('scrollBeyondLastLine', false);

Expand Down

0 comments on commit 99c825f

Please sign in to comment.