Skip to content

Commit 44d6fa1

Browse files
committed
feat:
- updated nvim autocmd, trying to remove checks from activation
1 parent 2ef4e74 commit 44d6fa1

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/index.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
import { defineExtension, useCommand, useDisposable } from 'reactive-vscode'
2-
import { extensions, window } from 'vscode'
2+
import { window } from 'vscode'
33
import { currentMode, setupNeovimModeManager } from './neovimModeManager'
44
import { setupThemeManager } from './themeManager'
55
import { logger } from './utils'
66

77
const { activate, deactivate } = defineExtension(async () => {
88
logger.info('nvim-ui-plus extension activated')
99

10-
// Check if neovim extension is installed
11-
const vscode_nvim_ext = extensions.getExtension('asvetliakov.vscode-neovim')
12-
if (!vscode_nvim_ext) {
13-
logger.error('vscode-neovim is not installed')
14-
window.showErrorMessage('vscode-neovim is not installed. Please install it to use this extension.')
15-
return
16-
}
17-
18-
// Use the whenReady method which returns a promise that resolves when the extension is activated
19-
try {
20-
// Wait for the extension to be activated by VSCode
21-
await vscode_nvim_ext.activate()
22-
logger.info('vscode-neovim extension is active')
23-
}
24-
catch (err) {
25-
logger.error('Failed to wait for vscode-neovim extension:', err)
26-
window.showErrorMessage('Failed to connect to vscode-neovim extension')
27-
return
28-
}
10+
// // Check if neovim extension is installed
11+
// const vscode_nvim_ext = extensions.getExtension('asvetliakov.vscode-neovim')
12+
// if (!vscode_nvim_ext) {
13+
// logger.error('vscode-neovim is not installed')
14+
// window.showErrorMessage('vscode-neovim is not installed. Please install it to use this extension.')
15+
// return
16+
// }
17+
18+
// // Use the whenReady method which returns a promise that resolves when the extension is activated
19+
// try {
20+
// // Wait for the extension to be activated by VSCode
21+
// await vscode_nvim_ext.activate()
22+
// logger.info('vscode-neovim extension is active')
23+
// }
24+
// catch (err) {
25+
// logger.error('Failed to wait for vscode-neovim extension:', err)
26+
// window.showErrorMessage('Failed to connect to vscode-neovim extension')
27+
// return
28+
// }
2929

3030
// Set up the mode manager
3131
const modeManager = setupNeovimModeManager()

0 commit comments

Comments
 (0)