Skip to content

Commit

Permalink
Fixed settings to only contribute this extension to files with specif…
Browse files Browse the repository at this point in the history
…ied languages
  • Loading branch information
Cellule committed Mar 6, 2024
1 parent 763a564 commit ee114b1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/kind-years-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vscode-css-variables": patch
---

Fixed settings to only contribute this extension to files with specified languages
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"request": "launch",
"name": "Launch Client",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}/packages/vscode-css-variables"],
"args": ["--extensionDevelopmentPath=${workspaceRoot}/packages/vscode-css-variables", "--disable-extensions"],
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/packages/vscode-css-variables/dist/**/*.js"],
"preLaunchTask": "npm: build"
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"typescript.tsc.autoDetect": "off",
"typescript.preferences.quoteStyle": "single",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"eslint.workingDirectories": [
"packages/*"
Expand Down
4 changes: 2 additions & 2 deletions packages/vscode-css-variables/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export function activate(context: ExtensionContext) {

// Options to control the language client
const clientOptions: LanguageClientOptions = {
documentSelector: languages.map((event) => ({
documentSelector: languages.map((language) => ({
scheme: 'file',
language: event.split(':')[1],
language,
})),
synchronize: {
fileEvents: [
Expand Down

0 comments on commit ee114b1

Please sign in to comment.