microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.09k stars 29.26k forks source link

Disabled extensions automatically enabled after restart vscode #31303

Closed binsee closed 7 years ago

binsee commented 7 years ago

Steps to Reproduce:

  1. Disable one or plural or all extensions and close the editor.
  2. Restart loading vscode , extension disabled.
  3. Close vscode.
  4. Start vscode and see that the extension is enabled automatically.

Reproduces without extensions: No

binsee commented 7 years ago

Installed extensions list

[
  {
    "name": "addDocComments",
    "publisher": "stevencl",
    "version": "0.0.8"
  },
  {
    "name": "auto-close-tag",
    "publisher": "formulahendry",
    "version": "0.4.3"
  },
  {
    "name": "auto-rename-tag",
    "publisher": "formulahendry",
    "version": "0.0.14"
  },
  {
    "name": "beautify",
    "publisher": "HookyQR",
    "version": "1.1.1"
  },
  {
    "name": "Bookmarks",
    "publisher": "alefragnani",
    "version": "0.15.2"
  },
  {
    "name": "code-runner",
    "publisher": "formulahendry",
    "version": "0.6.28"
  },
  {
    "name": "code-settings-sync",
    "publisher": "Shan",
    "version": "2.8.2"
  },
  {
    "name": "debugger-for-chrome",
    "publisher": "msjsdiag",
    "version": "3.1.6"
  },
  {
    "name": "EditorConfig",
    "publisher": "EditorConfig",
    "version": "0.9.4"
  },
  {
    "name": "eggjs-dev-tools",
    "publisher": "yuzukwok",
    "version": "0.4.0"
  },
  {
    "name": "evermonkey",
    "publisher": "michalyao",
    "version": "2.3.15"
  },
  {
    "name": "file-icons",
    "publisher": "file-icons",
    "version": "1.0.4"
  },
  {
    "name": "git-project-manager",
    "publisher": "felipecaputo",
    "version": "1.3.2"
  },
  {
    "name": "githistory",
    "publisher": "donjayamanne",
    "version": "0.2.2"
  },
  {
    "name": "gitignore",
    "publisher": "codezombiech",
    "version": "0.5.0"
  },
  {
    "name": "JavaScriptSnippets",
    "publisher": "xabikos",
    "version": "1.4.1"
  },
  {
    "name": "json-tools",
    "publisher": "eriklynd",
    "version": "1.0.2"
  },
  {
    "name": "json2ts",
    "publisher": "GregorBiswanger",
    "version": "0.0.6"
  },
  {
    "name": "LogFileHighlighter",
    "publisher": "emilast",
    "version": "1.1.1"
  },
  {
    "name": "markdown-checkbox",
    "publisher": "PKief",
    "version": "1.0.2"
  },
  {
    "name": "markdown-preview-enhanced",
    "publisher": "shd101wyy",
    "version": "0.2.1"
  },
  {
    "name": "markdown-shortcuts",
    "publisher": "mdickin",
    "version": "0.8.1"
  },
  {
    "name": "markdown-toc",
    "publisher": "AlanWalk",
    "version": "1.5.5"
  },
  {
    "name": "markdowninclude",
    "publisher": "Kevenin",
    "version": "1.1.2"
  },
  {
    "name": "material-icon-theme",
    "publisher": "PKief",
    "version": "2.0.11"
  },
  {
    "name": "mithril-emmet",
    "publisher": "FallenMax",
    "version": "0.6.1"
  },
  {
    "name": "mssql",
    "publisher": "ms-mssql",
    "version": "1.1.0"
  },
  {
    "name": "node-modules-resolve",
    "publisher": "naumovs",
    "version": "1.0.2"
  },
  {
    "name": "node-tdd",
    "publisher": "prashaantt",
    "version": "0.2.3"
  },
  {
    "name": "npm-intellisense",
    "publisher": "christian-kohler",
    "version": "1.3.0"
  },
  {
    "name": "pasteurl",
    "publisher": "kukushi",
    "version": "0.3.8"
  },
  {
    "name": "preview-vscode",
    "publisher": "searKing",
    "version": "1.1.5"
  },
  {
    "name": "python",
    "publisher": "donjayamanne",
    "version": "0.6.9"
  },
  {
    "name": "randomeverything",
    "publisher": "helixquar",
    "version": "0.0.3"
  },
  {
    "name": "standard",
    "publisher": "shinnn",
    "version": "0.2.3"
  },
  {
    "name": "terminal",
    "publisher": "formulahendry",
    "version": "0.0.10"
  },
  {
    "name": "tslint",
    "publisher": "eg2",
    "version": "0.16.0"
  },
  {
    "name": "vetur",
    "publisher": "octref",
    "version": "0.9.2"
  },
  {
    "name": "vscode-color",
    "publisher": "anseki",
    "version": "0.4.1"
  },
  {
    "name": "vscode-database",
    "publisher": "bajdzis",
    "version": "1.2.0"
  },
  {
    "name": "vscode-docker",
    "publisher": "PeterJausovec",
    "version": "0.0.16"
  },
  {
    "name": "vscode-es-beautifier",
    "publisher": "dai-shi",
    "version": "0.2.4"
  },
  {
    "name": "vscode-eslint",
    "publisher": "dbaeumer",
    "version": "1.2.11"
  },
  {
    "name": "vscode-extension-auto-import",
    "publisher": "moppitz",
    "version": "1.3.3"
  },
  {
    "name": "vscode-fileheader",
    "publisher": "mikey",
    "version": "0.0.2"
  },
  {
    "name": "vscode-generate-getter-setter",
    "publisher": "DSKWRK",
    "version": "0.4.2"
  },
  {
    "name": "vscode-great-icons",
    "publisher": "emmanuelbeziat",
    "version": "2.1.11"
  },
  {
    "name": "vscode-icons",
    "publisher": "robertohuertasm",
    "version": "7.10.1"
  },
  {
    "name": "vscode-instant-markdown",
    "publisher": "dbankier",
    "version": "1.2.1"
  },
  {
    "name": "vscode-JS-CSS-HTML-formatter",
    "publisher": "lonefy",
    "version": "0.2.3"
  },
  {
    "name": "vscode-markdown-paste-image",
    "publisher": "telesoho",
    "version": "0.4.7"
  },
  {
    "name": "vscode-markdownlint",
    "publisher": "DavidAnson",
    "version": "0.10.0"
  },
  {
    "name": "vscode-new-file",
    "publisher": "dkundel",
    "version": "3.1.1"
  },
  {
    "name": "vscode-node-readme",
    "publisher": "bengreenier",
    "version": "1.1.0"
  },
  {
    "name": "vscode-npm-script",
    "publisher": "eg2",
    "version": "0.2.0"
  },
  {
    "name": "vscode-postfix-ts",
    "publisher": "ipatalas",
    "version": "1.6.0"
  },
  {
    "name": "vscode-standard-format",
    "publisher": "chenxsan",
    "version": "0.0.12"
  },
  {
    "name": "vscode-theme-onedark",
    "publisher": "akamud",
    "version": "2.0.3"
  },
  {
    "name": "vscode-todo",
    "publisher": "MattiasPernhult",
    "version": "0.8.0"
  },
  {
    "name": "vscode-todo-highlight",
    "publisher": "wayou",
    "version": "0.5.8"
  },
  {
    "name": "vscode-todo-parser",
    "publisher": "minhthai",
    "version": "1.9.0"
  },
  {
    "name": "vscode-tsconfig-glob",
    "publisher": "budiadiono",
    "version": "0.1.0"
  },
  {
    "name": "vue",
    "publisher": "liuji-jim",
    "version": "0.1.5"
  },
  {
    "name": "vue-snippets",
    "publisher": "hollowtree",
    "version": "0.1.2"
  },
  {
    "name": "Vue2",
    "publisher": "ducksoupdev",
    "version": "0.1.3"
  },
  {
    "name": "vuehelper",
    "publisher": "oysun",
    "version": "0.1.0"
  },
  {
    "name": "webpack",
    "publisher": "jeremyrajan",
    "version": "2.0.0"
  },
  {
    "name": "wpy-beautify",
    "publisher": "doingweb",
    "version": "2.0.10"
  }
]
binsee commented 7 years ago

