Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno2node/src/deps.deno.ts>LanguageService#getFormattingEditsForRange

Compile your Deno project to run on Node.js.
Go to Latest
method LanguageService.prototype.getFormattingEditsForRange
import { LanguageService } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";

Gets the formatting edits for a range.

Parameters

filePath: string
  • File path.
range: [number, number]
  • Position range.
formatSettings: FormatCodeSettings
  • Format code settings.

Returns

TextChange[]