* **This method is deprecated.** Use the command 'workbench.action.closeActiveEditor' instead.
* This method shows unexpected bahviour and will be removed in the next major update.
*
...
...
@@ -683,24 +795,35 @@ declare namespace vscode {
/**
* A complex edit that will be applied on a TextEditor.
* This holds a description of the edits and if the edits are valid (i.e. no overlapping regions, etc.) they can be applied on a Document associated with a TextEditor.
* A complex edit that will be applied in one transaction on a TextEditor.
* This holds a description of the edits and if the edits are valid (i.e. no overlapping regions, document was not changed in the meantime, etc.)
* they can be applied on a [document](#Document) associated with a [text editor](#TextEditor).
*
* <<< for transactionality would be great of the text editor edit would allow to set the selection at the end of the operation >>>
*/
exportinterfaceTextEditorEdit{
/**
* Replace a certain text region with a new value. <<< what's about line separators in the replacement string? do I have to care? >>>
* Replace a certain text region with a new value.
* You can use \r\n or \n in `value` and they will be normalized to the current [document](#Document).
*
* @param location The range this operation should remove.
* @param value The new text this operation should insert after removing `location`.
* Insert text at a location <<< what's about line separators in the replacement string? do I have to care? >>>
* Insert text at a location.
* You can use \r\n or \n in `value` and they will be normalized to the current [document](#Document).
* Although the equivalent text edit can be made with [replace](#TextEditorEdit.replace), `insert` will produce a different resulting selection (it will get moved).
*
* @param location The position where the new text should be inserted.
* @param value The new text this operation should insert.
*/
insert(location:Position,value:string):void;
/**
* Delete a certain text region.
*
* @param location The range this operation should remove.
*/
delete(location:Range|Selection):void;
...
...
@@ -771,7 +894,7 @@ declare namespace vscode {
* operation to request cancellation, like cancelling a request
* for completion items because the user continued to type.
*
* A cancallation token can only cancel once. That means it
* A cancellation token can only cancel once. That means it
* signaled cancellation it will do so forever <<< don't understand this >>>
*/
exportinterfaceCancellationToken{
...
...
@@ -972,8 +1095,8 @@ declare namespace vscode {
/**
* A document filter denotes a document by different properties like
* the [language](#TextDocument.languageId), the (scheme)[#Uri.scheme] of
* it's resource, or a glob-pattern that is applied to the (path)[#TextDocument.fileName]
* the [language](#TextDocument.languageId), the [scheme](#Uri.scheme) of
* it's resource, or a glob-pattern that is applied to the [path](#TextDocument.fileName)
*
* A language filter that applies to typescript files on disk would be this:
* ```
...
...
@@ -1004,7 +1127,7 @@ declare namespace vscode {
/**
* A language selector is the combination of one or many language identifiers
* and (language filters)[#LanguageFilter]. Samples are
* and [language filters](#LanguageFilter). Samples are