提交 11f7b14e 编写于 作者: A Alex Dima

Fixes #2478: Only show "Tab moves focus" if editor is not read only

上级 4b642223
......@@ -395,9 +395,12 @@ function isCodeEditorWithTabFocusMode(e: BaseTextEditor): boolean {
if (editorWidget.getEditorType() === EditorType.IDiffEditor) {
editorWidget = (<IDiffEditor>editorWidget).getModifiedEditor();
}
if (editorWidget.getEditorType() !== EditorType.ICodeEditor) {
return false;
}
return (editorWidget.getEditorType() === EditorType.ICodeEditor &&
(<ICodeEditor>editorWidget).getConfiguration().tabFocusMode);
let editorConfig = (<ICodeEditor>editorWidget).getConfiguration();
return editorConfig.tabFocusMode && !editorConfig.readOnly;
}
function isWritableCodeEditor(e: BaseTextEditor): boolean {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册