File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 112
112
"mesonbuild.buildFolder" : {
113
113
"type" : " string" ,
114
114
"default" : " builddir" ,
115
- "description" : " Specify in which folder Meson build configure and build the project."
115
+ "description" : " Specify in which folder Meson build configure and build the project. Changing this value will reload the VS Code window. "
116
116
},
117
117
"mesonbuild.configureOptions" : {
118
118
"type" : " array" ,
329
329
"typescript" : " ^4.4.4"
330
330
},
331
331
"dependencies" : {}
332
- }
332
+ }
Original file line number Diff line number Diff line change @@ -94,10 +94,13 @@ export async function activate(ctx: vscode.ExtensionContext) {
94
94
ctx . subscriptions . push ( watcher ) ;
95
95
await genEnvFile ( buildDir ) ;
96
96
97
- // Refresh if the extension configuration is changed. builddir changes won't be reflected, however.
97
+ // Refresh if the extension configuration is changed.
98
98
ctx . subscriptions . push (
99
99
vscode . workspace . onDidChangeConfiguration ( ( e : vscode . ConfigurationChangeEvent ) => {
100
- if ( e . affectsConfiguration ( "mesonbuild" ) ) {
100
+ if ( e . affectsConfiguration ( "mesonbuild.buildFolder" ) ) {
101
+ // buildFolder is rather ingrained right now, so changes there require a full reload.
102
+ vscode . commands . executeCommand ( "workbench.action.reloadWindow" ) ;
103
+ } else if ( e . affectsConfiguration ( "mesonbuild" ) ) {
101
104
changeHandler ( ) ;
102
105
}
103
106
} )
You can’t perform that action at this time.
0 commit comments