Skip to content

Commit 444c305

Browse files
author
Orta Therox
committed
Handle feeedback
1 parent 0a272e0 commit 444c305

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/services/formatting/README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,4 @@ There are a lot of rules, which you can find in [rules.ts](./rules.ts) each one
3030

3131
### Where is this used?
3232

33-
The formatter is used mainly from the language service for formatting with an editor, but [services/textChanges.ts](/src/services/textChanges.ts) also uses this formatter when emitting code for quick fixes.
34-
35-
The formatter is not exported publicly, and so all usage comes through the language server.
36-
37-
### Sample code
38-
39-
```ts
40-
const nonFormattedText = `[js source code]`;
41-
const sourceFile = createSourceFile("any file name", nonFormattedText, ScriptTarget.ESNext, /*setParentNodes*/ true, ScriptKind.JS);
42-
const changes = formatting.formatDocument(sourceFile, formatContext);
43-
```
33+
The formatter is used mainly from any language service operation that inserts or modifies code. The formatter is not exported publicly, and so all usage can only come through the language server.

0 commit comments

Comments
 (0)