mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Fix #127903
This commit is contained in:
parent
cb4f7b5690
commit
ef55a57968
|
@ -116,16 +116,19 @@
|
|||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.monaco-hover .hover-contents a.code-link:hover,
|
||||
.monaco-hover .hover-contents a.code-link {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.monaco-hover .hover-contents a.code-link:before {
|
||||
content: '(';
|
||||
}
|
||||
|
||||
.monaco-hover .hover-contents a.code-link:after {
|
||||
content: ')';
|
||||
}
|
||||
|
||||
.monaco-hover .hover-contents a.code-link {
|
||||
color: inherit;
|
||||
}
|
||||
.monaco-hover .hover-contents a.code-link > span {
|
||||
text-decoration: underline;
|
||||
/** Hack to force underline to show **/
|
||||
|
|
|
@ -10,7 +10,7 @@ import { dispose, DisposableStore } from 'vs/base/common/lifecycle';
|
|||
import { IMarker, MarkerSeverity, IRelatedInformation } from 'vs/platform/markers/common/markers';
|
||||
import { Range } from 'vs/editor/common/core/range';
|
||||
import { ICodeEditor } from 'vs/editor/browser/editorBrowser';
|
||||
import { registerColor, oneOf, textLinkForeground, editorErrorForeground, editorErrorBorder, editorWarningForeground, editorWarningBorder, editorInfoForeground, editorInfoBorder } from 'vs/platform/theme/common/colorRegistry';
|
||||
import { registerColor, oneOf, textLinkForeground, editorErrorForeground, editorErrorBorder, editorWarningForeground, editorWarningBorder, editorInfoForeground, editorInfoBorder, textLinkActiveForeground } from 'vs/platform/theme/common/colorRegistry';
|
||||
import { IThemeService, IColorTheme, registerThemingParticipant } from 'vs/platform/theme/common/themeService';
|
||||
import { Color } from 'vs/base/common/color';
|
||||
import { ScrollableElement } from 'vs/base/browser/ui/scrollbar/scrollableElement';
|
||||
|
@ -403,7 +403,10 @@ export const editorMarkerNavigationBackground = registerColor('editorMarkerNavig
|
|||
registerThemingParticipant((theme, collector) => {
|
||||
const linkFg = theme.getColor(textLinkForeground);
|
||||
if (linkFg) {
|
||||
collector.addRule(`.monaco-editor .marker-widget a { color: ${linkFg}; }`);
|
||||
collector.addRule(`.monaco-editor .marker-widget a.code-link span:hover { color: ${linkFg}; }`);
|
||||
collector.addRule(`.monaco-editor .marker-widget a.code-link span { color: ${linkFg}; }`);
|
||||
}
|
||||
const activeLinkFg = theme.getColor(textLinkActiveForeground);
|
||||
if (activeLinkFg) {
|
||||
collector.addRule(`.monaco-editor .marker-widget a.code-link span:hover { color: ${activeLinkFg}; }`);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -53,12 +53,15 @@
|
|||
opacity: 0.6;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before {
|
||||
content: '(';
|
||||
}
|
||||
|
||||
.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after {
|
||||
content: ')';
|
||||
}
|
||||
|
||||
.monaco-editor .marker-widget .descriptioncontainer .message a.code-link > span {
|
||||
text-decoration: underline;
|
||||
/** Hack to force underline to show **/
|
||||
|
|
|
@ -25,6 +25,8 @@ import { EditorOption } from 'vs/editor/common/config/editorOptions';
|
|||
import { Progress } from 'vs/platform/progress/common/progress';
|
||||
import { ITextEditorOptions } from 'vs/platform/editor/common/editor';
|
||||
import { HoverAnchor, HoverAnchorType, IEditorHover, IEditorHoverParticipant, IEditorHoverStatusBar, IHoverPart } from 'vs/editor/contrib/hover/hoverTypes';
|
||||
import { registerThemingParticipant } from 'vs/platform/theme/common/themeService';
|
||||
import { textLinkActiveForeground, textLinkForeground } from 'vs/platform/theme/common/colorRegistry';
|
||||
|
||||
const $ = dom.$;
|
||||
|
||||
|
@ -244,3 +246,15 @@ export class MarkerHoverParticipant implements IEditorHoverParticipant<MarkerHov
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
registerThemingParticipant((theme, collector) => {
|
||||
const linkFg = theme.getColor(textLinkForeground);
|
||||
if (linkFg) {
|
||||
collector.addRule(`.monaco-hover .hover-contents a.code-link span { color: ${linkFg}; }`);
|
||||
}
|
||||
const activeLinkFg = theme.getColor(textLinkActiveForeground);
|
||||
if (activeLinkFg) {
|
||||
collector.addRule(`.monaco-hover .hover-contents a.code-link span:hover { color: ${activeLinkFg}; }`);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -13,12 +13,10 @@ import { ModelDecorationOptions } from 'vs/editor/common/model/textModel';
|
|||
import { TokenizationRegistry } from 'vs/editor/common/modes';
|
||||
import { ColorPickerWidget } from 'vs/editor/contrib/colorPicker/colorPickerWidget';
|
||||
import { HoverOperation, HoverStartMode, IHoverComputer } from 'vs/editor/contrib/hover/hoverOperation';
|
||||
import { registerThemingParticipant } from 'vs/platform/theme/common/themeService';
|
||||
import { coalesce, flatten } from 'vs/base/common/arrays';
|
||||
import { IModelDecoration } from 'vs/editor/common/model';
|
||||
import { ConfigurationChangedEvent, EditorOption } from 'vs/editor/common/config/editorOptions';
|
||||
import { Constants } from 'vs/base/common/uint';
|
||||
import { textLinkForeground } from 'vs/platform/theme/common/colorRegistry';
|
||||
import { IContextKey } from 'vs/platform/contextkey/common/contextkey';
|
||||
import { IKeyboardEvent } from 'vs/base/browser/keyboardEvent';
|
||||
import { Widget } from 'vs/base/browser/ui/widget';
|
||||
|
@ -577,10 +575,3 @@ export class ModesContentHoverWidget extends Widget implements IContentWidget, I
|
|||
className: 'hoverHighlight'
|
||||
});
|
||||
}
|
||||
|
||||
registerThemingParticipant((theme, collector) => {
|
||||
const linkFg = theme.getColor(textLinkForeground);
|
||||
if (linkFg) {
|
||||
collector.addRule(`.monaco-hover .hover-contents a.code-link span:hover { color: ${linkFg}; }`);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -44,7 +44,7 @@ import { applyCodeAction } from 'vs/editor/contrib/codeAction/codeActionCommands
|
|||
import { SeverityIcon } from 'vs/platform/severityIcon/common/severityIcon';
|
||||
import { CodeActionTriggerType } from 'vs/editor/common/modes';
|
||||
import { IOpenerService } from 'vs/platform/opener/common/opener';
|
||||
import { textLinkForeground } from 'vs/platform/theme/common/colorRegistry';
|
||||
import { textLinkActiveForeground, textLinkForeground } from 'vs/platform/theme/common/colorRegistry';
|
||||
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
|
||||
import { OS, OperatingSystem } from 'vs/base/common/platform';
|
||||
import { IFileService } from 'vs/platform/files/common/files';
|
||||
|
@ -909,7 +909,10 @@ export class ResourceDragAndDrop implements ITreeDragAndDrop<MarkerElement> {
|
|||
registerThemingParticipant((theme, collector) => {
|
||||
const linkFg = theme.getColor(textLinkForeground);
|
||||
if (linkFg) {
|
||||
collector.addRule(`.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .details-container a.code-link .marker-code > span:hover { color: ${linkFg}; }`);
|
||||
collector.addRule(`.markers-panel .markers-panel-container .tree-container .monaco-list:focus .monaco-tl-contents .details-container a.code-link .marker-code > span:hover { color: inherit; }`);
|
||||
collector.addRule(`.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .details-container a.code-link .marker-code > span { color: ${linkFg}; }`);
|
||||
}
|
||||
const activeLinkFg = theme.getColor(textLinkActiveForeground);
|
||||
if (activeLinkFg) {
|
||||
collector.addRule(`.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .details-container a.code-link .marker-code > span:hover { color: ${activeLinkFg}; }`);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue