Skip to content

Commit

Permalink
fix: open hardhat.config fails on vscode web (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
antico5 committed Sep 20, 2022
1 parent daa19c2 commit b3f404c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/languageitems/hardhatProject.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { languages, LanguageStatusSeverity } from "vscode";
import { languages, LanguageStatusSeverity, Uri } from "vscode";
import { RequestType } from "vscode-languageclient/node";
import { ExtensionState } from "../types";
import { ensureFilePrefix } from "../utils/files";
Expand Down Expand Up @@ -62,7 +62,7 @@ export async function updateHardhatProjectLanguageItem(
extensionState.hardhatConfigStatusItem.command = {
title: "Open config file",
command: "vscode.open",
arguments: [ensureFilePrefix(response.configPath)],
arguments: [Uri.file(response.configPath)],
};

return;
Expand Down

0 comments on commit b3f404c

Please sign in to comment.