Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const { commands, workspace, window, languages, Range, Position } = vscode;
const fs = require("fs");
const os = require("os");
const cp = require("child_process");
const path = require("path");
const TmpDir = os.tmpdir();

class PHPCBF {
Expand Down Expand Up @@ -85,7 +86,8 @@ class PHPCBF {
let phpcbfError = false;
let fileName =
TmpDir +
"/temp-" +
path.sep +
"temp-" +
Math.random()
.toString(36)
.replace(/[^a-z]+/g, "")
Expand Down