From e70c49086ebbb8db4aba77e096dd3c2fd5736f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Tue, 23 Jul 2024 21:08:39 +0200 Subject: [PATCH] docs: add license header files --- lsp/src/discord.rs | 19 +++++++++++++++++++ lsp/src/git.rs | 19 +++++++++++++++++++ lsp/src/main.rs | 19 +++++++++++++++++++ src/discord_presence.rs | 19 +++++++++++++++++++ 4 files changed, 76 insertions(+) diff --git a/lsp/src/discord.rs b/lsp/src/discord.rs index 148b559..6f8719f 100644 --- a/lsp/src/discord.rs +++ b/lsp/src/discord.rs @@ -1,3 +1,22 @@ +/* + * This file is part of discord-presence. Extension for Zed that adds support for Discord Rich Presence using LSP. + * + * Copyright (c) 2024 Steinhübl + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see + */ + use std::{ sync::{Mutex, MutexGuard}, time::{Duration, SystemTime, UNIX_EPOCH}, diff --git a/lsp/src/git.rs b/lsp/src/git.rs index c880f20..eeddb67 100644 --- a/lsp/src/git.rs +++ b/lsp/src/git.rs @@ -1,3 +1,22 @@ +/* + * This file is part of discord-presence. Extension for Zed that adds support for Discord Rich Presence using LSP. + * + * Copyright (c) 2024 Steinhübl + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see + */ + use git2::Repository; fn get_repository(path: &str) -> Option { diff --git a/lsp/src/main.rs b/lsp/src/main.rs index 9af9d5c..4984874 100644 --- a/lsp/src/main.rs +++ b/lsp/src/main.rs @@ -1,3 +1,22 @@ +/* + * This file is part of discord-presence. Extension for Zed that adds support for Discord Rich Presence using LSP. + * + * Copyright (c) 2024 Steinhübl + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see + */ + use std::fmt::Debug; use std::path::{Path, PathBuf}; use std::sync::{Mutex, MutexGuard}; diff --git a/src/discord_presence.rs b/src/discord_presence.rs index 7e400bf..e148ab5 100644 --- a/src/discord_presence.rs +++ b/src/discord_presence.rs @@ -1,3 +1,22 @@ +/* + * This file is part of discord-presence. Extension for Zed that adds support for Discord Rich Presence using LSP. + * + * Copyright (c) 2024 Steinhübl + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see + */ + use std::fs; use zed_extension_api::{self as zed};