Skip to content

Commit

Permalink
Merge #221
Browse files Browse the repository at this point in the history
221: Fix on enter r=matklad a=aochagavia

Fixes #219

Co-authored-by: Adolfo Ochagavía <[email protected]>
  • Loading branch information
bors[bot] and aochagavia committed Nov 9, 2018
2 parents 8475c96 + b98b1d0 commit 5a9150d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editors/code/src/commands/apply_source_change.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ interface FileSystemEdit {

export interface SourceChange {
label: string;
SourceFileNodeEdits: lc.TextDocumentEdit[];
sourceFileEdits: lc.TextDocumentEdit[];
fileSystemEdits: FileSystemEdit[];
cursorPosition?: lc.TextDocumentPositionParams;
}

export async function handle(change: SourceChange) {
const wsEdit = new vscode.WorkspaceEdit();
for (const sourceEdit of change.SourceFileNodeEdits) {
for (const sourceEdit of change.sourceFileEdits) {
const uri = Server.client.protocol2CodeConverter.asUri(
sourceEdit.textDocument.uri
);
Expand Down

0 comments on commit 5a9150d

Please sign in to comment.