Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is DebugSessionStart dataKind == TaskDataKind? #1

Open
github-actions bot opened this issue Apr 23, 2022 · 0 comments
Open

Is DebugSessionStart dataKind == TaskDataKind? #1

github-actions bot opened this issue Apr 23, 2022 · 0 comments
Labels

Comments

@github-actions
Copy link

/ * See https://github.com/build-server-protocol/build-server-protocol/blob/master/bsp4j/src/main/xtend-gen/ch/epfl/scala/bsp4j/ScalaMainClass.java

https://github.com/tami5/build-server-protocol/blob/3004029602427f681f57ecff763db775f9000924/bsp-types/src/debug_session_start.rs#L14

/// The debug request is sent from the client to the server to debug build target(s). The server
/// launches a Microsoft DAP server and returns a connection URI for the client to interact with.
#[derive(Default, Debug, Serialize, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "camelCase", default)]
pub struct DebugSessionStart {
    /// A sequence of build targets affected by the debugging action.
    targets: Vec<BuildTargetIdentifier>,

    /// The kind of data to expect in the `data` field.
    /// TODO: Is DebugSessionStart dataKind == TaskDataKind?
    data_kind: String,

    /// Language-specific metadata for this execution.
    ///  * See https://github.com/build-server-protocol/build-server-protocol/blob/master/bsp4j/src/main/xtend-gen/ch/epfl/scala/bsp4j/ScalaMainClass.java
    #[serde(skip_serializing_if = "Value::is_null")]
    data: Value,
}

impl DebugSessionStart {
    pub fn new(targets: Vec<BuildTargetIdentifier>, data_kind: String, data: Value) -> Self {
        Self {
            targets,
@github-actions github-actions bot added the todo label Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants