Skip to content
Open
Changes from 1 commit
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 stylua-vscode/src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as vscode from "vscode";
import * as path from "path";
import { formatCode, checkIgnored } from "./stylua";
import { GitHub } from "./github";
import { StyluaDownloader } from "./download";
Expand Down Expand Up @@ -84,7 +85,8 @@ export async function activate(context: vscode.ExtensionContext) {
const currentWorkspace = vscode.workspace.getWorkspaceFolder(
document.uri
);
const cwd = currentWorkspace?.uri?.fsPath;
// const cwd = currentWorkspace?.uri?.fsPath;
const cwd = path.dirname(document.uri.fsPath);

if (await checkIgnored(document.uri, currentWorkspace?.uri)) {
return [];
Expand Down