Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

the plugin formats properly when saving scss, but when saving less, it reports the error shown in the figure #145

Open
ayangweb opened this issue Feb 10, 2023 · 0 comments

Comments

@ayangweb
Copy link

Environment

  • VSCode Version: 1.75.1 (Universal)
  • OS Version: macos Monterey 12.6

Actual behavior

Hi guys, the plugin is formatted properly when saving scss, but when saving less, it reports the error as shown in the figure

Config

{
	"powermode.enabled": true,
	"powermode.presets": "flames",
	"emmet.variables": {
		"lang": "zh-CN"
	},
	"editor.detectIndentation": true,
	"editor.tabSize": 2,
	"editor.formatOnSave": true,
	"prettier.semi": true,
	"prettier.singleQuote": false,
	"prettier.tabWidth": 4,
	"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
	"[jsonc]": {
		"editor.defaultFormatter": "esbenp.prettier-vscode"
	},
	"prettier.useTabs": true,
	"explorer.confirmDelete": false,
	"[javascript]": {
		"editor.defaultFormatter": "esbenp.prettier-vscode"
	},
	"[json]": {
		"editor.defaultFormatter": "vscode.json-language-features"
	},
	"diffEditor.ignoreTrimWhitespace": true,
	"liveServer.settings.donotShowInfoMsg": true,
	"less.compile": {
		"compress": true, 
		"sourceMap": false, 
		"out": true,
		"outExt": ".css" 
	},
	"[html]": {
		"editor.defaultFormatter": "esbenp.prettier-vscode"
	},
	"workbench.statusBar.visible": true,
	"editor.minimap.enabled": false,
	"explorer.confirmDragAndDrop": false,
	"javascript.updateImportsOnFileMove.enabled": "always",
	"editor.codeActionsOnSave": {
		"source.fixAll.eslint": true
	},
	"[vue]": {
		"editor.defaultFormatter": "esbenp.prettier-vscode"
	},
	"liveServer.settings.donotVerifyTags": true,
	"files.associations": {
		"*.cjson": "jsonc",
		"*.wxss": "css",
		"*.wxs": "javascript",
		"*.js": "javascriptreact"
	},
	"emmet.includeLanguages": {
		"wxml": "html",
		"javascript": "javascriptreact"
	},
	"[javascriptreact]": {
		"editor.defaultFormatter": "esbenp.prettier-vscode"
	},
	"[typescript]": {
		"editor.defaultFormatter": "esbenp.prettier-vscode"
	},
	"typescript.updateImportsOnFileMove.enabled": "always",
	"[css]": {
		"editor.defaultFormatter": "esbenp.prettier-vscode"
	},
	"workbench.editorAssociations": {
		"*.ipynb": "jupyter.notebook.ipynb"
	},
	"[typescriptreact]": {
		"editor.defaultFormatter": "esbenp.prettier-vscode"
	},
	"git.autofetch": true,
	"editor.suggestSelection": "first",
	"workbench.editor.untitled.hint": "hidden",
	"security.workspace.trust.untrustedFiles": "open",
	"terminal.integrated.defaultProfile.windows": "Command Prompt",
	"telemetry.enableCrashReporter": false,
	"telemetry.enableTelemetry": false,
	"telemetry.telemetryLevel": "off",
	"git.confirmSync": false,
	"powermode.shake.enabled": false,
	"editor.inlineSuggest.enabled": true,
	"editor.fontFamily": "JetBrains Mono, Menlo, Monaco, 'Courier New', monospace",
	"editor.fontSize": 13,
	"editor.accessibilitySupport": "off",
	"workbench.colorTheme": "One Dark Pro Darker",
	"terminal.integrated.cursorStyle": "line",
	"editor.bracketPairColorization.enabled": true,
	"editor.guides.bracketPairs": "active",
	"editor.fontLigatures": true,
	"editor.tokenColorCustomizations": {
		"textMateRules": [
			{
				"name": "italic font",
				"scope": [
					"comment",
					"keyword",
					"storage",
					"variable.language.this"
				],
				"settings": {
					"fontStyle": "italic"
				}
			}
		]
	},
	"workbench.iconTheme": "material-icon-theme",
	"editor.quickSuggestions": {
		"strings": true
	},
	"[scss]": {
		"editor.defaultFormatter": "esbenp.prettier-vscode"
	},
	"terminal.integrated.cursorBlinking": true,
	"terminal.integrated.copyOnSelection": true,
	"terminal.integrated.tabs.enableAnimation": false,

	"csscomb.formatOnSave": true,
	"csscomb.preset": "yandex",

	"code-runner.runInTerminal": true,
	"code-runner.defaultLanguage": "javascript",
	"files.autoSave": "onFocusChange",
	"terminal.integrated.tabs.enabled": false,
	"terminal.integrated.customGlyphs": false,
	"volar.doctor.statusBarItem": false,
	"parameterHints.languages": [
		"php",
		"javascript",
		"typescript",
		"javascriptreact",
		"typescriptreact"
	],
	"[less]": {
		"editor.defaultFormatter": "esbenp.prettier-vscode"
	}
    
}

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant