Skip to content

Commit

Permalink
Swap
Browse files Browse the repository at this point in the history
  • Loading branch information
azdavis committed Sep 1, 2023
1 parent 5325aca commit d81a99c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions crates/tests/src/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,9 @@ impl fmt::Display for ConfigProperty<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
writeln!(f, "#### `{}`", self.name)?;
writeln!(f)?;
writeln!(f, "{}", self.desc)?;
writeln!(f)?;
self.type_and_default.fmt(f)?;
writeln!(f)?;
writeln!(f, "{}", self.desc)?;
Ok(())
}
}
Expand Down
38 changes: 19 additions & 19 deletions docs/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,20 +433,18 @@ Millet has VS Code specific settings, which are stored as [JSON][]. You may need

#### `millet.format.engine`

**WARNING: THE FORMATTER IS HIGHLY EXPERIMENTAL. IT MAY IRREVOCABLY DESTROY SOME OR ALL OF YOUR CODE.**

How to [format](#formatter) open SML files on save.

- Type: `string`
- Default: `"none"`
- Valid values:
- `"none"`: No formatting.
- `"naive"`: Naive formatting.
- `"smlfmt"`: Formatting provided by [`smlfmt`](https://github.com/shwestrick/smlfmt), which must be installed in your `$PATH`.

#### `millet.server.diagnostics.ignore`
**WARNING: THE FORMATTER IS HIGHLY EXPERIMENTAL. IT MAY IRREVOCABLY DESTROY SOME OR ALL OF YOUR CODE.**

What [diagnostics](#inline-diagnostics) to ignore.
How to [format](#formatter) open SML files on save.

#### `millet.server.diagnostics.ignore`

- Type: `string`
- Default: `"after-syntax"`
Expand All @@ -455,50 +453,52 @@ What [diagnostics](#inline-diagnostics) to ignore.
- `"after-syntax"`: If there are syntax diagnostics (lex error, parse error, etc), send only those, and ignore e.g. statics diagnostics.
- `"all"`: Ignore all diagnostics.

#### `millet.server.diagnostics.moreInfoHint.enable`
What [diagnostics](#inline-diagnostics) to ignore.

Show a hint on diagnostic messages about clicking the error code number for more information.
#### `millet.server.diagnostics.moreInfoHint.enable`

- Type: `boolean`
- Default: `true`

#### `millet.server.diagnostics.onChange.enable`
Show a hint on diagnostic messages about clicking the error code number for more information.

Send diagnostics when file contents change before saving.
#### `millet.server.diagnostics.onChange.enable`

- Type: `boolean`
- Default: `false`

#### `millet.server.enable`
Send diagnostics when file contents change before saving.

Enable the language server.
#### `millet.server.enable`

- Type: `boolean`
- Default: `true`

#### `millet.server.fileSystemWatcher.enable`
Enable the language server.

Use a file system watcher to send events when files change, if one is available.
#### `millet.server.fileSystemWatcher.enable`

- Type: `boolean`
- Default: `true`

#### `millet.server.hover.token.enable`
Use a file system watcher to send events when files change, if one is available.

Show information about tokens on hover.
#### `millet.server.hover.token.enable`

- Type: `boolean`
- Default: `true`

Show information about tokens on hover.

#### `millet.server.path`

- Type: `string`
- Default: `""`

Path to the `millet-ls` executable.

When set to the empty string `""` (the default), use the path to the one that's pre-built and bundled with the extension.

- Type: `string`
- Default: `""`

<!-- @end vscode-config -->

### Language server initialization
Expand Down

0 comments on commit d81a99c

Please sign in to comment.