This commit is contained in:
Shibo Lyu 2021-03-02 04:21:21 +00:00
parent 916d5a74fc
commit ae20e1237d
7 changed files with 278 additions and 227 deletions

View file

@ -1,6 +1,6 @@
// https://github.com/apexskier/nova-json-language-server/blob/a64f704bee06071ad6fd82062a3656669d62b0a8/src/main.ts#L18-L32
export async function makeFileExecutable(file: string) {
return new Promise((resolve, reject) => {
return new Promise<void>((resolve, reject) => {
const process = new Process('/usr/bin/env', {
args: ['chmod', 'u+x', file],
})