Add null check of CurrentFileDocument in WindowOperations
This commit is contained in:
parent
3d8ebff9ba
commit
e9b999815f
|
|
@ -399,7 +399,9 @@ namespace VisualPascalABC
|
|||
SetFocusToEditor();
|
||||
}
|
||||
|
||||
CodeCompletion.CodeCompletionController.SetLanguage(CurrentCodeFileDocument.FileName);
|
||||
// В Linux версии это в начале работы
|
||||
if (CurrentCodeFileDocument != null)
|
||||
CodeCompletion.CodeCompletionController.SetLanguage(CurrentCodeFileDocument.FileName);
|
||||
|
||||
bool intellisenseAvailable = CodeCompletion.CodeCompletionController.IntellisenseAvailable();
|
||||
|
||||
|
|
|
|||
|
|
@ -411,7 +411,9 @@ namespace VisualPascalABC
|
|||
SetFocusToEditor();
|
||||
}
|
||||
|
||||
CodeCompletion.CodeCompletionController.SetLanguage(CurrentCodeFileDocument.FileName);
|
||||
// В Linux версии это в начале работы
|
||||
if (CurrentCodeFileDocument != null)
|
||||
CodeCompletion.CodeCompletionController.SetLanguage(CurrentCodeFileDocument.FileName);
|
||||
|
||||
bool intellisenseAvailable = CodeCompletion.CodeCompletionController.IntellisenseAvailable();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue