Skip to content

Commit

Permalink
Update @clangd/install to 0.1.18 (#652)
Browse files Browse the repository at this point in the history
* update @clangd/install to 0.1.18

* format

* tidy
  • Loading branch information
jihuayu authored Jan 29, 2024
1 parent a738e7a commit e96436c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"devDependencies": {
"@biomejs/biome": "^1.5.0",
"@clangd/install": "^0.1.17",
"@clangd/install": "^0.1.18",
"@types/node": "16",
"coc.nvim": "^0.0.83-next.18",
"esbuild": "^0.19.10",
Expand Down
8 changes: 8 additions & 0 deletions src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ class UI {
set clangdPath(p: string) {
this.config.update('path', p.replace(homedir(), '~'), /*isUser=*/ true);
}

localize(message: string, ...args: Array<string | number | boolean>) {
const ret = message;
for (const i in args) {
ret.replace(`{${i}}`, args[i].toString());
}
return ret;
}
}

// Returns the clangd path to use, or null if clangd is not installed.
Expand Down

0 comments on commit e96436c

Please sign in to comment.