question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

configuration does not apply in VS code?

See original GitHub issue

Hello, I’m trying to use the VS Code extension and cannot get the configuration file to work.

I have this log information from VS code:

INFO: Loading user/workspace configuration for “c:\Users\me\dd\project-xyz\things\X.md” (not in a workspace folder). INFO: Linting for “c:\Users\me\dd\project-xyz\things\X.md” will be run “onType”. INFO: Loading user/workspace configuration for “c:\Users\me\dd\project-abc\docs\X.md” (not in a workspace folder). INFO: Linting for “c:\Users\me\dd\project-abc\docs\X.md” will be run “onType”

I have configuration files at location c:\Users\me\dd\project-xyz and c:\Users\me\dd\project-abc. I tried many formats:

.markdownlint.cjs

// @ts-check

"use strict";

module.exports = {
  "default": true,
  "MD003": "setext_with_atx",
  "MD009": false,
  "MD012": false
}

.markdownlint.json

{
  "MD003": "setext_with_atx",
  "MD009": false,
  "MD012": false
}

.markdownlint.yaml

MD003: setext_with_atx
MD009: false
MD012: false

VS code still shows me the warnings that I want to disable.

What am I doing wrong?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
DavidAnsoncommented, Jul 7, 2022
  • That would lead to strange behavior when it went further up the tree than the project root for files in a project opened outside the project.
  • Sopping at the first configuration file isn’t necessarily correct as there may be a parent file or two as well.
  • User mode apps will not always have permission to read to the top of the file system and this extension should not do things that generate a security prompt.
  • See also: https://github.com/DavidAnson/markdownlint-cli2/issues/53
0reactions
sandrockcommented, Jul 11, 2022

Okay. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

User and Workspace Settings - Visual Studio Code
You can open the settings.json file with the Preferences: Open Settings (JSON) command in the Command Palette (Ctrl+Shift+P).
Read more >
Cannot change visual studio code settings - Stack Overflow
These are the steps I used: 1. Ctrl-Shift-p to open the Command palette 2. Search for Settings and click Preferences: Open User Settings...
Read more >
Menu shows "No Configurations" when .vscode folder is on ...
Menu shows "No Configurations" when .vscode folder is on the root of the drive and the root drive is opened in VS Code...
Read more >
Debug a .NET console application using Visual Studio Code
This tutorial introduces the debugging tools available in Visual Studio Code for working with .NET apps.
Read more >
Fix 'Unable to write into user settings" | Visual Studio Code
Getting an annoying error whenever you're changing settings in Visual Studio Code ( VS Code )? Well, this video shows you how things...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found