Skip to content

Commit

Permalink
support insecure (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
amirbilu authored Jul 22, 2024
1 parent d6e22ec commit 0f11574
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ require('tabnine').setup({
suggestion_color = {gui = "#808080", cterm = 244},
exclude_filetypes = {"TelescopePrompt", "NvimTree"},
log_file_path = nil, -- absolute path to Tabnine log file
ignore_certificate_errors = false,
})
```

Expand Down Expand Up @@ -246,7 +247,8 @@ require('tabnine').setup({
codelens_enabled = true,
exclude_filetypes = {"TelescopePrompt", "NvimTree"},
log_file_path = nil, -- absolute path to Tabnine log file,
tabnine_enterprise_host = tabnine_enterprise_host
tabnine_enterprise_host = tabnine_enterprise_host,
ignore_certificate_errors = false,
})
```

Expand Down
3 changes: 3 additions & 0 deletions lua/tabnine/binary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ local function optional_args()
end

function TabnineBinary:start()
local config = config.get_config()
self.stdin = uv.new_pipe()
self.stdout = uv.new_pipe()
self.stderr = uv.new_pipe()
Expand All @@ -70,6 +71,8 @@ function TabnineBinary:start()
"--client-metadata",
"ide-restart-counter=" .. self.restart_counter,
"pluginVersion=" .. consts.plugin_version,
"--tls_config",
"insecure=" .. tostring(config.ignore_certificate_errors)
}, optional_args()),
stdio = { self.stdin, self.stdout, self.stderr },
}, function()
Expand Down

0 comments on commit 0f11574

Please sign in to comment.