Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Update on save ("markdown-toc.updateOnSave") setting not working #59

@ahmetb

Description

@ahmetb

I set "markdown-toc.updateOnSave": false and restarted vscode.

Let's say I have thic ToC generated:

- [Authentication](#authentication)
    - [Exposing credentials to the build](#exposing-credentials-to-the-build)
  - [SSH authentication (Git)](#ssh-authentication-git)
  - [Basic authentication (Git)](#basic-authentication-git)
  - [Basic authentication (Docker)](#basic-authentication-docker)
    - [Guiding credential selection](#guiding-credential-selection)
  - [Implementation detail](#implementation-detail)
    - [Docker `basic-auth`](#docker-basic-auth)
    - [Git `basic-auth`](#git-basic-auth)
    - [Git `ssh-auth`](#git-ssh-auth)
    - [Least privilege](#least-privilege)

now I delete first two lines:

  - [SSH authentication (Git)](#ssh-authentication-git)
  - [Basic authentication (Git)](#basic-authentication-git)
  - [Basic authentication (Docker)](#basic-authentication-docker)
    - [Guiding credential selection](#guiding-credential-selection)
  - [Implementation detail](#implementation-detail)
    - [Docker `basic-auth`](#docker-basic-auth)
    - [Git `basic-auth`](#git-basic-auth)
    - [Git `ssh-auth`](#git-ssh-auth)
    - [Least privilege](#least-privilege)

and save, it saves as is (expected).

Now I unindent these to remove the left padding spaces:

- [SSH authentication (Git)](#ssh-authentication-git)
- [Basic authentication (Git)](#basic-authentication-git)
- [Basic authentication (Docker)](#basic-authentication-docker)
  - [Guiding credential selection](#guiding-credential-selection)
- [Implementation detail](#implementation-detail)
  - [Docker `basic-auth`](#docker-basic-auth)
  - [Git `basic-auth`](#git-basic-auth)
  - [Git `ssh-auth`](#git-ssh-auth)
  - [Least privilege](#least-privilege)

I save, and Markdown TOC plugin regenerates this TOC and I'm back to the initial code snippet I pasted above (unexpected) despite updateOnSave was disabled.

(plugin version 1.5.6)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions