We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fdadd3c + 0518124 commit cf81938Copy full SHA for cf81938
1 file changed
src/services/formatting/formatting.ts
@@ -68,7 +68,9 @@ module ts.formatting {
68
69
export function formatOnEnter(position: number, sourceFile: SourceFile, rulesProvider: RulesProvider, options: FormatCodeOptions): TextChange[] {
70
var line = sourceFile.getLineAndCharacterFromPosition(position).line;
71
- Debug.assert(line >= 2);
+ if (line === 1) {
72
+ return [];
73
+ }
74
// get the span for the previous\current line
75
var span = {
76
// get start position for the previous line
0 commit comments