We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80295fc commit 5fad4c0Copy full SHA for 5fad4c0
ftplugin/lua.vim
@@ -1,5 +1,5 @@
1
function! s:DebugStringFunBase(desc, var)
2
- let l:debug_str = 'print("' . a:desc . '" .. ' . a:var . ')'
+ let l:debug_str = 'print("' . a:desc . '" .. tostring(' . a:var . '))'
3
return l:debug_str
4
endfunc
5
test/ft/a.lua
@@ -1,2 +1,2 @@
-print("[[Vader-workbench]:$1$] DEBUGGING STRING ==> " .. $2$)
-print("a**2 + b**2: " .. a**2 + b**2)
+print("[[Vader-workbench]:$1$] DEBUGGING STRING ==> " .. tostring($2$))
+print("a**2 + b**2: " .. tostring(a**2 + b**2))
0 commit comments