Skip to content

Commit

Permalink
Update completion.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
mtshiba committed Jul 12, 2023
1 parent 953b580 commit bac0a8c
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion crates/els/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,24 +355,44 @@ impl CompletionCache {
move || {
crate::_log!("load_modules");
let major_mods = [
"argparse",
"array",
"asyncio",
"base64",
"datetime",
"decimal",
"fraction",
"glob",
"html",
"http",
"http/client",
"http/server",
"io",
"json",
"logging",
"math",
"os",
"os/path",
"pathlib",
"platform",
"random",
"re",
"shutil",
"socket",
"sqlite3",
"ssl",
"string",
"subprocess",
"sys",
"tempfile",
"time",
"timeit",
"unittest",
"urllib",
"zipfile",
];
#[cfg(feature = "py_compat")]
let py_specific_mods = ["typing", "collections/abc"];
let py_specific_mods = ["dataclasses", "typing", "collections/abc"];
#[cfg(not(feature = "py_compat"))]
let py_specific_mods = [];
let ext_mods = ["numpy", "pandas", "matplotlib", "matplotlib/pyplot"];
Expand Down

0 comments on commit bac0a8c

Please sign in to comment.