Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
utf8 encoding on stdout to handle multibyte char Fixes #1469
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Jan 22, 2018
1 parent ceaf023 commit 5246a84
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Binary file modified Go-latest.vsix
Binary file not shown.
1 change: 1 addition & 0 deletions src/goFormat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export class GoDocumentFormattingEditProvider implements vscode.DocumentFormatti

// Use spawn instead of exec to avoid maxBufferExceeded error
const p = cp.spawn(formatCommandBinPath, formatFlags, { env });
p.stdout.setEncoding('utf8');
p.stdout.on('data', data => stdout += data);
p.stderr.on('data', data => stderr += data);
p.on('error', err => {
Expand Down
2 changes: 1 addition & 1 deletion src/goMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function activate(ctx: vscode.ExtensionContext): void {
"data": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
}
*/
sendTelemetryEvent('beta-testing', { version: '0.6.74', date: '01/12/2018' });
sendTelemetryEvent('beta-testing', { version: '0.6.74', date: '01/21/2018' });

let useLangServer = vscode.workspace.getConfiguration('go')['useLanguageServer'];
let langServerFlags: string[] = vscode.workspace.getConfiguration('go')['languageServerFlags'] || [];
Expand Down

0 comments on commit 5246a84

Please sign in to comment.