Skip to content

Commit 6c9c523

Browse files
committed
Print gorename command with go.logging.level >= verbose
Fixes golang#2634, or at least it might. I don't know how to build this project, don't know typescript, etc.
1 parent 203717d commit 6c9c523

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/language/legacy/goRename.ts

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { promptForMissingTool } from '../../goInstallTools';
1515
import { outputChannel } from '../../goStatus';
1616
import { byteOffsetAt, canonicalizeGOPATHPrefix, getBinPath } from '../../util';
1717
import { killProcessTree } from '../../utils/processUtils';
18+
import { logVerbose } from '../../goLogging';
1819

1920
export class GoRenameProvider implements vscode.RenameProvider {
2021
public provideRenameEdits(
@@ -57,6 +58,7 @@ export class GoRenameProvider implements vscode.RenameProvider {
5758
token.onCancellationRequested(() => killProcessTree(p));
5859
}
5960

61+
logVerbose(`$ ${gorename} ${gorenameArgs} (cwd: ${opts.cwd})`);
6062
p = cp.execFile(gorename, gorenameArgs, { env }, (err, stdout, stderr) => {
6163
try {
6264
if (err && (<any>err).code === 'ENOENT') {

0 commit comments

Comments
 (0)