Skip to content

Commit

Permalink
Print gorename command with go.logging.level >= verbose
Browse files Browse the repository at this point in the history
Fixes golang#2634, or at least it might. I don't know how to
build this project, don't know typescript, etc.
  • Loading branch information
daniel-santos committed Feb 2, 2023
1 parent 203717d commit 6c9c523
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/language/legacy/goRename.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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 && (<any>err).code === 'ENOENT') {
Expand Down

0 comments on commit 6c9c523

Please sign in to comment.