Skip to content

Commit ee114b1

Browse files
committed
Fixed settings to only contribute this extension to files with specified languages
1 parent 763a564 commit ee114b1

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.changeset/kind-years-heal.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"vscode-css-variables": patch
3+
---
4+
5+
Fixed settings to only contribute this extension to files with specified languages

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"request": "launch",
88
"name": "Launch Client",
99
"runtimeExecutable": "${execPath}",
10-
"args": ["--extensionDevelopmentPath=${workspaceRoot}/packages/vscode-css-variables"],
10+
"args": ["--extensionDevelopmentPath=${workspaceRoot}/packages/vscode-css-variables", "--disable-extensions"],
1111
"sourceMaps": true,
1212
"outFiles": ["${workspaceRoot}/packages/vscode-css-variables/dist/**/*.js"],
1313
"preLaunchTask": "npm: build"

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"typescript.tsc.autoDetect": "off",
44
"typescript.preferences.quoteStyle": "single",
55
"editor.codeActionsOnSave": {
6-
"source.fixAll.eslint": true
6+
"source.fixAll.eslint": "explicit"
77
},
88
"eslint.workingDirectories": [
99
"packages/*"

packages/vscode-css-variables/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ export function activate(context: ExtensionContext) {
5555

5656
// Options to control the language client
5757
const clientOptions: LanguageClientOptions = {
58-
documentSelector: languages.map((event) => ({
58+
documentSelector: languages.map((language) => ({
5959
scheme: 'file',
60-
language: event.split(':')[1],
60+
language,
6161
})),
6262
synchronize: {
6363
fileEvents: [

0 commit comments

Comments
 (0)