Initialize prettier_server.js wrapper along with default prettier
This commit is contained in:
parent
010bb73ac2
commit
dca93fb177
7 changed files with 7 additions and 39 deletions
1
crates/prettier/prettier_server/.gitignore
vendored
1
crates/prettier/prettier_server/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
node_modules/
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"languages": {
|
||||
"JavaScript": {
|
||||
"tab_size": 4
|
||||
}
|
||||
}
|
||||
}
|
12
crates/prettier/prettier_server/package-lock.json
generated
12
crates/prettier/prettier_server/package-lock.json
generated
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
"name": "prettier_server",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "prettier_server",
|
||||
"version": "1.0.0"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
"name": "prettier_server",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "src/index.js",
|
||||
"scripts": {
|
||||
"start": "node src/index.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "Zed Industries",
|
||||
"dev-dependencies": {
|
||||
"prettier": "^3.0"
|
||||
}
|
||||
}
|
|
@ -18,6 +18,8 @@ pub struct LocateStart {
|
|||
pub starting_path: Arc<Path>,
|
||||
}
|
||||
|
||||
pub const PRETTIER_SERVER_JS: &str = include_str!("./prettier_server.js");
|
||||
|
||||
impl Prettier {
|
||||
// This was taken from the prettier-vscode extension.
|
||||
pub const CONFIG_FILE_NAMES: &'static [&'static str] = &[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue