Giter VIP home page Giter VIP logo

mylang's Introduction

mylang's People

Contributors

0918nobita avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mylang's Issues

Responder のコードが長すぎる

関数に分離したい

fn handle(&mut self, msg: ReceivedMsg, ctx: &mut Self::Context) {
let sender = self.sender.clone();
let diagnostics_supported = Arc::clone(&self.diagnostics_supported);
async move {
let diagnostics_currently_enabled = diagnostics_supported.load(Ordering::Relaxed);
match msg.0 {
LspMessage::Request { id, method, params } if method == "initialize" => {
diagnostics_supported.store(
query_value!(params.capabilities.textDocument.publishDiagnostics).is_some(),
Ordering::Relaxed,
);
sender
.send(SendMsg(LspMessage::Response {
id,
result: json!({
"capabilities": {
"textDocumentSync": 1,
}
}),
}))
.await
.unwrap()
}
LspMessage::Notification { method, params }
if diagnostics_currently_enabled && (method == "textDocument/didOpen") =>
{
if let (Some(uri), Some(text)) = (
text_document_uri(&params),
query_value!(params.textDocument.text -> str),
) {
analyze_src_and_report_errs(sender, uri, text)
.await
.unwrap()
} else {
warn!("Skipped: ({:?}) {:?}", method, params)
}
}
LspMessage::Notification { method, params }
if diagnostics_currently_enabled && (method == "textDocument/didChange") =>
{
if let (Some(uri), Some(text)) = (
text_document_uri(&params),
query_value!(params.contentChanges[0].text -> str),
) {
analyze_src_and_report_errs(sender, uri, text)
.await
.unwrap()
} else {
warn!("Skipped: ({:?}) {:?}", method, params)
}
}
LspMessage::Notification { method, params }
if diagnostics_currently_enabled && method == "textDocument/didClose" =>
{
if let Some(uri) = text_document_uri(&params) {
sender
.send(SendMsg(LspMessage::Notification {
method: "textDocument/publishDiagnostics".to_owned(),
params: json!({ "uri": uri, "diagnostics": [] }),
}))
.await
.unwrap()
}
}
_ => (),
}
}
.into_actor(self)
.wait(ctx);
}

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update Rust crate serde_json to 1.0.107
  • Update Rust crate thiserror to 1.0.49
  • Update dependency esbuild to v0.19.4
  • Update Rust crate insta to 1.34.0
  • Update Rust crate tokio to 1.33.0
  • Update dependency @types/vscode to v1.83.0
  • Update dependency eslint to v8.51.0
  • Update actions/checkout action to v4
  • Update dependency vscode-languageclient to v9
  • 🔐 Create all rate-limited PRs at once 🔐

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

cargo
crates/ast/Cargo.toml
  • serde 1.0.184
crates/ast_interp/Cargo.toml
  • anyhow 1.0.75
  • clap 4.3.23
  • thiserror 1.0.47
  • insta 1.31.0
crates/bytecode/Cargo.toml
  • serde 1.0.184
crates/bytecode_compiler/Cargo.toml
  • anyhow 1.0.75
  • clap 4.3.23
  • insta 1.31.0
crates/cli_ext/Cargo.toml
  • anyhow 1.0.75
  • bincode 1.3.3
  • clap 4.3.23
  • once_cell 1.18.0
  • serde 1.0.184
  • serde_json 1.0.105
crates/cli_test/Cargo.toml
  • anyhow 1.0.75
  • clap 4.3.23
crates/lexer/Cargo.toml
  • anyhow 1.0.75
  • clap 4.3.23
  • itertools 0.11.0
  • thiserror 1.0.47
  • utf8-chars 3.0.0
  • insta 1.31.0
crates/lsp_server/Cargo.toml
  • actix 0.13.0
  • anyhow 1.0.75
  • env_logger 0.10.0
  • itertools 0.11.0
  • log 0.4.20
  • regex 1.9.4
  • serde 1.0.184
  • serde_json 1.0.105
  • valq 0.1.0
  • tokio 1.32.0
crates/parser/Cargo.toml
  • anyhow 1.0.75
  • bincode 1.3.3
  • clap 4.3.23
  • itertools 0.11.0
  • serde_json 1.0.105
  • thiserror 1.0.47
crates/token/Cargo.toml
  • serde 1.0.184
crates/vm/Cargo.toml
  • anyhow 1.0.75
  • bincode 1.3.3
  • clap 4.3.23
  • serde_json 1.0.105
  • thiserror 1.0.47
  • insta 1.31.0
github-actions
.github/workflows/check.yml
  • actions/checkout v3
  • actions-rs/toolchain v1
  • actions-rs/clippy-check v1
  • actions/checkout v3
  • actions-rs/toolchain v1
  • actions-rs/cargo v1
  • actions/checkout v3
  • actions-rs/toolchain v1
  • actions-rs/cargo v1
  • actions/checkout v3
  • actions-rs/toolchain v1
.github/workflows/doc.yml
  • actions/checkout v3
  • actions-rs/toolchain v1
  • peaceiris/actions-gh-pages v3
.github/workflows/remove-label.yml
  • actions/checkout v3
  • actions-ecosystem/action-remove-labels v1
.github/workflows/udeps.yml
  • actions/checkout v3
  • actions/cache v3
  • actions/checkout v3
  • actions-rs/toolchain v1
  • actions-rs/install v0.1
.github/workflows/vscode-ext.yml
  • actions/checkout v3
  • pnpm/action-setup v2.4.0
  • actions/checkout v3
  • pnpm/action-setup v2.4.0
  • actions/checkout v3
  • pnpm/action-setup v2.4.0
npm
vscode-ext/package.json
  • vscode-languageclient 8.1.0
  • @types/node 18.17.6
  • @types/vscode 1.81.0
  • @typescript-eslint/eslint-plugin 6.4.0
  • @typescript-eslint/parser 6.4.0
  • esbuild 0.19.2
  • eslint 8.48.0
  • prettier 3.0.2
  • typescript 5.1.6
  • vscode ^1.63.2

  • Check this box to trigger a request for Renovate to run again on this repository

Check ワークフローが遅すぎ

cargo-udeps だけ異様に時間がかかっている

毎回やる必要はないので「週一回、コードに変更があった場合にのみ cargo-udeps を実行する」別の定期ワークフローを用意して Check ワークフローからは外したほうが良さそう

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.