Skip to content

Commit a2f5949

Browse files
committed
FIX hover: always view string
1 parent 7b018aa commit a2f5949

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 2.5.4
44
* `FIX` [#848](https://github.com/sumneko/lua-language-server/issues/848)
55
* `FIX` completion: incorrect cache
6+
* `FIX` hover: always view string
67

78
## 2.5.3
89
`2021-12-6`

script/core/hover/description.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ end
6363

6464
local function asStringView(source, literal)
6565
-- 内部包含转义符?
66-
local rawLen = source.finish - source.start - 2 * #source[2] + 1
66+
local rawLen = source.finish - source.start - 2 * #source[2]
6767
if config.get 'Lua.hover.viewString'
6868
and (source[2] == '"' or source[2] == "'")
6969
and rawLen > #literal then

0 commit comments

Comments
 (0)