{"record":{"id":"52576e3bb60e06ce","repo":"octobercms/october","slug":"options-extension-must-be-set-for-cssimports-click","errorCode":null,"errorMessage":"options.extension must be set for cssimports click handler","messagePattern":"options\\.extension must be set for cssimports click handler","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/cms/assets/js/cms.editor.intellisense.clickhandler.cssimports.js","lineNumber":74,"sourceCode":"            const templatePos = findMatch.matches[0].indexOf(templateName);\n            const startColumn = findMatch.range.startColumn + templatePos;\n\n            links.push({\n                type: 'cms-asset',\n                templateName: fullTemplateName,\n                range: {\n                    endColumn: startColumn + templateName.length,\n                    endLineNumber: findMatch.range.endLineNumber,\n                    startColumn: startColumn,\n                    startLineNumber: findMatch.range.startLineNumber\n                }\n            });\n        });\n    }\n\n    provideLinks(model, token) {\n        if (typeof this.options.extension !== 'string') {\n            throw new Error('options.extension must be set for cssimports click handler');\n        }\n\n        if (!this.intellisense.modelHasTag(model, 'cms-asset-contents')) {\n            return;\n        }\n\n        const basePath = 'assets/' + this.intellisense.getModelCustomAttribute(model, 'filePath');\n        const result = {\n            links: []\n        };\n\n        this.makeLinks(model, /@import\\s+(\"|')([a-zA-Z0-9\\-\\/_\\.]+)\\1/gm, result.links, basePath, {\n            allowedExtensions: [this.options.extension, null]\n        });\n\n        return result;\n    }\n}","sourceCodeStart":56,"sourceCodeEnd":92,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/cms/assets/js/cms.editor.intellisense.clickhandler.cssimports.js#L56-L92","documentation":"Error \"options.extension must be set for cssimports click handler\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/cms/assets/js/cms.editor.intellisense.clickhandler.cssimports.js:74 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}