File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ What do you want to do?`,
140
140
return Promise . reject ( ) ;
141
141
} ) ;
142
142
} else {
143
- if ( error . errorText && error . errorText !== "" ) {
143
+ if ( error && error . errorText && error . errorText !== "" ) {
144
144
outputChannel . appendLine ( "\n" + error . errorText ) ;
145
145
vscode . window
146
146
. showErrorMessage (
Original file line number Diff line number Diff line change @@ -1095,7 +1095,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
1095
1095
return importAndCompile ( false , file , config ( "compileOnSave" ) ) ;
1096
1096
}
1097
1097
} else if ( file . uri . scheme === "file" ) {
1098
- if ( isImportableLocalFile ( file ) ) {
1098
+ if ( isImportableLocalFile ( file ) && new AtelierAPI ( file . uri ) . active ) {
1099
1099
// This local file is part of a CSP application
1100
1100
// or matches our export settings, so import it on save
1101
1101
return importFileOrFolder ( file . uri , true ) ;
You can’t perform that action at this time.
0 commit comments