This repository was archived by the owner on May 9, 2022. It is now read-only.
File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public void windowGainedFocus(WindowEvent e) {
63
63
public void windowLostFocus (WindowEvent e ) {}
64
64
65
65
private void applySettings (final VirtualFile file ) {
66
- if (file != null ) {
66
+ if (file != null && file . isInLocalFileSystem () ) {
67
67
// Always drop any current temporary settings so that the defaults will be applied if
68
68
// this is a non-editorconfig-managed file
69
69
codeStyleSettingsManager .dropTemporarySettings ();
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ public void beforeDocumentSaving(@NotNull Document document) {
51
51
}
52
52
53
53
private void applySettings (VirtualFile file ) {
54
+ if (!file .isInLocalFileSystem ()) return ;
54
55
// Prevent "setEncoding" calling "saveAll" from causing an endless loop
55
56
isApplyingSettings = true ;
56
57
final String filePath = file .getCanonicalPath ();
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public List<OutPair> getOutPairs (String filePath) {
32
32
return outPairs ;
33
33
}
34
34
catch (EditorConfigException error ) {
35
- LOG .error (error . getStackTrace () );
35
+ LOG .error (error );
36
36
return new ArrayList <OutPair >();
37
37
}
38
38
}
You can’t perform that action at this time.
0 commit comments