extensions/html-language-features/server/src/modes/javascriptMode.ts/generateIndent
function generateIndent(level: number, options: FormattingOptions) {
	if (options.insertSpaces) {
		return repeat(' ', level * options.tabSize);
	} else {
		return repeat('\t', level);
	}
}