feat(servers): split vscode-html-language-server and add css, json, bash, sql servers
- Split vscode-html-language-server into separate servers for HTML, CSS, and JSON with proper language IDs and file extensions - Added bash-language-server for shell scripts (.sh, .bash) - Added sqls for SQL files - Added timeout wrapper to auto-check diagnostics to prevent blocking pi
This commit is contained in:
34
server.ts
34
server.ts
@@ -100,12 +100,44 @@ export const servers: ServerConfig[] = [
|
||||
},
|
||||
{
|
||||
id: "vscode-html-language-server",
|
||||
match: ["html", "css", "jsonl", "jsonc", "json"],
|
||||
match: ["html"],
|
||||
command: "vscode-html-language-server",
|
||||
args: ["--stdio"],
|
||||
rootMarkers: ["package.json"],
|
||||
languageId: "html",
|
||||
},
|
||||
{
|
||||
id: "vscode-css-language-server",
|
||||
match: ["css", "scss", "less"],
|
||||
command: "vscode-css-language-server",
|
||||
args: ["--stdio"],
|
||||
rootMarkers: ["package.json"],
|
||||
languageId: "css",
|
||||
},
|
||||
{
|
||||
id: "vscode-json-language-server",
|
||||
match: ["json", "jsonc", "jsonl"],
|
||||
command: "vscode-json-language-server",
|
||||
args: ["--stdio"],
|
||||
rootMarkers: ["package.json"],
|
||||
languageId: "json",
|
||||
},
|
||||
{
|
||||
id: "bash-language-server",
|
||||
match: ["sh", "bash"],
|
||||
command: "bash-language-server",
|
||||
args: ["start"],
|
||||
rootMarkers: [".git"],
|
||||
languageId: "shellscript",
|
||||
},
|
||||
{
|
||||
id: "sqls",
|
||||
match: ["sql"],
|
||||
command: "sqls",
|
||||
args: [],
|
||||
rootMarkers: [".git"],
|
||||
languageId: "sql",
|
||||
},
|
||||
{
|
||||
id: "nil",
|
||||
match: ["nix"],
|
||||
|
||||
Reference in New Issue
Block a user