Installed extensions list

Extension Author (truncated) Version
addDocComments stevencl 0.0.8
auto-close-tag formulahendry 0.4.3
auto-rename-tag formulahendry 0.0.14
Bookmarks alefragnani 0.15.2
code-runner formulahendry 0.6.28
code-settings-sync Shan 2.8.2
debugger-for-chrome msjsdiag 3.1.6
EditorConfig EditorConfig 0.9.4
eggjs-dev-tools yuzukwok 0.4.0
evermonkey michalyao 2.3.15
file-icons file-icons 1.0.4
git-project-manager felipecaputo 1.3.2
githistory donjayamanne 0.2.2
gitignore codezombiech 0.5.0
JavaScriptSnippets xabikos 1.4.1
json-tools eriklynd 1.0.2
json2ts GregorBiswanger 0.0.6
LogFileHighlighter emilast 1.1.1
markdown-checkbox PKief 1.0.2
markdown-preview-enhanced shd101wyy 0.2.1
markdown-shortcuts mdickin 0.8.1
markdown-toc AlanWalk 1.5.5
markdowninclude Kevenin 1.1.2
material-icon-theme PKief 2.0.11
mithril-emmet FallenMax 0.6.1
mssql ms-mssql 1.1.0
node-modules-resolve naumovs 1.0.2
node-tdd prashaantt 0.2.3
npm-intellisense christian-kohler 1.3.0
pasteurl kukushi 0.3.8
preview-vscode searKing 1.1.5
python donjayamanne 0.6.9
randomeverything helixquar 0.0.3
standard shinnn 0.2.3
terminal formulahendry 0.0.10
tslint eg2 0.16.0
vetur octref 0.9.2
vscode-color anseki 0.4.1
vscode-database bajdzis 1.2.0
vscode-docker PeterJausovec 0.0.16
vscode-es-beautifier dai-shi 0.2.4
vscode-eslint dbaeumer 1.2.11
vscode-extension-auto-import moppitz 1.3.3
vscode-fileheader mikey 0.0.2
vscode-generate-getter-setter DSKWRK 0.4.2
vscode-great-icons emmanuelbeziat 2.1.11
vscode-icons robertohuertasm 7.10.1
vscode-instant-markdown dbankier 1.2.1
vscode-JS-CSS-HTML-formatter lonefy 0.2.3
vscode-markdown-paste-image telesoho 0.4.7
vscode-markdownlint DavidAnson 0.10.0
vscode-new-file dkundel 3.1.1
vscode-node-readme bengreenier 1.1.0
vscode-npm fknop 3.3.0
vscode-npm-script eg2 0.2.0
vscode-postfix-ts ipatalas 1.6.0
vscode-standard-format chenxsan 0.0.12
vscode-theme-onedark akamud 2.0.3
vscode-todo MattiasPernhult 0.8.0
vscode-todo-highlight wayou 0.5.8
vscode-todo-parser minhthai 1.9.0
vscode-tsconfig-glob budiadiono 0.1.0
vue liuji-jim 0.1.5
vue-snippets hollowtree 0.1.2
Vue2 ducksoupdev 0.1.3
vuehelper oysun 0.1.0
webpack jeremyrajan 2.0.0
wpy-beautify doingweb 2.0.10
binsee commented 7 years ago

I did other tests and still had problems.

Steps to Reproduce:

  1. Deleting the .Vscode\extensions folder.
  2. Install any extensions and disable it.
  3. Close and start vscode again
  4. The extension is enabled automatically.

    So is this the new version of bug?

sandy081 commented 7 years ago

@binsee I am not able to reproduce it. Do you see any errors while loading ?

binsee commented 7 years ago

@sandy081 Oh, I seem to find out where the problem is. I tried to delete the "% appdata% \ Code" directory and tested again, the problem did not recur. I am trying to compare the problem with the "Code" directory what is the difference, later add the details.

sandy081 commented 7 years ago

So you say you cannot reproduce the issue.. and it was happening because of deleting a different folder?

binsee commented 7 years ago

I have now determined that the %appdata%\Code\Local Storage\file__0.localstorage file is faulty and cause the problem to happen. After deleting this file, the problem will not be repeated again. But which is what configuration caused the problem, I have not yet determined, still in the investigation.

sandy081 commented 7 years ago

You can use the global command Open Extensions Folder to find out where extensions are installed.