Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Provide Quick Docs for SCSS. #5069

Merged
merged 2 commits into from
Sep 5, 2013
Merged
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
3 changes: 2 additions & 1 deletion src/extensions/default/WebPlatformDocs/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ define(function (require, exports, module) {
* @return {?$.Promise} resolved with an InlineWidget; null if we're not going to provide anything
*/
function inlineProvider(hostEditor, pos) {
var langId = hostEditor.getLanguageForSelection().getId();
// Only provide docs when cursor is in CSS content
if (hostEditor.getLanguageForSelection().getId() !== "css") {
if (langId !== "css" && langId !== "scss") {
return null;
}

Expand Down