Content-Length: 284406 | pFad | http://github.com/Simon-He95/unot/commit/35bdb880085dec5980c5813abe9839e36e67f7f4

98 chore: update deps · Simon-He95/unot@35bdb88 · GitHub
Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 committed Oct 12, 2024
1 parent 752c448 commit 35bdb88
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
"@unocss/transformer-directives": "^0.53.6",
"@unocss/transformer-variant-group": "^0.53.6",
"@vscode-use/createwebview": "^0.0.11",
"@vscode-use/utils": "^0.1.25",
"@vscode-use/utils": "^0.1.31",
"@vue/compiler-sfc": "3.3.8",
"bumpp": "^9.5.2",
"eslint": "^9.9.1",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 18 additions & 12 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,11 @@ export async function activate(context: vscode.ExtensionContext) {
getActiveTextEditor()?.setDecorations(decorationType, [])
}))

context.subscriptions.push(addEventListener('text-change', () => getActiveTextEditor()?.setDecorations(decorationType, [])))
context.subscriptions.push(addEventListener('text-change', ({ reason, contentChanges, document }) => {
if (document.languageId === 'Log' || !contentChanges.length)
return
getActiveTextEditor()?.setDecorations(decorationType, [])
}))

context.subscriptions.push(addEventListener('selection-change', () => getActiveTextEditor()?.setDecorations(decorationType, [])))

Expand Down Expand Up @@ -401,17 +405,19 @@ export async function activate(context: vscode.ExtensionContext) {
}
}))

context.subscriptions.push(addEventListener('activeText-change', () =>
setTimeout(async () => {
const url = getCurrentFileUrl()
if (!url)
return
await updateUnoStatus(url)
if (!hasUnoConfig)
statusBarItem.hide()
else
statusBarItem.show()
}, 200)))
context.subscriptions.push(addEventListener('activeText-change', async (editor) => {
if (!editor || editor.document.languageId === 'Log')
return

const url = getCurrentFileUrl()
if (!url)
return
await updateUnoStatus(url)
if (!hasUnoConfig)
statusBarItem.hide()
else
statusBarItem.show()
}))

if (!hasUnoConfig) {
context.subscriptions.push(addEventListener('file-create', () => {
Expand Down

0 comments on commit 35bdb88

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Simon-He95/unot/commit/35bdb880085dec5980c5813abe9839e36e67f7f4

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy