Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indentation setting changes when Code loses focus #84701

Closed
patik opened this issue Nov 13, 2019 · 3 comments
Closed

Indentation setting changes when Code loses focus #84701

patik opened this issue Nov 13, 2019 · 3 comments

Comments

@patik
Copy link

patik commented Nov 13, 2019

Issue Type: Bug

  1. Open a file that is recognized as being indented with 2 spaces (in my case, a Java file)
  2. Use the command pallette to change the indentation to 4 spaces
  3. Notice that the faint vertical guides have changed (there's one every 4 characters now, instead of every 2, which is correct)
  4. Optionally format the file (with command pallette or by saving)
  5. Switch to another window (besides Code)
  6. Switch back to Code
  7. The indentation has been reverted to 2 spaces

VS Code version: Code 1.40.0 (86405ea, 2019-11-06T17:09:34.601Z)
OS version: Darwin x64 19.0.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 2800)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 4, 3, 7
Memory (System) 16.00GB (0.51GB free)
Process Argv -psn_0_90134
Screen Reader no
VM 0%
Extensions (45)
Extension Author (truncated) Version
indenticator Sir 0.6.0
html-snippets abu 0.2.1
cucumberautocomplete ale 2.14.1
npm-intellisense chr 1.3.0
regex chr 0.2.0
bracket-pair-colorizer-2 Coe 0.0.28
vscode-markdownlint Dav 0.32.0
vscode-eslint dba 1.9.1
githistory don 0.4.6
xml Dot 2.5.0
gitlens eam 10.1.2
EditorConfig Edi 0.14.2
vscode-npm-script eg2 0.3.9
prettier-vscode esb 3.4.1
flow-for-vscode flo 1.5.0
auto-rename-tag for 0.1.1
macros ged 1.2.1
vscode-pull-request-github Git 0.13.0
gc-excelviewer Gra 2.1.32
vscode-text-pastry jkj 1.2.0
yelpcheetah joe 1.0.1
node-module-intellisense lei 1.5.0
git-graph mhu 1.18.0
theme-monokai-pro-vscode mon 1.1.14
vscode-duplicate mrm 1.2.1
vscode-scss mrm 0.6.2
sublime-keybindings ms- 4.0.3
vsliveshare ms- 1.0.1123
debugger-for-chrome msj 4.12.1
vetur oct 0.22.6
typescript-hero rbb 3.0.0
java red 0.52.0
duplicatetext riv 0.0.3
code-settings-sync Sha 3.4.3
open-in-browser tec 2.0.0
vscodeintellicode Vis 1.2.0
vscode-java-debug vsc 0.23.0
vscode-java-dependency vsc 0.6.0
vscode-java-pack vsc 0.8.0
vscode-java-test vsc 0.21.0
vscode-maven vsc 0.19.1
vscode-icons vsc 9.5.0
twig wha 1.0.2
change-case wma 1.0.0
JavaScriptSnippets xab 1.7.2

(1 theme extensions excluded)

@rebornix rebornix self-assigned this Nov 13, 2019
@rebornix rebornix added bug Issue identified by VS Code Team member as probable bug editor-autoindent Editor auto indentation issues labels Jul 22, 2020
@rebornix rebornix added editor-indent-detection and removed editor-autoindent Editor auto indentation issues labels Oct 13, 2020
@rebornix
Copy link
Member

rebornix commented Nov 4, 2020

I'm not able to reproduce this issue in latest VS Code stable on macOS. closing it for now but we can reopen if you are seeing it still.

@rebornix rebornix closed this as completed Nov 4, 2020
@rebornix rebornix removed the bug Issue identified by VS Code Team member as probable bug label Nov 4, 2020
@jjjjeeffff
Copy link

jjjjeeffff commented Dec 5, 2020

I'm experiencing this now with latest VS Code on macOS. Specifically with a YAML file. I select 2 space indentation and switch window focus to another app and come back to 4 space indentation.

Edit: Nope this is my fault, maybe the same case for you based on your extension list. It was an EditorConfig rule specifying 4-space indentation to *.

@ghost
Copy link

ghost commented Dec 5, 2020 via email

@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants