Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[statusbar] add misc statusbar tooltips #6770

Merged
merged 1 commit into from
Dec 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions packages/editor/src/browser/editor-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ export class EditorContribution implements FrontendApplicationContribution, Comm
text: languageName,
alignment: StatusBarAlignment.RIGHT,
priority: 1,
command: EditorCommands.CHANGE_LANGUAGE.id
command: EditorCommands.CHANGE_LANGUAGE.id,
tooltip: 'Select Language Mode'
});
}

Expand All @@ -125,7 +126,8 @@ export class EditorContribution implements FrontendApplicationContribution, Comm
text: SUPPORTED_ENCODINGS[editor.getEncoding()].labelShort,
alignment: StatusBarAlignment.RIGHT,
priority: 10,
command: EditorCommands.CHANGE_ENCODING.id
command: EditorCommands.CHANGE_ENCODING.id,
tooltip: 'Select Encoding'
});
}

Expand All @@ -138,7 +140,9 @@ export class EditorContribution implements FrontendApplicationContribution, Comm
this.statusBar.setElement('editor-status-cursor-position', {
text: `Ln ${cursor.line + 1}, Col ${editor.getVisibleColumn(cursor)}`,
alignment: StatusBarAlignment.RIGHT,
priority: 100
priority: 100,
tooltip: 'Go To Line',
command: 'editor.action.gotoLine'
});
}

Expand Down
6 changes: 4 additions & 2 deletions packages/monaco/src/browser/monaco-status-bar-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ export class MonacoStatusBarContribution implements FrontendApplicationContribut
text: `${useSpaceOrTab}: ${tabSize}`,
alignment: StatusBarAlignment.RIGHT,
priority: 10,
command: EditorCommands.CONFIG_INDENTATION.id
command: EditorCommands.CONFIG_INDENTATION.id,
tooltip: 'Select Indentation'
});
}
}
Expand All @@ -89,7 +90,8 @@ export class MonacoStatusBarContribution implements FrontendApplicationContribut
text: `${text}`,
alignment: StatusBarAlignment.RIGHT,
priority: 11,
command: EditorCommands.CONFIG_EOL.id
command: EditorCommands.CONFIG_EOL.id,
tooltip: 'Select End Of Line Sequence'
});
}
}
Expand Down