дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 17:47:08 +02:00
ci: reduce PR runner pressure, cache churn, Rust link count, and test runtime (#8218)
* ci: fix rust-cache eviction, group language smoke, and drop unused Rust setup * test(frontend): use Vitest threads pool and guard DOM setup for node tests * test(rust): consolidate crate integration tests into single binaries
Цей коміт міститься в:
1 джерело
b228d31ff9
коміт
94cfde8025
177 files changed
+486
-282
No files matched your search
@@ -16,5 +16,5 @@ test-group = "windows-clipboard"
|
||||
# that hangs (a server left stopped) is ended after 5 minutes instead of waiting for svn's own
|
||||
# timeout.
|
||||
[[profile.default.overrides]]
|
||||
filter = 'package(=ide-svn) | (package(=ide-host) & (binary(=svn) | binary(=ij_svn_roots)))'
|
||||
filter = 'package(=ide-svn) | (package(=ide-host) & binary(=integration) & (test(/^svn::/) | test(/^ij_svn_roots::/)))'
|
||||
slow-timeout = { period = "60s", terminate-after = 5 }
|
||||
@@ -118,13 +118,6 @@ jobs:
|
||||
runs-on: ${{ matrix.os == 'ubuntu-latest' && vars.SELFHOSTED_RUNNERS == 'true' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && fromJSON('["self-hosted", "openidea-selfhosted"]') || matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
|
||||
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
|
||||
with: { version: 11 }
|
||||
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
with:
|
||||
node-version: 22
|
||||
cache: ${{ runner.environment != 'self-hosted' && 'pnpm' || '' }}
|
||||
package-manager-cache: ${{ runner.environment != 'self-hosted' }}
|
||||
- uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
|
||||
with: { components: "clippy, rustfmt" }
|
||||
# Self-hosted runners keep persistent local Cargo caches; GitHub-hosted runners use Actions cache
|
||||
@@ -169,11 +162,14 @@ jobs:
|
||||
shell: bash
|
||||
run: svn --version --quiet && svnadmin --version --quiet && svnserve --version --quiet && sqlite3 --version
|
||||
# tauri-build checks that frontendDist exists.
|
||||
- run: pnpm install --frozen-lockfile && mkdir -p dist
|
||||
- run: mkdir -p dist
|
||||
shell: bash
|
||||
- if: runner.os == 'Linux'
|
||||
run: cargo fmt --all --check
|
||||
- run: cargo clippy --workspace --all-targets -- -D warnings
|
||||
# On PRs, run clippy on Linux only; macOS/Windows still compile and test all targets
|
||||
# via nextest, and run clippy on main/merge_group so platform-only lints are still caught.
|
||||
- if: runner.os == 'Linux' || github.event_name != 'pull_request'
|
||||
run: cargo clippy --workspace --all-targets -- -D warnings
|
||||
# Test fixtures write LF files; keep Git from converting them on checkout.
|
||||
- run: git config --global core.autocrlf false
|
||||
- name: Restore Maven artifacts for Java build tests
|
||||
@@ -257,7 +253,7 @@ jobs:
|
||||
docker pull busybox:latest
|
||||
# --workspace, not -p ide-host: -p would rebuild instead of reusing the test build above.
|
||||
cargo nextest run --workspace --run-ignored only \
|
||||
-E 'package(=ide-host) & binary(=remote_daemon) & test(=compose_service_survives_disconnect_and_is_removed_on_stop)'
|
||||
-E 'package(=ide-host) & binary(=integration) & test(=remote_daemon::compose_service_survives_disconnect_and_is_removed_on_stop)'
|
||||
# nextest skips doctests; ide-command's are its compile-fail tests.
|
||||
- if: runner.os == 'Linux'
|
||||
run: cargo test --doc -p ide-command
|
||||
@@ -296,7 +292,9 @@ jobs:
|
||||
with: { targets: x86_64-unknown-linux-musl }
|
||||
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
|
||||
if: runner.environment != 'self-hosted'
|
||||
with: { key: server-musl }
|
||||
with:
|
||||
key: server-musl
|
||||
save-if: ${{ github.ref == 'refs/heads/main' }}
|
||||
- name: Persistent Cargo target dir
|
||||
if: runner.environment == 'self-hosted'
|
||||
shell: bash
|
||||
|
||||
@@ -26,6 +26,9 @@ on:
|
||||
- "src/features/build/**"
|
||||
- "src/features/build-tools/**"
|
||||
- "src/platform/**"
|
||||
- "!src/platform/locales/text/**"
|
||||
- "!src/platform/locales/*.json"
|
||||
- "src/platform/locales/en.json"
|
||||
- "src/workbench/**"
|
||||
- "src/ui/**"
|
||||
- "src/editor/api.ts"
|
||||
@@ -89,6 +92,7 @@ jobs:
|
||||
pull-requests: read
|
||||
outputs:
|
||||
languages: ${{ steps.classify.outputs.languages }}
|
||||
groups: ${{ steps.classify.outputs.groups }}
|
||||
steps:
|
||||
- id: classify
|
||||
env:
|
||||
@@ -98,8 +102,18 @@ jobs:
|
||||
set -euo pipefail
|
||||
all="typescript python rust go java kotlin php c cpp"
|
||||
emit() { tr ' ' '\n' <<< "$1" | { grep . || true; } | sort -u | jq -Rsc 'split("\n") | map(select(. != ""))'; }
|
||||
emit_groups() {
|
||||
jq -nc --argjson langs "$1" '
|
||||
[
|
||||
{ name: "jvm", languages: ($langs | map(select(. == "java" or . == "kotlin"))) },
|
||||
{ name: "systems", languages: ($langs | map(select(. == "rust" or . == "go" or . == "c" or . == "cpp"))) },
|
||||
{ name: "scripting", languages: ($langs | map(select(. == "typescript" or . == "python" or . == "php"))) }
|
||||
] | map(select(.languages | length > 0))'
|
||||
}
|
||||
if [ "$GITHUB_EVENT_NAME" != pull_request ]; then
|
||||
echo "languages=$(emit "$all")" | tee -a "$GITHUB_OUTPUT"
|
||||
langs_json=$(emit "$all")
|
||||
echo "languages=$langs_json" | tee -a "$GITHUB_OUTPUT"
|
||||
echo "groups=$(emit_groups "$langs_json")" | tee -a "$GITHUB_OUTPUT"
|
||||
exit 0
|
||||
fi
|
||||
gh api --paginate "repos/$GITHUB_REPOSITORY/pulls/$PR/files" \
|
||||
@@ -108,8 +122,9 @@ jobs:
|
||||
# Crates outside what the smoke runs (language servers, debuggers, run configurations,
|
||||
# SDKs, build tools, the project model, Find Usages candidates, debug stream traces):
|
||||
# cargo metadata, ide-host's direct deps ide-search/ide-streams and the deps of
|
||||
# ide-lsp/dap/run/sdk/tools.
|
||||
unused='^crates/(ide-agent|ide-analysis|ide-android|ide-cli|ide-clipboard|ide-coverage|ide-db|ide-docker|ide-fonts|ide-github|ide-mcp|ide-notebook|ide-profiler|ide-scaffold|ide-spell|ide-ssh|ide-vcs|ide-web)/'
|
||||
# ide-lsp/dap/run/sdk/tools. Also skip non-English lazy locale catalogs (smoke always
|
||||
# runs in the default English locale).
|
||||
unused='^(crates/(ide-agent|ide-analysis|ide-android|ide-cli|ide-clipboard|ide-coverage|ide-db|ide-docker|ide-fonts|ide-github|ide-mcp|ide-notebook|ide-profiler|ide-scaffold|ide-spell|ide-ssh|ide-vcs|ide-web)/|src/platform/locales/text/)'
|
||||
# The workflow's paths, less those handled per language below.
|
||||
smoke='^(crates/|Cargo\.(toml|lock)$|src/features/(run|debugger|build|build-tools)/|src/platform/|src/workbench/|src/ui/|src/editor/(api|navigationProviders|refactorProviders|relatedProviders|core/cm/(cornerInset|iconArea|inlineBg|lineNumberOptions|localAppearance)|lsp/(availability|diagnostics|files|hint|lsp|positions|snippet))\.ts$|src/bindings\.ts$|src/styles/tokens\.css$|src/test/setup\.ts$|src/assets/openidea-logo\.png$|smoke/|vite\.config\.ts$|tsconfig\.json$|package\.json$|pnpm-(lock|workspace)\.yaml$|patches/|\.github/workflows/language-smoke\.yml$|\.github/tool-versions\.env$)'
|
||||
langs=""
|
||||
@@ -117,6 +132,8 @@ jobs:
|
||||
case "$f" in
|
||||
crates/ide-host/tests/language_smoke.rs | crates/ide-host/tests/project_smoke.rs) langs="$all"; break ;;
|
||||
crates/*/tests/* | crates/*/benches/*) ;;
|
||||
src/platform/locales/en.json) langs="$all"; break ;;
|
||||
src/platform/locales/*.json) ;;
|
||||
fixtures/ts-app/*) langs+=" typescript" ;;
|
||||
fixtures/python-app/*) langs+=" python" ;;
|
||||
fixtures/rust-app/*) langs+=" rust" ;;
|
||||
@@ -141,7 +158,9 @@ jobs:
|
||||
*) if grep -Eq "$smoke" <<< "$f" && ! grep -Eq "$unused" <<< "$f"; then langs="$all"; break; fi ;;
|
||||
esac
|
||||
done < files.txt
|
||||
echo "languages=$(emit "$langs")" | tee -a "$GITHUB_OUTPUT"
|
||||
langs_json=$(emit "$langs")
|
||||
echo "languages=$langs_json" | tee -a "$GITHUB_OUTPUT"
|
||||
echo "groups=$(emit_groups "$langs_json")" | tee -a "$GITHUB_OUTPUT"
|
||||
|
||||
# Builds the smoke test binaries and openidea-server once for every language below.
|
||||
build:
|
||||
@@ -190,12 +209,12 @@ jobs:
|
||||
with: { name: smoke-bin, path: smoke-bin.tar, retention-days: 1 }
|
||||
|
||||
smoke:
|
||||
name: Language smoke (${{ matrix.language }})
|
||||
name: Language smoke (${{ matrix.group.name }})
|
||||
needs: [changes, build]
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: ${{ fromJSON(needs.changes.outputs.languages) }}
|
||||
group: ${{ fromJSON(needs.changes.outputs.groups) }}
|
||||
# Self-hosted runners (scripts/selfhost-runner) only for trusted events, and only while the
|
||||
# SELFHOSTED_RUNNERS repository variable is 'true': runs-on cannot fall back when none is online.
|
||||
runs-on: ${{ vars.SELFHOSTED_RUNNERS == 'true' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && fromJSON('["self-hosted", "openidea-selfhosted"]') || 'ubuntu-latest' }}
|
||||
@@ -208,7 +227,8 @@ jobs:
|
||||
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
|
||||
# Tool versions, shared with the evals (pnpm eval).
|
||||
- run: grep -E '^[A-Z0-9_]+=' .github/tool-versions.env >> "$GITHUB_ENV"
|
||||
- uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
|
||||
- if: contains(matrix.group.languages, 'rust')
|
||||
uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
|
||||
with: { components: "rust-analyzer, rustfmt" }
|
||||
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
with: { name: smoke-bin }
|
||||
@@ -223,11 +243,11 @@ jobs:
|
||||
node-version: 22
|
||||
cache: ${{ runner.environment != 'self-hosted' && 'pnpm' || '' }}
|
||||
package-manager-cache: ${{ runner.environment != 'self-hosted' }}
|
||||
- if: matrix.language == 'typescript'
|
||||
- if: contains(matrix.group.languages, 'typescript')
|
||||
run: npm install --global "@vtsls/language-server@$VTSLS" "typescript@$TYPESCRIPT"
|
||||
|
||||
# The smoke checks C/C++ with clangd and debugs c-app with GDB's own DAP interpreter (GDB 14+).
|
||||
- if: matrix.language == 'c' || matrix.language == 'cpp'
|
||||
- if: contains(matrix.group.languages, 'c') || contains(matrix.group.languages, 'cpp')
|
||||
shell: bash
|
||||
run: |
|
||||
pkgs=()
|
||||
@@ -243,22 +263,22 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- if: matrix.language == 'python'
|
||||
- if: contains(matrix.group.languages, 'python')
|
||||
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
||||
with: { python-version: "3.12" }
|
||||
- if: matrix.language == 'python'
|
||||
- if: contains(matrix.group.languages, 'python')
|
||||
run: pip install "basedpyright==$BASEDPYRIGHT" "ruff==$RUFF"
|
||||
|
||||
- if: matrix.language == 'go'
|
||||
- if: contains(matrix.group.languages, 'go')
|
||||
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
|
||||
with: { go-version: "1.27", cache: false }
|
||||
- if: matrix.language == 'go'
|
||||
- if: contains(matrix.group.languages, 'go')
|
||||
run: go install "golang.org/x/tools/gopls@$GOPLS"
|
||||
|
||||
- if: matrix.language == 'java' || matrix.language == 'kotlin'
|
||||
- if: contains(matrix.group.languages, 'java') || contains(matrix.group.languages, 'kotlin')
|
||||
uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v4.9.1
|
||||
with: { distribution: temurin, java-version: "${{ env.JAVA }}" }
|
||||
- if: matrix.language == 'java'
|
||||
- if: contains(matrix.group.languages, 'java')
|
||||
run: |
|
||||
command -v mvn >/dev/null || { sudo apt-get update && sudo apt-get install -y maven; }
|
||||
mkdir -p "$RUNNER_TEMP/jdtls"
|
||||
@@ -267,10 +287,12 @@ jobs:
|
||||
echo "$RUNNER_TEMP/jdtls/bin" >> "$GITHUB_PATH"
|
||||
|
||||
# The Kotlin fixture has no Gradle wrapper: the server imports it with the Gradle on PATH.
|
||||
- if: matrix.language == 'kotlin'
|
||||
- if: contains(matrix.group.languages, 'kotlin')
|
||||
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # v4.4.3
|
||||
with: { gradle-version: "${{ env.GRADLE }}" }
|
||||
- if: matrix.language == 'kotlin'
|
||||
with:
|
||||
gradle-version: "${{ env.GRADLE }}"
|
||||
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
|
||||
- if: contains(matrix.group.languages, 'kotlin')
|
||||
run: |
|
||||
mkdir -p "$RUNNER_TEMP/kotlin-lsp" "$RUNNER_TEMP/bin"
|
||||
curl -fsSL "https://download.jetbrains.com/language-server/kotlin-server/$KOTLIN_LSP/kotlin-server-$KOTLIN_LSP.tar.gz" \
|
||||
@@ -279,31 +301,48 @@ jobs:
|
||||
echo "$RUNNER_TEMP/bin" >> "$GITHUB_PATH"
|
||||
|
||||
# Xdebug for the debug smoke; Composer installs the fixture's Pest for the run smoke.
|
||||
- if: matrix.language == 'php'
|
||||
- if: contains(matrix.group.languages, 'php')
|
||||
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
|
||||
with: { php-version: "8.5", coverage: xdebug, tools: composer }
|
||||
- if: matrix.language == 'php'
|
||||
- if: contains(matrix.group.languages, 'php')
|
||||
run: npm install --global "intelephense@$INTELEPHENSE"
|
||||
|
||||
# The binaries from the build job, run from the crate directory as `cargo test` does.
|
||||
- working-directory: crates/ide-host
|
||||
run: ../../smoke-bin/language_smoke --ignored --exact ${{ matrix.language }}
|
||||
# Problems › TypeScript Project Errors runs the project's own tsc: the global install stands in.
|
||||
- if: matrix.language == 'typescript'
|
||||
- name: Code intelligence and project smoke
|
||||
working-directory: crates/ide-host
|
||||
run: ../../smoke-bin/language_smoke --ignored --exact typescript_project_errors typescript_import_style
|
||||
- if: matrix.language == 'java'
|
||||
working-directory: crates/ide-host
|
||||
run: ../../smoke-bin/project_smoke --ignored --exact maven_sync jdk maven_launch_classpath_uses_the_runner_jdk_classifier
|
||||
- if: matrix.language == 'kotlin'
|
||||
working-directory: crates/ide-host
|
||||
run: ../../smoke-bin/project_smoke --ignored --exact gradle_sync
|
||||
- if: matrix.language == 'python'
|
||||
working-directory: crates/ide-host
|
||||
run: ../../smoke-bin/project_smoke --ignored --exact python_venv
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
status=0
|
||||
for lang in ${{ join(matrix.group.languages, ' ') }}; do
|
||||
echo "::group::language_smoke ($lang)"
|
||||
../../smoke-bin/language_smoke --ignored --exact "$lang" || status=1
|
||||
# Problems › TypeScript Project Errors runs the project's own tsc: the global install stands in.
|
||||
if [ "$lang" = typescript ]; then
|
||||
../../smoke-bin/language_smoke --ignored --exact typescript_project_errors typescript_import_style || status=1
|
||||
fi
|
||||
if [ "$lang" = java ]; then
|
||||
../../smoke-bin/project_smoke --ignored --exact maven_sync jdk maven_launch_classpath_uses_the_runner_jdk_classifier || status=1
|
||||
fi
|
||||
if [ "$lang" = kotlin ]; then
|
||||
../../smoke-bin/project_smoke --ignored --exact gradle_sync || status=1
|
||||
fi
|
||||
if [ "$lang" = python ]; then
|
||||
../../smoke-bin/project_smoke --ignored --exact python_venv || status=1
|
||||
fi
|
||||
echo "::endgroup::"
|
||||
done
|
||||
exit "$status"
|
||||
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm smoke smoke/run.test.ts -t "^${{ matrix.language }}$"
|
||||
- run: pnpm smoke smoke/debug.test.ts -t "^${{ matrix.language }}$"
|
||||
- name: Run and debug smoke
|
||||
shell: bash
|
||||
# The IDE installs the debugger from GitHub releases: authenticated, against rate limits.
|
||||
env: { GITHUB_TOKEN: "${{ github.token }}" }
|
||||
run: |
|
||||
set -euo pipefail
|
||||
pattern="^($(echo "${{ join(matrix.group.languages, '|') }}"))$"
|
||||
status=0
|
||||
pnpm smoke smoke/run.test.ts -t "$pattern" || status=1
|
||||
pnpm smoke smoke/debug.test.ts -t "$pattern" || status=1
|
||||
exit "$status"
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,6 @@
|
||||
mod debugpy;
|
||||
mod godot;
|
||||
mod php_debug;
|
||||
mod real_adapters;
|
||||
mod script_debuggers;
|
||||
mod unity;
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,11 @@
|
||||
mod clickhouse;
|
||||
mod jdbc;
|
||||
mod mysql;
|
||||
mod pg_console_sessions;
|
||||
mod pg_console_transactions;
|
||||
mod postgres;
|
||||
mod snowflake;
|
||||
mod sqlite;
|
||||
mod sqlite_console_sessions;
|
||||
mod sqlserver;
|
||||
mod ssh_tunnel;
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2
-2
@@ -701,7 +701,7 @@ async fn managed_tunnel_shares_the_forwarder_and_closes_it_after_the_last_target
|
||||
executable: std::env::current_exe()?.to_string_lossy().into_owned(),
|
||||
arguments: vec![
|
||||
"--exact".into(),
|
||||
"postgres_tunnel_fixture".into(),
|
||||
"postgres::postgres_tunnel_fixture".into(),
|
||||
"--skip".into(),
|
||||
"listen={localPort}".into(),
|
||||
"--skip".into(),
|
||||
@@ -758,7 +758,7 @@ async fn external_startup_does_not_block_another_source_and_disconnect_cancels_i
|
||||
executable: std::env::current_exe()?.to_string_lossy().into_owned(),
|
||||
arguments: vec![
|
||||
"--exact".into(),
|
||||
"postgres_tunnel_fixture".into(),
|
||||
"postgres::postgres_tunnel_fixture".into(),
|
||||
"--skip".into(),
|
||||
"listen={localPort}".into(),
|
||||
"--skip".into(),
|
||||
+1
-1
@@ -320,7 +320,7 @@ async fn explorer_metadata_against_a_real_account() {
|
||||
// each is either answered or refused by Snowflake (an edition or privilege it needs), never
|
||||
// misread by the client. `USE` goes to what the session already has.
|
||||
let fixture: serde_json::Value =
|
||||
serde_json::from_str(include_str!("fixtures/snowflake/commands.json")).expect("the fixture parses");
|
||||
serde_json::from_str(include_str!("../fixtures/snowflake/commands.json")).expect("the fixture parses");
|
||||
let mut statements: Vec<(String, String)> = fixture["commands"]
|
||||
.as_array()
|
||||
.expect("commands")
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -1,6 +1,6 @@
|
||||
//! The mode new agent tasks start in.
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_host::{Host, HostConfig};
|
||||
use serde_json::json;
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
//! worktree auto-GC + retention cap, `NeedsInput` approval, in-session `Send Later` / `/loop`,
|
||||
//! and persistent `openidea-server --daemon` keep-alive across disconnects.
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_agent::{
|
||||
AgentPrompt, AutomationContinuity, AutomationPermissionMode, AutomationRunOrigin, AutomationRunStatus,
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
//! Values of agents' environment variables live in the credential store; agent files keep only their names.
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_host::Host;
|
||||
use ide_ssh::secrets::testing::{files_containing, use_memory_store};
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
//! External MCP servers in Settings › Agents, as the host stores and lists them.
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_agent::{McpScope, McpServer, McpServerInput};
|
||||
use ide_core::settings::McpTransport;
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
//! Separate project windows share discovery and its backend-enforced cooldown.
|
||||
#![cfg(unix)]
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_agent::AgentEvent;
|
||||
use ide_host::{Host, HostConfig, ops};
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
//! Each project of a workspace keeps its own excluded folders: they apply below that project only.
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::RequestId;
|
||||
use ide_host::{Host, HostConfig, ops};
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
//! Binary command arguments over the remote protocol: base64 strings, not arrays of numbers.
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::IpcBytes;
|
||||
use ide_host::Host;
|
||||
+1
-2
@@ -1,8 +1,7 @@
|
||||
//! Closing a project takes the background processes of its window with it, as IDEA does,
|
||||
//! and leaves the other windows' processes alone.
|
||||
#![cfg(unix)]
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_host::{Host, ops};
|
||||
use std::sync::Arc;
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
//! The PHP of a Docker and of a Compose run target, against a real daemon. Ignored by default:
|
||||
//! `docker` with the Compose plugin must be on `PATH` and able to pull `php:8.3-cli`.
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_host::{Host, ops};
|
||||
use std::sync::Arc;
|
||||
+1
-2
@@ -3,9 +3,8 @@
|
||||
//! daemon can bind-mount (on this machine, or at the same path in a VM such as OrbStack's),
|
||||
//! `docker` with the Compose plugin and `basedpyright-langserver` must be on `PATH`, and
|
||||
//! this machine's Python must not have Django installed.
|
||||
#![cfg(unix)]
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::IdeEvent;
|
||||
use ide_host::{Host, HostConfig, ops};
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
//! It downloads CSharpier, so it runs only on request:
|
||||
//! `cargo test -p ide-host --test csharpier -- --ignored`; skipped without a .NET SDK.
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::error::ErrorKind;
|
||||
use ide_core::{IdeEvent, IdeResult, Pos, Range, TextEdit};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_host::{Host, HostConfig, ops};
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_host::Host;
|
||||
use ide_host::ops::db;
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
//! that sends no real window (the desktop shell once passed `""`) never reaches the debugger,
|
||||
//! and a project in Restricted Mode never reads the debuggee's memory.
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::IdeError;
|
||||
use ide_host::Host;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::RequestId;
|
||||
use ide_host::{
|
||||
File renamed without changes.
+1
-2
@@ -2,9 +2,8 @@
|
||||
//! `OPENIDEA_DOCKER_TEST_DIR` names an empty folder the daemon can bind-mount
|
||||
//! (on this machine, or at the same path in a VM such as OrbStack's), and
|
||||
//! `docker` with the Compose plugin must be on `PATH`.
|
||||
#![cfg(unix)]
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_host::{Host, ops};
|
||||
use ide_run::{OutputChunk, RunConfig};
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
//! Explicit external logs allow history reads without adding a writable project root.
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_host::{Host, ops::vcs};
|
||||
use std::{path::Path, process::Command};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_host::{Host, HostConfig, ops};
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
//! SvnExternalTest, SvnExternalCommitNoticedTest and SvnCommitTest (scenarios only); the
|
||||
//! working copies themselves are checked in crates/ide-svn/tests/ij_files.rs.
|
||||
//! Skipped when `svn` or `svnadmin` is not installed (a failure in CI).
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_host::Host;
|
||||
use ide_host::ops::vcs;
|
||||
+7
-7
@@ -1,4 +1,4 @@
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_build::compile::BuildEvent;
|
||||
use ide_core::RequestId;
|
||||
@@ -26,11 +26,11 @@ async fn pom_launch_uses_dependency_classpath_without_a_java_project() {
|
||||
let temp = tempfile::tempdir().unwrap();
|
||||
let base = dunce::canonicalize(temp.path()).unwrap();
|
||||
let root = base.join("project");
|
||||
let pom = include_str!("../../ide-build/tests/fixtures/jbuild-maven/pom.xml")
|
||||
let pom = include_str!("../../../ide-build/tests/fixtures/jbuild-maven/pom.xml")
|
||||
.replace("</modules>", "<module>assembly</module></modules>");
|
||||
write(&root, "pom.xml", &pom);
|
||||
write(&root, "lib/pom.xml", include_str!("../../ide-build/tests/fixtures/jbuild-maven/lib/pom.xml"));
|
||||
write(&root, "app/pom.xml", include_str!("../../ide-build/tests/fixtures/jbuild-maven/app/pom.xml"));
|
||||
write(&root, "lib/pom.xml", include_str!("../../../ide-build/tests/fixtures/jbuild-maven/lib/pom.xml"));
|
||||
write(&root, "app/pom.xml", include_str!("../../../ide-build/tests/fixtures/jbuild-maven/app/pom.xml"));
|
||||
write(
|
||||
&root,
|
||||
"assembly/pom.xml",
|
||||
@@ -130,9 +130,9 @@ async fn maven_launch_compiles_with_the_ides_java_build() {
|
||||
let temp = tempfile::tempdir().unwrap();
|
||||
let base = dunce::canonicalize(temp.path()).unwrap();
|
||||
let root = base.join("project");
|
||||
write(&root, "pom.xml", include_str!("../../ide-build/tests/fixtures/jbuild-maven/pom.xml"));
|
||||
write(&root, "lib/pom.xml", include_str!("../../ide-build/tests/fixtures/jbuild-maven/lib/pom.xml"));
|
||||
write(&root, "app/pom.xml", include_str!("../../ide-build/tests/fixtures/jbuild-maven/app/pom.xml"));
|
||||
write(&root, "pom.xml", include_str!("../../../ide-build/tests/fixtures/jbuild-maven/pom.xml"));
|
||||
write(&root, "lib/pom.xml", include_str!("../../../ide-build/tests/fixtures/jbuild-maven/lib/pom.xml"));
|
||||
write(&root, "app/pom.xml", include_str!("../../../ide-build/tests/fixtures/jbuild-maven/app/pom.xml"));
|
||||
write(
|
||||
&root,
|
||||
"lib/src/main/java/l/L.java",
|
||||
File renamed without changes.
+1
-1
@@ -1,6 +1,6 @@
|
||||
//! LightEdit: a window editing loose files without a project.
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{ChangeSet, Pos, Range, SymbolKind, TextChange};
|
||||
use ide_host::{Host, catalogue::TrustClass, ops};
|
||||
@@ -0,0 +1,101 @@
|
||||
#[path = "../common/mod.rs"]
|
||||
mod common;
|
||||
|
||||
mod agent_approvals;
|
||||
mod agent_automations;
|
||||
mod agent_env_secrets;
|
||||
mod agent_mcp;
|
||||
#[cfg(unix)]
|
||||
mod agent_model_refresh;
|
||||
mod attached_excludes;
|
||||
mod binary_args;
|
||||
#[cfg(unix)]
|
||||
mod close_project;
|
||||
mod container_php_real;
|
||||
#[cfg(unix)]
|
||||
mod container_python_real;
|
||||
mod csharpier;
|
||||
mod data_dirs;
|
||||
mod db_consoles;
|
||||
mod debug_jvm_memory_ipc;
|
||||
mod directory_sync;
|
||||
mod distribution;
|
||||
#[cfg(unix)]
|
||||
mod docker_run_targets_real;
|
||||
mod external_log;
|
||||
mod gradle_linkage;
|
||||
mod ij_svn_roots;
|
||||
mod java_build;
|
||||
mod jdtls_excluded_checkout;
|
||||
mod light_edit;
|
||||
mod maven_external;
|
||||
mod mcp;
|
||||
mod mcp_secrets;
|
||||
mod nav_inheritance;
|
||||
#[cfg(windows)]
|
||||
mod network_images;
|
||||
mod open_project;
|
||||
mod plugin_clipboard;
|
||||
mod plugin_code_semantics;
|
||||
mod plugin_commit;
|
||||
mod plugin_completion_list;
|
||||
mod plugin_completion_resolve;
|
||||
mod plugin_data_tools;
|
||||
mod plugin_database_open;
|
||||
mod plugin_dependencies;
|
||||
mod plugin_diagnostics;
|
||||
mod plugin_hover;
|
||||
mod plugin_indexing;
|
||||
mod plugin_inlay_hints;
|
||||
mod plugin_language_features;
|
||||
mod plugin_project_view;
|
||||
mod plugin_refactoring;
|
||||
mod plugin_rename;
|
||||
mod plugin_run_anything;
|
||||
mod plugin_run_output;
|
||||
mod plugin_semantic_tokens;
|
||||
mod plugin_server_commands;
|
||||
mod plugin_symbols;
|
||||
mod plugin_syntax_decorations;
|
||||
mod plugin_view_badge;
|
||||
mod plugin_watch_paths;
|
||||
mod plugin_workbench;
|
||||
mod pom_encoding;
|
||||
mod properties;
|
||||
mod pytest_fixtures;
|
||||
mod python_move;
|
||||
mod python_rename_comments;
|
||||
mod python_signature;
|
||||
mod python_signature_ops;
|
||||
#[cfg(unix)]
|
||||
mod remote_daemon;
|
||||
#[cfg(unix)]
|
||||
mod remote_plugins;
|
||||
mod replace_all;
|
||||
mod roslyn_editorconfig;
|
||||
mod roslyn_hints;
|
||||
mod rpc;
|
||||
mod run_configs;
|
||||
mod search_encoding;
|
||||
mod settings_sync;
|
||||
mod spell_dictionary;
|
||||
mod ssh_terminal;
|
||||
mod svn;
|
||||
#[cfg(any(unix, windows))]
|
||||
mod terminal_images;
|
||||
mod trust;
|
||||
#[cfg(unix)]
|
||||
mod trust_git_binary;
|
||||
mod trust_vcs_sweep;
|
||||
mod unity;
|
||||
mod vcs_backends;
|
||||
mod vcs_delete_added;
|
||||
mod vcs_documents;
|
||||
mod vcs_encoding;
|
||||
mod vcs_flow;
|
||||
mod vcs_roots;
|
||||
mod vcs_shelf_roots;
|
||||
mod vcs_watcher_moved_repository;
|
||||
mod vcs_worktrees;
|
||||
mod workspace_edits;
|
||||
mod workspaces;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_host::{Host, HostConfig, ops};
|
||||
use ide_workspace::settings::SettingsScope;
|
||||
@@ -1,4 +1,4 @@
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{
|
||||
CancellationToken, ChangeSet, Diagnostic, IdeEvent, Pos, Range, Severity, TextChange, event::McpUiRequest,
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
//! credential store; `settings.toml` keeps only their names. A project's own servers keep
|
||||
//! their values in the project's file, where the project shares them.
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_agent::{McpKeyValue, McpScope, McpServer, McpServerInput};
|
||||
use ide_core::settings::McpTransport;
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
//! written in its source, so the UI can compute inheritance gutter markers without a
|
||||
//! language server's type-hierarchy provider.
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_host::{Host, ops};
|
||||
use std::path::PathBuf;
|
||||
@@ -2,7 +2,6 @@
|
||||
//! share signs in to its server with the user's credentials: the host reads an image from a
|
||||
//! share only when a project is open on it. The share here is this machine's own `C$` over
|
||||
//! loopback.
|
||||
#![cfg(windows)]
|
||||
|
||||
use ide_core::NullSink;
|
||||
use ide_host::ops::bytes::fs_read_image;
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
//! Opening the project a window is already opening reuses it: racing opens (a double
|
||||
//! click, a launch path and a restore) must not start a second index and language servers.
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_host::Host;
|
||||
use std::sync::{Arc, Barrier};
|
||||
File renamed without changes.
+1
-1
@@ -1,6 +1,6 @@
|
||||
//! API 1.21 `code.semantics`: read-only LSP semantic queries require capability & trust
|
||||
//! and confine non-virtual target locations to workspace roots.
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::error::ErrorKind;
|
||||
use ide_host::plugins::{Consent, HostWorkspace, PluginHost};
|
||||
File renamed without changes.
+1
-1
@@ -1,6 +1,6 @@
|
||||
//! API 1.16 `completion-list-provider`: a plugin marks its completion incomplete, and typing on
|
||||
//! in the same word asks that plugin again while the language server's list is kept.
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{ChangeSet, Pos, RequestId, TextChange};
|
||||
use ide_host::plugins::{Consent, HostWorkspace, PluginHost, set_editor_providers};
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
//! API 1.21 `completion-resolve-provider`: listing items with opaque `data`, capability
|
||||
//! enforcement inside lazy `resolve`, and resolving detail/docs/additional_edits on focus.
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{Pos, RequestId};
|
||||
use ide_host::plugins::{Consent, HostWorkspace, PluginHost, set_editor_providers};
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
//! Database and MCP calls through a real sandboxed component.
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{CancellationToken, IdeEvent, event::McpUiRequest};
|
||||
use ide_host::{
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
//! API 1.21 `database.open-console` & `database.open-table-data`: capability gating,
|
||||
//! unknown source rejection, and OpenDatabaseConsole / OpenDatabaseTable event emission.
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::error::ErrorKind;
|
||||
use ide_host::plugins::{Consent, HostWorkspace, PluginEvent, PluginHost};
|
||||
File renamed without changes.
+1
-1
@@ -1,5 +1,5 @@
|
||||
//! Real Wasm provider dispatch and the document-edit path used locally and over RPC.
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{CancellationToken, ChangeSet, Diagnostic, IdeEvent, Pos, Range, TextChange};
|
||||
use ide_host::plugins::{Consent, HostWorkspace, PluginEvent, PluginHost, set_editor_providers};
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -1,5 +1,5 @@
|
||||
//! The API 1.4 fixture exercises every kind through the real component runtime and editor ops.
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{CancellationToken, Pos, Range, RequestId};
|
||||
use ide_host::plugins::{Consent, HostWorkspace, PluginHost, set_editor_providers};
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
//! API 1.21 Project view panes and Git branch menus, through the fixture plugin.
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::ipc_path::to_ipc;
|
||||
use ide_host::plugins::commands::{plugin_project_view_modify, plugin_run_git_command};
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
//! Indexed names use the same preview/apply/undo commands as language-server refactorings.
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{IdeEvent, Pos, RequestId, error::ErrorKind};
|
||||
use ide_host::{
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
//! API 1.21 `rename-provider`: prepare-rename, cross-file rename via Invocation,
|
||||
//! capability denial/grant handling, and writable-root path confinement.
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{FileEdit, Pos, RequestId, error::ErrorKind};
|
||||
use ide_host::plugins::{Consent, HostWorkspace, PluginHost, set_editor_providers};
|
||||
File renamed without changes.
+1
-1
@@ -1,6 +1,6 @@
|
||||
//! API 1.21 `run.output` & `ui.set-console-links`: capability gating, declared-command
|
||||
//! validation, console link snapshots/events, and live RunOutput event delivery.
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::error::ErrorKind;
|
||||
use ide_host::plugins::{Consent, HostWorkspace, PluginEvent, PluginHost};
|
||||
File renamed without changes.
+1
-1
@@ -1,7 +1,7 @@
|
||||
//! `[[contributes.serverCommands]]` (plugin API 1.9): a command a language server hands to the
|
||||
//! client runs the plugin command that claims it. The fixture's command sends its argument
|
||||
//! back to the server (`mock/ran`), through the real component runtime and `language-servers`.
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_host::plugins::{Consent, HostWorkspace, PluginHost, set_editor_providers};
|
||||
use ide_host::{Host, HostConfig, ops};
|
||||
File renamed without changes.
+1
-1
@@ -1,4 +1,4 @@
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{CancellationToken, Pos, Range, RequestId};
|
||||
use ide_host::plugins::{Consent, PluginHost};
|
||||
File renamed without changes.
File renamed without changes.
+1
-1
@@ -1,4 +1,4 @@
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{CancellationToken, Diagnostic, Pos, Range, Severity};
|
||||
use ide_host::plugins::{HostWorkspace, PluginWorkspace};
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
//! Maven's `project.build.sourceEncoding` is the encoding of the module's sources,
|
||||
//! without becoming a user choice or overriding EditorConfig.
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_host::{Host, ops};
|
||||
use ide_workspace::settings::SettingsScope;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{ChangeSet, RequestId, TextChange};
|
||||
use ide_host::{
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
//! on a project on disk: which files are searched, overrides left out, `pytest_plugins`
|
||||
//! modules, `python_files`, body reads and name clashes.
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{FileEdit, Pos};
|
||||
use ide_host::{Host, ops};
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
//! Python before and after, and must print the same. `#[ignore]`d: it needs `pylsp` on `PATH`
|
||||
//! (the helper runs with that environment's Python).
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{ChangeSet, IdeEvent, RequestId, SharedSink, TextChange};
|
||||
use ide_host::{Host, HostConfig, ops};
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
//! merged edit the preview shows, applying it and undoing it in one step. Needs
|
||||
//! `basedpyright-langserver` on PATH:
|
||||
//! `cargo test -p ide-host --test python_rename_comments -- --ignored`
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{IdeEvent, Pos, RequestId, WorkspaceEdit};
|
||||
use ide_host::{Host, HostConfig, ops};
|
||||
File renamed without changes.
+1
-1
@@ -2,7 +2,7 @@
|
||||
//! edit it computes from the open (unsaved) buffers, applying it and undoing it. `#[ignore]`d:
|
||||
//! it needs `pylsp` with rope on `PATH` (`pip install python-lsp-server pylsp-rope`).
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{ChangeSet, IdeEvent, Pos, RequestId, SharedSink, TextChange, error::ErrorKind};
|
||||
use ide_host::{Host, HostConfig, ops};
|
||||
@@ -3,8 +3,6 @@
|
||||
//! (including `stopCommand` configs such as `docker compose`) and dirty buffers
|
||||
//! running until a client sends `"shutdown"` or the backend has been idle long enough.
|
||||
|
||||
#![cfg(unix)]
|
||||
|
||||
use ide_host::rpc::{self, ChannelMessage, EventMessage, Invoke, ServerInfo};
|
||||
use ide_jsonrpc::{Handler, Peer};
|
||||
use parking_lot::Mutex;
|
||||
+1
-3
@@ -3,9 +3,7 @@
|
||||
//! code plugins over the remote protocol; Checkstyle then checks the file on
|
||||
//! the server's disk when it is saved, and secrets come from the desktop.
|
||||
|
||||
#![cfg(unix)]
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::IdeEvent;
|
||||
use ide_host::plugins::remote_host::{
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
//! Replace All when the search hit its match limit (#4083): every match in the
|
||||
//! scope is replaced, not just the listed ones.
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{Pos, RequestId};
|
||||
use ide_host::{Host, ops};
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
//! language server installed as Settings does. It downloads the server, so it runs only on request:
|
||||
//! `cargo test -p ide-host --test roslyn_editorconfig -- --ignored`; skipped without a .NET SDK.
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{DocId, IdeEvent, Pos, Range, RequestId, Severity};
|
||||
use ide_host::{Host, HostConfig, ops};
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
//! csharp-ls and the Roslyn language server, installed as Settings does (network). Ignored by
|
||||
//! default: `cargo test -p ide-host --test roslyn_hints -- --ignored`; skipped without a .NET SDK.
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{DocId, Pos, Range};
|
||||
use ide_host::{Host, HostConfig, ops};
|
||||
@@ -1,7 +1,7 @@
|
||||
//! The remote protocol end to end: a server on one side of an in-memory pipe,
|
||||
//! a JSON-RPC client on the other.
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_host::rpc::{self, ChannelMessage, Dispatcher, EventMessage, Invoke, ServerInfo};
|
||||
use ide_host::{Host, HostConfig};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_host::{Host, ops};
|
||||
use std::sync::Arc;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::RequestId;
|
||||
use ide_host::{Host, ops};
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
//! Settings Sync between two machines through a local bare repository.
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_host::Host;
|
||||
use ide_host::ops::settings_sync::{SettingsSyncMode, SettingsSyncResult, has_local_changes, sync_now};
|
||||
File renamed without changes.
+1
-1
@@ -1,4 +1,4 @@
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::remote_settings::{SshAuth, SshConfiguration};
|
||||
use ide_core::{IdeEvent, SharedSink};
|
||||
@@ -1,7 +1,7 @@
|
||||
//! Subversion working copies through the shared `vcs_*` commands and the
|
||||
//! `svn_*` ones, against throwaway `svnadmin` repositories (`file://` URLs).
|
||||
//! Skipped when `svn` or `svnadmin` is not installed.
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::CancellationToken;
|
||||
use ide_host::Host;
|
||||
+1
-3
@@ -1,6 +1,4 @@
|
||||
#![cfg(any(unix, windows))]
|
||||
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::{NullSink, TerminalId};
|
||||
use ide_host::{Host, ops};
|
||||
@@ -1,4 +1,4 @@
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
#[cfg(unix)]
|
||||
use ide_host::ops;
|
||||
+2
-4
@@ -1,7 +1,5 @@
|
||||
//! Which git executable each window's repositories run. Its own test binary: the default
|
||||
//! executable (global settings) is process-wide.
|
||||
#![cfg(unix)]
|
||||
mod common;
|
||||
//! Which git executable each window's repositories run (project-scoped `.openidea/settings.toml`).
|
||||
use crate::common;
|
||||
|
||||
use ide_host::{Host, ops};
|
||||
use std::os::unix::fs::PermissionsExt;
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
//! Security audit lead 2: every `vcs_*` command Restricted Mode allows, run against a
|
||||
//! repository whose config names a program for a signed commit, an index read, an external
|
||||
//! diff, a clean filter and a missing object. None may run.
|
||||
mod common;
|
||||
use crate::common;
|
||||
|
||||
use ide_core::RequestId;
|
||||
use ide_host::{Host, catalogue::TrustClass, ops, ops::vcs};
|
||||
Loaded 100 of 177 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Заблокувати користувача