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

Code formatting is getting lost after 15 inner blocks of code #5283

Closed
manojspace opened this issue Mar 5, 2022 · 2 comments
Closed

Code formatting is getting lost after 15 inner blocks of code #5283

manojspace opened this issue Mar 5, 2022 · 2 comments

Comments

@manojspace
Copy link

Description of the bug

After 12+ function blocks, code format is getting lost. It's not even maintaining the basic code syntax.
It's becoming like a plain text, I have been facing this issue since a long time (from sublime-3).

Attaching the code screenshot for reference, see the code from line 16, it started breaking after 15 inner functions.

image

Steps to reproduce

Create 15 inner functions.
Here is the sample code.
Copy this below code and paste in latest sublime-text-4, you will see the problem.

models.data1.create(payload).then(added => {
	models.data2.create(payload).then(added => {
		models.data3.create(payload).then(added => {
			models.data4.create(payload).then(added => {
				models.data5.create(payload).then(added => {
					models.data6.create(payload).then(added => {
						models.data7.create(payload).then(added => {
							models.data8.create(payload).then(added => {
								models.data9.create(payload).then(added => {
									models.data10.create(payload).then(added => {
										models.data11.create(payload).then(added => {
											models.data12.create(payload).then(added => {
												models.data13.create(payload).then(added => {
													models.data14.create(payload).then(added => {
														models.data15.create(payload).then(added => {
															models.data16.create(payload).then(added => {
																resolve("Error")
															}).catch(err => {
																console.log("Error while adding data", err);
																reject("Error Occured");
															})
														}).catch(err => {
															console.log("Error while adding data", err);
															reject("Error Occured");
														})
													}).catch(err => {
														console.log("Error while adding data", err);
														reject("Error Occured");
													})
												}).catch(err => {
													console.log("Error while adding data", err);
													reject("Error Occured");
												})
											}).catch(err => {
												console.log("Error while adding data", err);
												reject("Error Occured");
											})
										}).catch(err => {
											console.log("Error while adding data", err);
											reject("Error Occured");
										})
									}).catch(err => {
										console.log("Error while adding data", err);
										reject("Error Occured");
									})
								}).catch(err => {
									console.log("Error while adding data", err);
									reject("Error Occured");
								})
							}).catch(err => {
								console.log("Error while adding data", err);
								reject("Error Occured");
							})
						}).catch(err => {
							console.log("Error while adding data", err);
							reject("Error Occured");
						})
					}).catch(err => {
						console.log("Error while adding data", err);
						reject("Error Occured");
					})
				}).catch(err => {
					console.log("Error while adding data", err);
					reject("Error Occured");
				})
			}).catch(err => {
				console.log("Error while adding data", err);
				reject("Error Occured");
			})
		}).catch(err => {
			console.log("Error while adding data", err);
			reject("Error Occured");
		})
	}).catch(err => {
		console.log("Error while adding data", err);
		reject("Error Occured");
	})
}).catch(err => {
	console.log("Error while adding data", err);
	reject("Error Occured");
})

Expected behavior

Functions should not be limited to 15, either remove this limit or provide a way to increase this limit. As this is creating a problem on complex larger codebase.
I'm a huge fan of sublime (it's very fast and minimalistic design with all the features).
I don't want to switch to other editors.
Kindly fix this or give a solution to increase the limit.

Attaching my real-time problem code (see the code from line 1650):
image

Actual behavior

Inner blocks formatting is limited to 15 blocks only, after 15 inner-blocks of code format is getting lost and it starts becoming like a plain text.

Sublime Text build number

4126

Operating system & version

Windows 11 Pro (OS Build: 22000.493, Version: 21H2)

(Linux) Desktop environment and/or window manager

No response

Additional information

No response

OpenGL context information

No response

@keith-hall
Copy link
Collaborator

Related:

@BenjaminSchaaf
Copy link
Member

Build 4174 quadruples the limit causing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants