Skip to content

Commit

Permalink
Update the loader (fixes microsoft/monaco-editor#2044)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Sep 18, 2020
1 parent b89779e commit af09003
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/vs/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,14 @@ var CSSLoaderPlugin;
function CSSPlugin() {
this._cssLoader = new BrowserCSSLoader();
}
CSSPlugin.prototype.load = function (name, req, load) {
CSSPlugin.prototype.load = function (name, req, load, config) {
config = config || {};
var cssConfig = config['vs/css'] || {};
if (cssConfig.disabled) {
// the plugin is asked to not create any style sheets
load({});
return;
}
var cssUrl = req.toUrl(name + '.css');
this._cssLoader.load(name, cssUrl, function (contents) {
load({});
Expand Down

0 comments on commit af09003

Please sign in to comment.