Avoid warning when acessing md setting
This commit is contained in:
parent
b3e4cf25d3
commit
a71ebc98ff
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ export class MarkdownEngine {
|
||||||
}
|
}
|
||||||
|
|
||||||
private getConfig(resource?: vscode.Uri): MarkdownItConfig {
|
private getConfig(resource?: vscode.Uri): MarkdownItConfig {
|
||||||
const config = vscode.workspace.getConfiguration('markdown', resource);
|
const config = vscode.workspace.getConfiguration('markdown', resource ?? null);
|
||||||
return {
|
return {
|
||||||
breaks: config.get<boolean>('preview.breaks', false),
|
breaks: config.get<boolean>('preview.breaks', false),
|
||||||
linkify: config.get<boolean>('preview.linkify', true),
|
linkify: config.get<boolean>('preview.linkify', true),
|
||||||
|
|
Loading…
Reference in a new issue