Skip to content

Commit

Permalink
Prevent CodeLens CSS selector name from being invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
x24git committed Apr 11, 2020
1 parent b02e2ef commit 64bc3d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/editor/contrib/codelens/codelensController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class CodeLensContribution implements IEditorContribution {
}));
this._onModelChange();

this._styleClassName = hash(this._editor.getId()).toString(16);
this._styleClassName = '_' + hash(this._editor.getId()).toString(16);
this._styleElement = dom.createStyleSheet(
dom.isInShadowDOM(this._editor.getContainerDomNode())
? this._editor.getContainerDomNode()
Expand Down

0 comments on commit 64bc3d7

Please sign in to comment.