kjelsrud.dev/node_modules/@astrojs/language-server/dist/plugins/html/utils.js

12 lines
510 B
JavaScript
Raw Normal View History

2023-07-19 21:31:30 +02:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.removeDataAttrCompletion = void 0;
/**
* The VS Code HTML language service provides a completion for data attributes that is independent from
* data providers, which mean that you can't disable it, so this function removes them from completions
*/
function removeDataAttrCompletion(items) {
return items.filter((item) => !item.label.startsWith('data-'));
}
exports.removeDataAttrCompletion = removeDataAttrCompletion;