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

Commit

Permalink
Fix cursor jumping issue #1346
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Nov 19, 2017
1 parent adbca1d commit 7d591f1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Binary file modified Go-latest.vsix
Binary file not shown.
3 changes: 2 additions & 1 deletion src/diffUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ function parseUniDiffs(diffOutput: jsDiff.IUniDiff[]): FilePatch[] {
if (edit == null) {
edit = new Edit(EditTypes.EDIT_INSERT, new Position(startLine - 1, 0));
} else if (edit.action === EditTypes.EDIT_DELETE) {
edit.action = EditTypes.EDIT_REPLACE;
edits.push(edit);
edit = new Edit(EditTypes.EDIT_INSERT, new Position(startLine - 1, 0));
}
edit.text += line.substr(1) + '\n';
break;
Expand Down
4 changes: 2 additions & 2 deletions src/goFormat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export class Formatter {
return reject(missingToolMsg + formatTool);
}
if (err) {
console.log(err);
return reject('Cannot format due to syntax errors.');
console.log(err.message || stderr);
return reject('Check the console in dev tools to find errors when formatting.');
};

let textEdits: vscode.TextEdit[] = [];
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.68', date: '11/16/2017' });
sendTelemetryEvent('beta-testing', { version: '0.6.68', date: '11/19/2017' });

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

0 comments on commit 7d591f1

Please sign in to comment.