We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a44f872 commit 199dcd8Copy full SHA for 199dcd8
1 file changed
src/extension.ts
@@ -57,6 +57,7 @@ export function activate(context: ExtensionContext){
57
// Subscribe to Commands here
58
context.subscriptions.push(vscode.commands.registerCommand('cashscript.compile', () => {
59
var filename = vscode.window.activeTextEditor.document.fileName;
60
+ if(!filename.endsWith('.cash')) return; // force filename to end with .cash
61
try{
62
const artifact = compileFile(filename);
63
const artifactJSON = JSON.stringify(artifact, null, 2);
0 commit comments