typescript-language-server
Advanced tools
Comparing version 0.10.1 to 0.11.0
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
## [0.11.0](https://github.com/typescript-language-server/typescript-language-server/compare/v0.10.1...v0.11.0) (2022-06-06) | ||
### Features | ||
* add support for rename prefixText and suffixText on rename ([#478](https://github.com/typescript-language-server/typescript-language-server/issues/478)) ([b3c8535](https://github.com/typescript-language-server/typescript-language-server/commit/b3c85354c71dc36e1d4775bf61d7064a6b85e958)) | ||
### [0.10.1](https://github.com/typescript-language-server/typescript-language-server/compare/v0.10.0...v0.10.1) (2022-05-18) | ||
@@ -5,0 +12,0 @@ |
@@ -154,3 +154,3 @@ "use strict"; | ||
plugins: userInitializationOptions.plugins || [], | ||
preferences: Object.assign({ allowIncompleteCompletions: true, allowRenameOfImportPath: true, allowTextChangesInNewFiles: true, displayPartsForJSDoc: true, generateReturnInDocTemplate: true, includeAutomaticOptionalChainCompletions: true, includeCompletionsForImportStatements: true, includeCompletionsForModuleExports: true, includeCompletionsWithClassMemberSnippets: true, includeCompletionsWithInsertText: true, includeCompletionsWithSnippetText: true, jsxAttributeCompletionStyle: 'auto' }, userInitializationOptions.preferences) | ||
preferences: Object.assign({ allowIncompleteCompletions: true, allowRenameOfImportPath: true, allowTextChangesInNewFiles: true, displayPartsForJSDoc: true, generateReturnInDocTemplate: true, includeAutomaticOptionalChainCompletions: true, includeCompletionsForImportStatements: true, includeCompletionsForModuleExports: true, includeCompletionsWithClassMemberSnippets: true, includeCompletionsWithInsertText: true, includeCompletionsWithSnippetText: true, jsxAttributeCompletionStyle: 'auto', providePrefixAndSuffixTextForRename: true }, userInitializationOptions.preferences) | ||
}; | ||
@@ -659,3 +659,3 @@ const logFile = this.getLogFile(logVerbosity); | ||
textEdits.push({ | ||
newText: params.newName, | ||
newText: `${textSpan.prefixText || ''}${params.newName}${textSpan.suffixText || ''}`, | ||
range: { | ||
@@ -662,0 +662,0 @@ start: (0, protocol_translation_1.toPosition)(textSpan.start), |
{ | ||
"name": "typescript-language-server", | ||
"version": "0.10.1", | ||
"version": "0.11.0", | ||
"description": "Language Server Protocol (LSP) implementation for TypeScript using tsserver", | ||
@@ -50,3 +50,3 @@ "author": "TypeFox and others", | ||
"vscode-languageserver-protocol": "3.16.0", | ||
"vscode-languageserver-textdocument": "1.0.4", | ||
"vscode-languageserver-textdocument": "1.0.5", | ||
"vscode-uri": "^3.0.2", | ||
@@ -53,0 +53,0 @@ "which": "^2.0.2" |
@@ -144,2 +144,3 @@ [![Build Status](https://travis-ci.org/theia-ide/typescript-language-server.svg?branch=master)](https://travis-ci.org/theia-ide/typescript-language-server) | ||
jsxAttributeCompletionStyle: "auto", | ||
providePrefixAndSuffixTextForRename: true, | ||
} | ||
@@ -146,0 +147,0 @@ ``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
568804
7362
424
+ Addedvscode-languageserver-textdocument@1.0.5(transitive)
- Removedvscode-languageserver-textdocument@1.0.4(transitive)