Skip to content

Commit bb24034

Browse files
committed
fix: change lockFile position
#26
1 parent 3599dca commit bb24034

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
"onStartupFinished"
3434
],
3535
"extensionKind": [
36-
"ui",
37-
"workspace"
36+
"ui"
3837
],
3938
"contributes": {
4039
"commands": [

src/utils.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
import type { AnyFunction } from '@subframe7536/type-utils'
22
import fs from 'node:fs'
33
import os from 'node:os'
4-
import path from 'node:path'
4+
import path from 'node:path/posix'
55
import Url from 'node:url'
66
import { readFileSync, writeFileSync } from 'atomically'
77
import { commands, window } from 'vscode'
88
import { config } from './config'
99
import * as Meta from './generated/meta'
1010
import { log } from './logger'
11-
import { baseDir } from './path'
1211
import { restartApp } from './restart'
1312

1413
export const fileProtocol = 'file://'
1514
export const httpsProtocol = 'https://'
1615

17-
const lockFile = path.join(baseDir, `__${Meta.name}__.lock`)
16+
const lockFile = path.join(os.tmpdir(), `__${Meta.name}__.lock`)
1817

1918
let last = hasElectronWindowOptions()
2019
function hasElectronWindowOptions(): string {

0 commit comments

Comments
 (0)