Skip to content

Commit 81e29e7

Browse files
Apply suggestions from code review
Co-authored-by: John Murray <[email protected]>
1 parent 95b8136 commit 81e29e7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/commands/compile.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ async function importFile(file: CurrentFile, ignoreConflict?: boolean): Promise<
7474
if (error.statusCode == 409) {
7575
return vscode.window
7676
.showErrorMessage(
77-
`Failed to import '${file.name}': The content of the file on the server is newer.
78-
Please compare your version with the file contents or overwrite the content of the file with your changes.`,
77+
`Failed to import '${file.name}': The version of the file on the server is newer.
78+
What do you want to do?`,
7979
"Compare",
80-
"Overwrite",
80+
"Overwrite on Server",
8181
"Pull Server Changes",
8282
"Cancel"
8383
)
@@ -92,18 +92,18 @@ Please compare your version with the file contents or overwrite the content of t
9292
scheme: OBJECTSCRIPT_FILE_SCHEMA,
9393
authority: file.workspaceFolder,
9494
}),
95-
`Local • ${file.fileName}Remote${file.name}`
95+
`Local • ${file.fileName}Server${file.name}`
9696
)
9797
.then(() => Promise.reject());
98-
case "Overwrite":
98+
case "Overwrite on Server":
9999
return importFile(file, true);
100100
case "Pull Server Changes":
101101
outputChannel.appendLine(`${file.name}: Loading changes from server`);
102102
outputChannel.show(true);
103103
loadChanges([file]);
104104
return Promise.reject();
105105
case "Cancel":
106-
outputChannel.appendLine(`${file.name}: Import and Compile canceled by user`);
106+
outputChannel.appendLine(`${file.name}: Import and Compile canceled by user`);
107107
outputChannel.show(true);
108108
return Promise.reject();
109109
}

0 commit comments

Comments
 (0)