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.
1 parent 0b7bcea commit 242d226Copy full SHA for 242d226
server/src/server.ts
@@ -456,14 +456,12 @@ function onMessage(msg: m.Message) {
456
extension === c.resiExt
457
);
458
if (formattedResult.kind === "success") {
459
+ let max = formattedResult.result.length;
460
let result: p.TextEdit[] = [
461
{
462
range: {
463
start: { line: 0, character: 0 },
- end: {
464
- line: Number.MAX_VALUE,
465
- character: Number.MAX_VALUE,
466
- },
+ end: { line: max, character: max },
467
},
468
newText: formattedResult.result,
469
0 commit comments