Skip to content

Commit

Permalink
build-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mcecode committed Nov 28, 2024
1 parent 3627281 commit ffb5f4d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/build-debug-harper-ls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build Debug

on:
push:
branches: ["build-debug-harper-ls"]

jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: x86_64-unknown-linux-gnu
- name: Build
run: cargo +stable build --locked --profile dev --bin harper-ls --target x86_64-unknown-linux-gnu
- name: Archive
run: |
cd target/x86_64-unknown-linux-gnu/debug
tar -czf ../../../harper-ls.tar.gz harper-ls
cd -
- name: Upload
uses: actions/upload-artifact@v4
with:
name: debug-build
path: harper-ls.tar.gz
9 changes: 8 additions & 1 deletion harper-ls/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use tower_lsp::lsp_types::{
DidSaveTextDocumentParams, ExecuteCommandOptions, ExecuteCommandParams, InitializeParams,
InitializeResult, InitializedParams, MessageType, PublishDiagnosticsParams, Range,
ServerCapabilities, TextDocumentSyncCapability, TextDocumentSyncKind, TextDocumentSyncOptions,
TextDocumentSyncSaveOptions, Url,
TextDocumentSyncSaveOptions, Url, RenameFilesParams
};
use tower_lsp::{Client, LanguageServer};
use tracing::{error, info};
Expand Down Expand Up @@ -394,6 +394,13 @@ impl LanguageServer for Backend {
self.publish_diagnostics(&params.text_document.uri).await;
}

async fn did_rename_files(&self, params: RenameFilesParams) {
let _ = params;
self.client
.log_message(MessageType::INFO, "Files renamed!!!!")
.await;
}

async fn did_change(&self, params: DidChangeTextDocumentParams) {
let Some(last) = params.content_changes.last() else {
return;
Expand Down

0 comments on commit ffb5f4d

Please sign in to comment.