Skip to content

Commit 1c54992

Browse files
committed
Make information message modal
1 parent 0dd4cfb commit 1c54992

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/utils/editor.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ export class Editor {
8282
vscode.window
8383
.showInformationMessage(
8484
[
85-
"The program on file differs from the one on the Source Academy servers.",
86-
"Which program should we use? (Note that picking one will overwrite the other)",
87-
].join(' '),
88-
"Local", "Server")
85+
"The local file differs from the version on the Source Academy servers.",
86+
"Discard the local file and use the one on the server?",
87+
].join(' '), {modal: true},
88+
"Yes")
8989
.then(async answer => {
9090
// By default the code displayed is the local one
91-
if (answer === "Server") {
91+
if (answer === "Yes") {
9292
self.log('EXTENSION: Saving program from server to file')
9393
await vscode.workspace.fs.writeFile(
9494
uri,

0 commit comments

Comments
 (0)