Skip to content

Commit

Permalink
Respect language-specific cursorStyle setting
Browse files Browse the repository at this point in the history
Load configuration with language scope for the language
set in the active editor.

For example, if the following is in `.vscode/settings.json`

```json
"editor.cursorStyle": "line",
"[lua]": {
    "editor.cursorStyle": "block",
}
```

then the cursor would be "line" instead of "block" in Lua files
when this extension enabled. After this commit, it has "block" style.

The language-specific scope API was added in some more recent
version of VS Code. Tried to bump up the `vscode` package version
but turns out it's deprecated so replace the package with
`@types/vscode`. Remove the no longer needed (and working)
`postinstall` script. Update lock files which changed after
`npm install`.
  • Loading branch information
MrSimbax committed Jan 8, 2022
1 parent 0fe61cc commit 2d4081d
Show file tree
Hide file tree
Showing 4 changed files with 1,064 additions and 1,507 deletions.
Loading

0 comments on commit 2d4081d

Please sign in to comment.