更新结构

This commit is contained in:
锦恢 2024-09-06 22:24:13 +08:00
parent a389a75efa
commit d90524aa5e
9 changed files with 30 additions and 31 deletions

48
Cargo.lock generated
View File

@ -211,6 +211,30 @@ dependencies = [
"parking_lot_core",
]
[[package]]
name = "digital-lsp"
version = "0.0.1"
dependencies = [
"anyhow",
"flexi_logger",
"log",
"path-clean",
"pathdiff",
"regex",
"ropey",
"serde",
"serde_yaml",
"structopt",
"strum",
"strum_macros",
"sv-parser",
"tempdir",
"tokio",
"tower-lsp",
"walkdir",
"which",
]
[[package]]
name = "either"
version = "1.9.0"
@ -1418,30 +1442,6 @@ version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
[[package]]
name = "veridian"
version = "0.1.0"
dependencies = [
"anyhow",
"flexi_logger",
"log",
"path-clean",
"pathdiff",
"regex",
"ropey",
"serde",
"serde_yaml",
"structopt",
"strum",
"strum_macros",
"sv-parser",
"tempdir",
"tokio",
"tower-lsp",
"walkdir",
"which",
]
[[package]]
name = "version_check"
version = "0.9.4"

View File

@ -1,7 +1,7 @@
[package]
name = "veridian"
version = "0.1.0"
authors = ["Vivek Malneedi <vivekmalneedi@gmail.com>"]
name = "digital-lsp"
version = "0.0.1"
authors = ["LSTM-Kirigaya <1193466151@qq.com>"]
edition = "2018"
[dependencies]

View File

@ -14,7 +14,7 @@
"devDependencies": {
"@types/mocha": "^8.2.2",
"@types/node": "^15.12.1",
"@types/vscode": "1.56.0",
"@types/vscode": "^1.56.0",
"@typescript-eslint/parser": "^4.26.0",
"eslint": "^7.28.0",
"mocha": "^8.4.0",
@ -22,7 +22,7 @@
"vscode-test": "^1.5.2"
},
"engines": {
"vscode": "^1.52.0"
"vscode": "^1.56.0"
}
},
"node_modules/@babel/code-frame": {

View File

@ -15,11 +15,10 @@ import {
let client: LanguageClient;
const workSpaceFolder = workspace.workspaceFolders?.[0];
let cwd: string = workSpaceFolder.uri.fsPath;
const serverPath: string = workspace.getConfiguration().get("veridian.serverPath");
export function activate(context: ExtensionContext) {
const run: Executable = {
command: serverPath,
command: context.asAbsolutePath('target/debug/digital-lsp.exe'),
// options: { cwd },
};