You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Emmet: saving a file outside the current directory in the case of using Encode/Decode command #8569
Denis Malinochkin (@mrmlnc) a question about the implementation of the encode/decode support. Usually an emmet feature forwards to the corresponding emmet action. Why isn't this the case for encode/decode and there is quite some code in the action? My concern is that this code will need to be adapted when emmet evolves.
Emmet uses the synchronous API for save and does not know how to save files in the directory (save in fileAccessor.ts) 2e0f883#commitcomment-18085303
Emmet throws errors when working with paths that don't exist.
If it's a question of time, let's remove (temporarily: July 2016) support for Encode\Decode action. Other editors also implement the API for working with the file system.
Erich Gamma (@egamma), tomorrow (before lunch in Moscow 13:00 GMT+3) i can provide the code with comments (on good English language) that describe the what, where and why.
Denis Malinochkin (@mrmlnc) we are finishing the June update today, so I will remove the encode/decode action for June, then we have enough time to clean things up in July. This also means no stress for you with the update.
Emmet uses the synchronous API for save and does not know how to save files in the directory
This fully explains the problem, thank you. Then we should revisit how to implement this emmet action. The current implementation also has the exception issue #8324.
Activity
egamma commentedon Jun 30, 2016
Denis Malinochkin (@mrmlnc) a question about the implementation of the encode/decode support. Usually an emmet feature forwards to the corresponding emmet action. Why isn't this the case for encode/decode and there is quite some code in the action? My concern is that this code will need to be adapted when emmet evolves.
mrmlnc commentedon Jun 30, 2016
Erich Gamma (@egamma), problems:
saveand does not know how to save files in the directory (saveinfileAccessor.ts) 2e0f883#commitcomment-18085303If it's a question of time, let's remove (temporarily: July 2016) support for Encode\Decode action. Other editors also implement the API for working with the file system.
mrmlnc commentedon Jun 30, 2016
Erich Gamma (@egamma), tomorrow (before lunch in Moscow 13:00 GMT+3) i can provide the code with comments (on good English language) that describe the what, where and why.
egamma commentedon Jul 1, 2016
Denis Malinochkin (@mrmlnc) we are finishing the June update today, so I will remove the encode/decode action for June, then we have enough time to clean things up in July. This also means no stress for you with the update.
egamma commentedon Jul 1, 2016
Denis Malinochkin (@mrmlnc)
This fully explains the problem, thank you. Then we should revisit how to implement this emmet action. The current implementation also has the exception issue #8324.
mrmlnc commentedon Jul 1, 2016
Erich Gamma (@egamma),
LGTM. I think this is the right thing to do. Please don't forget to remove this condition:
https://github.com/Microsoft/vscode/blob/2e0f883bb0ae15c1172b3092791059ab3d96e41f/src/vs/workbench/parts/emmet/node/emmetActions.ts#L46
Description: #8542 (comment)
mrmlnc commentedon Jul 1, 2016
Erich Gamma (@egamma) soon I will prepare PR with a detailed explanation and comments.
egamma commentedon Jul 1, 2016
Done thanks for the reminder to remove the condition, good catch 🌹
egamma commentedon Apr 20, 2017
I'm closing this one, we have no plans to add these actions.