@stylable/language-service
Advanced tools
Comparing version 5.14.0 to 5.15.0
@@ -105,2 +105,3 @@ "use strict"; | ||
const replacementDiff = `${stScope} ${atRule.params}`.length - `${mq} all`.length; | ||
atRule.raws.afterName = ' '; | ||
atRule.params = 'all' + ' '.repeat(replacementDiff); | ||
@@ -107,0 +108,0 @@ }); |
@@ -289,3 +289,3 @@ "use strict"; | ||
const rev = parsed.nodes[parsed.nodes.length - 1]; | ||
if (rev.type === 'function' && !!rev.unclosed) { | ||
if (rev?.type === 'function' && !!rev.unclosed) { | ||
mixin = rev.value; | ||
@@ -292,0 +292,0 @@ } |
@@ -18,2 +18,3 @@ "use strict"; | ||
const lang_service_context_1 = require("../lib-new/lang-service-context"); | ||
const wrap_and_log_1 = require("./utils/wrap-and-log"); | ||
class StylableLanguageService { | ||
@@ -232,2 +233,14 @@ constructor({ fs, stylable }) { | ||
exports.StylableLanguageService = StylableLanguageService; | ||
(0, wrap_and_log_1.wrapAndCatchErrors)({ | ||
onDefinition: () => [], | ||
onCompletion: () => [], | ||
onSignatureHelp: () => null, | ||
onReferences: () => [], | ||
onHover: () => null, | ||
onColorPresentation: () => [], | ||
onDocumentColor: () => [], | ||
onDocumentFormatting: () => [], | ||
onDocumentRangeFormatting: () => [], | ||
onRenameRequest: () => ({ changes: {} }), | ||
}, StylableLanguageService); | ||
//# sourceMappingURL=service.js.map |
{ | ||
"name": "@stylable/language-service", | ||
"version": "5.14.0", | ||
"version": "5.15.0", | ||
"description": "Stylable Language Services - syntax highlighting, completions, hinting and more for the Stylable CSS preprocessor.", | ||
@@ -16,4 +16,4 @@ "main": "dist/index.js", | ||
"@file-services/typescript": "^7.4.0", | ||
"@stylable/code-formatter": "^5.14.0", | ||
"@stylable/core": "^5.14.0", | ||
"@stylable/code-formatter": "^5.15.0", | ||
"@stylable/core": "^5.15.0", | ||
"@tokey/core": "^1.4.0", | ||
@@ -23,3 +23,3 @@ "@tokey/css-selector-parser": "^0.6.1", | ||
"css-selector-tokenizer": "^0.8.0", | ||
"postcss": "^8.4.24", | ||
"postcss": "^8.4.25", | ||
"postcss-value-parser": "^4.2.0", | ||
@@ -26,0 +26,0 @@ "vscode-css-languageservice": "^6.2.6", |
@@ -148,2 +148,3 @@ import type { IFileSystem } from '@file-services/types'; | ||
const replacementDiff = `${stScope} ${atRule.params}`.length - `${mq} all`.length; | ||
atRule.raws.afterName = ' '; | ||
atRule.params = 'all' + ' '.repeat(replacementDiff); | ||
@@ -150,0 +151,0 @@ }); |
@@ -35,2 +35,3 @@ import type { IFileSystem, IFileSystemStats } from '@file-services/types'; | ||
import { LangServiceContext } from '../lib-new/lang-service-context'; | ||
import { wrapAndCatchErrors } from './utils/wrap-and-log'; | ||
@@ -422,2 +423,18 @@ export interface StylableLanguageServiceOptions { | ||
wrapAndCatchErrors( | ||
{ | ||
onDefinition: () => [], | ||
onCompletion: () => [], | ||
onSignatureHelp: () => null, | ||
onReferences: () => [], | ||
onHover: () => null, | ||
onColorPresentation: () => [], | ||
onDocumentColor: () => [], | ||
onDocumentFormatting: () => [], | ||
onDocumentRangeFormatting: () => [], | ||
onRenameRequest: () => ({ changes: {} }), | ||
}, | ||
StylableLanguageService | ||
); | ||
export interface StylableFile { | ||
@@ -424,0 +441,0 @@ path: string; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
723818
119
12308
Updated@stylable/core@^5.15.0
Updatedpostcss@^8.4.25