mirror of
https://github.com/James-Yu/LaTeX-Workshop.git
synced 2024-10-04 07:07:54 +03:00
Resolve #288 Add a new config to disable command surrounding feature
This commit is contained in:
parent
ed3e956814
commit
e7b0594f14
@ -1,5 +1,9 @@
|
||||
# Change Log
|
||||
|
||||
## [3.6.0] - 2017-11-01
|
||||
### Added
|
||||
- (#288) New `latex-workshop.intellisense.surroundCommand.enabled` config to control command surrounding feature.
|
||||
|
||||
## [3.5.5] - 2017-10-03
|
||||
### Fixed
|
||||
- (#284) Fix CMap URL to display CJK languages correctly @maruta.
|
||||
|
@ -3,7 +3,7 @@
|
||||
"displayName": "LaTeX Workshop",
|
||||
"description": "Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.",
|
||||
"icon": "icon.png",
|
||||
"version": "3.5.5",
|
||||
"version": "3.6.0",
|
||||
"publisher": "James-Yu",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/James-Yu/LaTeX-Workshop",
|
||||
@ -377,6 +377,11 @@
|
||||
"default": "bibtex key",
|
||||
"description": "Defines what to show as suggestion labels when intellisense provides citation suggestions."
|
||||
},
|
||||
"latex-workshop.intellisense.surroundCommand.enabled": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "When `\\` is typed with text selected, surround the selection with LaTeX command."
|
||||
},
|
||||
"latex-workshop.debug.showLog": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
|
@ -60,7 +60,8 @@ export class Completer implements vscode.CompletionItemProvider {
|
||||
return
|
||||
}
|
||||
} else if (type === 'command') {
|
||||
if (this.command.selection.length > 0) {
|
||||
const configuration = vscode.workspace.getConfiguration('latex-workshop')
|
||||
if (configuration.get('intellisense.surroundCommand.enabled') && this.command.selection.length > 0) {
|
||||
resolve()
|
||||
setTimeout(() => {
|
||||
this.command.surround(this.command.selection)
|
||||
|
Loading…
Reference in New Issue
Block a user