Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions squawk-vscode/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ export default tseslint.config(
rules: {
"no-console": "error",
"quotes": ["error", "double", { "avoidEscape": true }],
"no-restricted-syntax": [
"error",
{
"selector": "MemberExpression[property.name='path']",
"message": "Use .fsPath instead of .path"
}
],
"@typescript-eslint/no-unused-vars": [
"error",
{
Expand Down
8 changes: 4 additions & 4 deletions squawk-vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export async function activate(context: vscode.ExtensionContext) {
vscode.commands.registerCommand("squawk.serverVersion", () => {
try {
const serverPath = getSquawkPath(context)
const stdout = execFileSync(serverPath.path, ["--version"], {
const stdout = execFileSync(serverPath.fsPath, ["--version"], {
encoding: "utf8",
})
const version = stdout.trim()
Expand Down Expand Up @@ -252,15 +252,15 @@ async function startServer(context: vscode.ExtensionContext) {
() => false,
)
if (!hasBinary) {
const errorMsg = `Squawk binary not found at: ${squawkPath.path}`
const errorMsg = `Squawk binary not found at: ${squawkPath.fsPath}`
log.error(`ERROR: ${errorMsg}`)
vscode.window.showErrorMessage(errorMsg)
return
}
log.info(`Found Squawk binary at: ${squawkPath.path}`)
log.info(`Found Squawk binary at: ${squawkPath.fsPath}`)

const serverExecutable: Executable = {
command: squawkPath.path,
command: squawkPath.fsPath,
args: ["server", "--verbose"],
}
const serverOptions: ServerOptions = serverExecutable
Expand Down
Loading