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

Tabs don't get replaced with spaces in snippet transformations #103818

Closed
kwikwag opened this issue Aug 3, 2020 · 0 comments
Closed

Tabs don't get replaced with spaces in snippet transformations #103818

kwikwag opened this issue Aug 3, 2020 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders snippets verified Verification succeeded
Milestone

Comments

@kwikwag
Copy link

kwikwag commented Aug 3, 2020

  • VSCode Version: 1.47.3 (system setup)
  • OS Version: Windows_NT x64 10.0.18362

Steps to Reproduce:

issue-vscode-snippet-transformation-tabs

  1. Create a snippet with a transformation which replaces part of the text with tabs, e.g. the following Python snippet
	"Plain object": {
		"prefix": ["class"],
		"body": [
			"class ${1:Name}:",
			"\tdef __init__(self, ${2:arg_list}):",
			"\t\t${2/ *([^:]+?) *(:[^,]+)? *(,|$)/self.${1} = ${1}\n\t\t/g}",
			"\tdef __repr__(self):",
			"\t\treturn repr(self.__dict__)",
			""
		]
	}
  1. Use the snippet. The explicit tabs at the beginning of lines get replaced with spaces per the file preferences. However, the tabs that result from the transform don't overgo the same process.

Does this issue occur when all extensions are disabled?: Didn't check

@jrieken jrieken added bug Issue identified by VS Code Team member as probable bug help wanted Issues identified as good community contribution opportunities snippets labels Aug 10, 2020
jonasjj added a commit to jonasjj/awesome-vhdl that referenced this issue Sep 11, 2020
The previous commit was a result of this bug in VSCode:
microsoft/vscode#103818
@jrieken jrieken removed GraceHopperOSD help wanted Issues identified as good community contribution opportunities labels Sep 30, 2020
@jrieken jrieken added bug Issue identified by VS Code Team member as probable bug and removed bug Issue identified by VS Code Team member as probable bug labels Nov 4, 2020
@jrieken jrieken added this to the November 2020 milestone Nov 4, 2020
@jrieken jrieken closed this as completed in 660222b Nov 4, 2020
@roblourens roblourens added the verified Verification succeeded label Dec 3, 2020
@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.
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders snippets verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants
@roblourens @kwikwag @jrieken @sana-ajani and others