Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
- name: Install pytest for the host suite
run: python -m pip install --disable-pip-version-check pytest
- name: Verify Python highlighting, run configurations, and dependencies on Lithe 0.8.9
run: node scripts/e2e-host.mjs --ref 4d1b88f03f243356c855299464baa2647cc57226 --run '^TestPythonSupportPlugin(GrammarHighlighting|RunCurrentFile(InterpreterOverride)?|ManualRunAndDependencies)$'
run: node scripts/e2e-host.mjs --ref 4d1b88f03f243356c855299464baa2647cc57226 --run '^TestPythonSupportPlugin(GrammarHighlighting|RunCurrentFile(PinnedInterpreter)?|ManualRunAndDependencies)$'
- name: Run the full Python host suite on the pinned desktop
env:
GOFLAGS: -tags=vivahead
Expand Down
300 changes: 171 additions & 129 deletions README.md

Large diffs are not rendered by default.

7 changes: 2 additions & 5 deletions backend/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ mod discovery;
mod inspect;
mod pyrefly;
mod requirements;
mod settings_preview;
mod view;

use lithe_plugin_sdk::Backend;

Expand All @@ -20,11 +20,8 @@ fn main() {
.expect("the inspect function ID is valid")
.suppress_success_diagnostics(inspect::FUNCTION)
.expect("the inspect function is registered")
.view(settings_preview::FUNCTION, settings_preview::draw)
.expect("the preview function ID is valid")
.suppress_success_diagnostics(settings_preview::FUNCTION)
.expect("the preview function is registered")
.toolchain_provider("python", discovery::query)
.expect("the Python provider ID is valid");
view::register(&mut backend).expect("the view function is valid");
std::process::exit(backend.listen());
}
4 changes: 2 additions & 2 deletions backend/src/pyrefly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ impl LaunchResolver {
enum_setting(settings, "diagnosticMode", &["openFilesOnly", "workspace"]);
let mut python = json!({
"pyrefly": {
"typeCheckingMode": enum_setting(settings, "typeCheckingMode", &["default", "auto", "basic", "strict", "all", "off"]),
"displayTypeErrors": enum_setting(settings, "displayTypeErrors", &["force-on", "default", "error-missing-imports", "force-off"]),
"typeCheckingMode": enum_setting(settings, "typeCheckingMode", &["default", "auto", "off", "basic", "legacy", "strict", "all"]),
"disableTypeErrors": settings["disableTypeErrors"].as_bool().unwrap_or(false),
"diagnosticMode": diagnostic_mode,
},
"analysis": {
Expand Down
155 changes: 0 additions & 155 deletions backend/src/settings_preview.rs

This file was deleted.

Loading
Loading