MCPcopy Create free account
hub / github.com/Tencent/LuaHelper / GetOpenFileStr

Function GetOpenFileStr

luahelper-lsp/langserver/stringutil/util.go:143–234  ·  view source on GitHub ↗

stringutil.GetOpenFileStr 判断是否为打开的文件,返回文件名 当为require时候,可能返回两个文件名, 因为require("one") 含义可能是包含one.lua 也有可能是one/init.lua firstStr 为优先级高的文件名,secondStr为优先级次之的文件名

(contents []byte, offset int, character int, referFiles []string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

GetCompeleteLineStrFunction · 0.85

Tested by

no test coverage detected