File tree 2 files changed +17
-1
lines changed
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 12
12
13
13
## master
14
14
15
+ #### :rocket : New Feature
16
+
17
+ - If interface file exists, ask if it should be overwritten. https://github.com/rescript-lang/rescript-vscode/pull/865
18
+
15
19
#### :bug : Bug Fix
16
20
17
21
- Treat ` result ` type as a proper built in type. https://github.com/rescript-lang/rescript-vscode/pull/860
Original file line number Diff line number Diff line change @@ -21,7 +21,19 @@ export const createInterface = (client: LanguageClient) => {
21
21
}
22
22
23
23
if ( fs . existsSync ( editor . document . uri . fsPath + "i" ) ) {
24
- return window . showInformationMessage ( "Interface file already exists" ) ;
24
+ return window
25
+ . showInformationMessage (
26
+ "Interface file already exists. Do you want to overwrite it?" ,
27
+ "Yes" ,
28
+ "No"
29
+ )
30
+ . then ( ( answer ) => {
31
+ if ( answer === "Yes" ) {
32
+ client . sendRequest ( createInterfaceRequest , {
33
+ uri : editor . document . uri . toString ( ) ,
34
+ } ) ;
35
+ }
36
+ } ) ;
25
37
}
26
38
27
39
client . sendRequest ( createInterfaceRequest , {
You can’t perform that action at this time.
0 commit comments