From 6c9c523dcb7b8dc41a88fe4bc4f9674cb7982156 Mon Sep 17 00:00:00 2001 From: Daniel Santos Date: Thu, 2 Feb 2023 12:06:02 -0600 Subject: [PATCH] Print gorename command with go.logging.level >= verbose Fixes golang/vscode-go#2634, or at least it might. I don't know how to build this project, don't know typescript, etc. --- src/language/legacy/goRename.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/language/legacy/goRename.ts b/src/language/legacy/goRename.ts index 5a864c28ce..de574555c3 100644 --- a/src/language/legacy/goRename.ts +++ b/src/language/legacy/goRename.ts @@ -15,6 +15,7 @@ import { promptForMissingTool } from '../../goInstallTools'; import { outputChannel } from '../../goStatus'; import { byteOffsetAt, canonicalizeGOPATHPrefix, getBinPath } from '../../util'; import { killProcessTree } from '../../utils/processUtils'; +import { logVerbose } from '../../goLogging'; export class GoRenameProvider implements vscode.RenameProvider { public provideRenameEdits( @@ -57,6 +58,7 @@ export class GoRenameProvider implements vscode.RenameProvider { token.onCancellationRequested(() => killProcessTree(p)); } + logVerbose(`$ ${gorename} ${gorenameArgs} (cwd: ${opts.cwd})`); p = cp.execFile(gorename, gorenameArgs, { env }, (err, stdout, stderr) => { try { if (err && (err).code === 'ENOENT') {