Skip to content

Commit 5b0c280

Browse files
Client-side preference to turn off document symbols
Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
1 parent ec99ac5 commit 5b0c280

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ The following settings are supported:
6666
* `xml.format.quotations`: Set to `doubleQuotes` to format and only use `"`, or `singleQuotes` to format and only use `'`. Defaults to `doubleQuotes`.
6767
* `xml.format.preserveEmptyContent`: Set to `true` to preserve standalone whitespace content in an element. Defaults to `false`.
6868
* `xml.server.workDir`: Set an absolute path for all cached schemas to be stored. Defaults to `~/.lsp4xml`.
69-
70-
Since 0.6.0:
7169
* `xml.format.preservedNewLines`: Set the maximum amount of newlines between elements. Defaults to `2`.
70+
71+
Since 0.7.0:
72+
* `xml.symbols.enabled`: Enable/disable document symbols (Outline). Default is `true`.
7273

7374
More detailed info in the [Wiki](https://github.com/redhat-developer/vscode-xml/wiki/Preferences).
7475

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,12 @@
227227
"default": true,
228228
"description": "Enable/disable schema based validation. Ignored if \"xml.validation.enabled\": false.",
229229
"scope": "window"
230+
},
231+
"xml.symbols.enabled": {
232+
"type": "boolean",
233+
"default": true,
234+
"description": "Enable/disable document symbols (Outline). No symbols are given if `\"xml.symbol.enabled\": false`.",
235+
"scope": "window"
230236
}
231237
}
232238
},

0 commit comments

Comments
 (0)