docs: add license header files

This commit is contained in:
Jozef Steinhübl 2024-07-23 21:08:39 +02:00
parent 37996778d7
commit e70c49086e
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F
4 changed files with 76 additions and 0 deletions

View file

@ -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 <http://www.gnu.org/licenses/>
*/
use std::{
sync::{Mutex, MutexGuard},
time::{Duration, SystemTime, UNIX_EPOCH},

View file

@ -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 <http://www.gnu.org/licenses/>
*/
use git2::Repository;
fn get_repository(path: &str) -> Option<Repository> {

View file

@ -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 <http://www.gnu.org/licenses/>
*/
use std::fmt::Debug;
use std::path::{Path, PathBuf};
use std::sync::{Mutex, MutexGuard};

View file

@ -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 <http://www.gnu.org/licenses/>
*/
use std::fs;
use zed_extension_api::{self as zed};