Closed iherman closed 1 year ago
@iherman I fixed it with
"files.associations": { "*.tmp": "html" },
in my settings config for vscode.
if (this.editor === null) {
this.editorTitle = request.title;
tmp.file({
postfix: '.html'
}, (err, path, fd, cleanupCallback) => {
console.log("File: ", path);
console.log("Filedescriptor: ", fd);
this.cleanupCallback = cleanupCallback;
also works.
This is now possible in the official extension https://github.com/jtokoph/ghosttext-vscode/issues/13
This is related to #1. At present, the file language is set to .txt by default (and, per #1, it is essentially impossible to change that, because the change would result in the change of the temporary file suffix). At the minimum, it should be possible to set the default file language via the settings.