diff --git a/lsp/completion/utils.go b/lsp/completion/utils.go index 4bd1c88..ec357f3 100644 --- a/lsp/completion/utils.go +++ b/lsp/completion/utils.go @@ -6,8 +6,6 @@ import ( "strings" "go.lsp.dev/protocol" - - "github.com/karitham/thrift-ls/lsp/constants" ) // ListDirAndFiles lists the entries matching the typed include path prefix, @@ -56,7 +54,7 @@ func ListDirAndFiles(dir string, includePaths []string, prefix string) []Candida switch { case e.IsDir(): text = filepath.Join(dirPart, name) + "/" - case strings.HasSuffix(name, constants.ThriftExtension): + case strings.HasSuffix(name, ".thrift"): text = filepath.Join(dirPart, name) default: continue diff --git a/lsp/constants/constants.go b/lsp/constants/constants.go deleted file mode 100644 index d3fe3f6..0000000 --- a/lsp/constants/constants.go +++ /dev/null @@ -1,5 +0,0 @@ -package constants - -const ( - ThriftExtension = ".thrift" -)