- VSCode Version: 1.18.1
- OS Version: Windows 10
Steps to Reproduce:
- Open a new file and change the language to HTML.
- Insert the following code (Make sure that you leave a space between the script opening and closing tags):
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"> </script>
</head>
</html>
- Format code (Ctrl+Alt+F)
What should happen:
The code should be formatted without changing the content.
What actually happens:
The code is formatted but the opening script tag and its content is removed. Final results is:
<!DOCTYPE html>
<html lang="en">
<head>
</script>
</head>
</html>
Reproduces without extensions: The formatter seems to be a part of an extension that comes with VSCode, so with the extensions disabled Ctrl+Alt+F does nothing.
Steps to Reproduce:
What should happen:
The code should be formatted without changing the content.
What actually happens:
The code is formatted but the opening script tag and its content is removed. Final results is:
Reproduces without extensions: The formatter seems to be a part of an extension that comes with VSCode, so with the extensions disabled Ctrl+Alt+F does nothing.