File tree 4 files changed +13
-13
lines changed 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 290
290
},
291
291
"scripts" : {
292
292
"bundle-nxp" : " npm run bundle-nxp-download && npm run bundle-nxp-extract" ,
293
- "bundle-nxp-download" : " mkdirp deps/nxp && cleandir deps/nxp && nwget \" https://github.com/neo-project/neo-express/releases/download/1.2.85-insiders /Neo.Express3.1.2.85-insiders .nupkg\" -O deps/nxp/nxp.nupkg" ,
293
+ "bundle-nxp-download" : " mkdirp deps/nxp && cleandir deps/nxp && nwget \" https://github.com/neo-project/neo-express/releases/download/2.0.9-preview /Neo.Express.2.0.9-preview .nupkg\" -O deps/nxp/nxp.nupkg" ,
294
294
"bundle-nxp-extract" : " cd deps/nxp && extract-zip nxp.nupkg" ,
295
295
"compile" : " npm run compile-ext && npm run compile-panel" ,
296
296
"compile-ext" : " webpack --config src/extension/webpack.config.js --mode development" ,
Original file line number Diff line number Diff line change @@ -142,14 +142,11 @@ export default class NeoExpressCommands {
142
142
try {
143
143
await fs . promises . mkdir ( checkpointsFolder ) ;
144
144
} catch { }
145
- let filename = posixPath ( checkpointsFolder , "checkpoint-1.nxp3-checkpoint " ) ;
145
+ let filename = posixPath ( checkpointsFolder , "checkpoint-1" ) ;
146
146
let i = 1 ;
147
- while ( fs . existsSync ( filename ) ) {
147
+ while ( fs . existsSync ( ` ${ filename } .neoxp-checkpoint` ) ) {
148
148
i ++ ;
149
- filename = posixPath (
150
- checkpointsFolder ,
151
- `checkpoint-${ i } .nxp3-checkpoint`
152
- ) ;
149
+ filename = posixPath ( checkpointsFolder , `checkpoint-${ i } ` ) ;
153
150
}
154
151
const output = await neoExpress . run (
155
152
"checkpoint" ,
@@ -241,6 +238,9 @@ export default class NeoExpressCommands {
241
238
"Select a checkpoint to restore" ,
242
239
...checkpointDetector . checkpointFiles
243
240
) ;
241
+ if ( ! filename ) {
242
+ return ;
243
+ }
244
244
const confirmed = await IoHelpers . yesNo (
245
245
`Are you sure that you want to restore "${ identifier . configPath } " to the checkpoint "${ filename } "?`
246
246
) ;
Original file line number Diff line number Diff line change 1
1
import DetectorBase from "./detectorBase" ;
2
2
3
- const SEARCH_PATTERN = "**/*.nxp3 -checkpoint" ;
3
+ const SEARCH_PATTERN = "**/*.neoxp -checkpoint" ;
4
4
5
5
export default class CheckpointDetector extends DetectorBase {
6
6
get checkpointFiles ( ) {
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ export default class NeoExpress {
30
30
"deps" ,
31
31
"nxp" ,
32
32
"tools" ,
33
- "netcoreapp3.1 " ,
33
+ "net5.0 " ,
34
34
"any" ,
35
- "nxp3 .dll"
35
+ "neoxp .dll"
36
36
) ;
37
37
this . dotnetPath = which . sync ( "dotnet" , { nothrow : true } ) || "dotnet" ;
38
38
this . runLock = false ;
@@ -66,7 +66,7 @@ export default class NeoExpress {
66
66
if ( duration > 1000 ) {
67
67
Log . log (
68
68
LOG_PREFIX ,
69
- `\`nxp3 ${ command } ${ options . join ( " " ) } \` took ${ duration } ms`
69
+ `\`neoexp ${ command } ${ options . join ( " " ) } \` took ${ duration } ms`
70
70
) ;
71
71
}
72
72
return result ;
@@ -122,14 +122,14 @@ export default class NeoExpress {
122
122
ok =
123
123
parseInt (
124
124
childProcess . execFileSync ( this . dotnetPath , [ "--version" ] ) . toString ( )
125
- ) >= 3 ;
125
+ ) >= 5 ;
126
126
} catch ( e ) {
127
127
Log . error ( LOG_PREFIX , "checkForDotNet error:" , e . message ) ;
128
128
ok = false ;
129
129
}
130
130
if ( ! ok ) {
131
131
const response = await vscode . window . showErrorMessage (
132
- ".NET Core 3 or higher is required to use this functionality." ,
132
+ ".NET 5 or higher is required to use this functionality." ,
133
133
"Dismiss" ,
134
134
"More info"
135
135
) ;
You can’t perform that action at this time.
0 commit comments