fix(snippet): remove misleading comment about TM_FILENAME_BASE (#26465)

This commit is contained in:
Maria José Solano 2023-12-08 12:23:46 -08:00 committed by GitHub
parent 2289ca273c
commit a1bdf2852d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,9 +42,7 @@ local function resolve_variable(var, default)
elseif var == 'TM_FILENAME' then
return expand_or_default('%:t')
elseif var == 'TM_FILENAME_BASE' then
-- Not using '%:t:r' since we want to remove all extensions.
local filename_base = expand_or_default('%:t'):gsub('%.[^%.]*$', '')
return filename_base
return expand_or_default('%:t:r')
elseif var == 'TM_DIRECTORY' then
return expand_or_default('%:p:h:t')
elseif var == 'TM_FILEPATH' then