You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeScript - Indentation rules are not aware of Doc comments #29753
changed the title [-]Indentation on paste is not aware of Doc comments[/-][+]TypeScript - Indentation rules are not aware of Doc comments[/+]on Jun 28, 2017
Another test case is pasting our copyright header when creating a new .ts file. It drives me crazy that the copyright header linter always fails while committing:
Pasting the following in a TypeScript file results in the leading spaces being stripped:
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/
===>
/*---------------------------------------------------------------------------------------------* Copyright (c) Microsoft Corporation. All rights reserved.* Licensed under the MIT License. See License.txt in the project root for license information.*--------------------------------------------------------------------------------------------*/
Activity
[-]Indentation on paste is not aware of JSDoc comments[/-][+]Indentation on paste is not aware of Doc comments[/+][-]Indentation on paste is not aware of Doc comments[/-][+]TypeScript - Indentation rules are not aware of Doc comments[/+]alexdima commentedon Jun 28, 2017
Another test case is pasting our copyright header when creating a new
.tsfile. It drives me crazy that the copyright header linter always fails while committing:Pasting the following in a TypeScript file results in the leading spaces being stripped:
===>
rebornix commentedon Jun 28, 2017
Auto indent should honor onEnter rules while guessing the good indent. Already have this fixed for moving lines, but not pasting.
I cannot get rid of onEnter rules any more :(
rebornix commentedon Jun 28, 2017
This two issues are fixed by ignoring Comments and honor onEnter rules when pasting.
alexdima commentedon Jun 29, 2017
Nice!
Fix auto indent when pasting lines that begin with a comment
Fix auto indent when pasting lines that begin with a comment
Fix auto indent when pasting lines that begin with a comment
Fix auto indent when pasting lines that begin with a comment
Fix auto indent when pasting lines that begin with a comment
Fix auto indent when pasting lines that begin with a comment
Fix auto indent when pasting lines that begin with a comment
Fix auto indent when pasting lines that begin with a comment