File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
packages/app/src/app/store/modules/editor Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,9 @@ export const saveCode = [
210210 ensureOwnedEditable ,
211211 when ( state `preferences.settings.experimentVSCode` ) ,
212212 {
213- true : [ ] ,
213+ true : [
214+ changeCode , // Call this to send the live changes before saving
215+ ] ,
214216 false : [
215217 when ( state `preferences.settings.prettifyOnSaveEnabled` ) ,
216218 {
@@ -269,23 +271,17 @@ export const addNpmDependency = [
269271 false : [ actions . getLatestVersion ] ,
270272 } ,
271273 actions . addNpmDependencyToPackage ,
272- changeCode ,
273274 saveCode ,
274275] ;
275276
276277export const removeNpmDependency = [
277278 track ( 'Remove NPM Dependency' , { } ) ,
278279 ensureOwnedEditable ,
279280 actions . removeNpmDependencyFromPackage ,
280- changeCode ,
281281 saveCode ,
282282] ;
283283
284- export const updateSandboxPackage = [
285- actions . updateSandboxPackage ,
286- changeCode ,
287- saveCode ,
288- ] ;
284+ export const updateSandboxPackage = [ actions . updateSandboxPackage , saveCode ] ;
289285
290286export const handlePreviewAction = [
291287 equals ( props `action.action` ) ,
You can’t perform that action at this time.
0 commit comments