|
1 | 1 | import { defineExtension, useCommand, useDisposable } from 'reactive-vscode' |
2 | | -import { extensions, window } from 'vscode' |
| 2 | +import { window } from 'vscode' |
3 | 3 | import { currentMode, setupNeovimModeManager } from './neovimModeManager' |
4 | 4 | import { setupThemeManager } from './themeManager' |
5 | 5 | import { logger } from './utils' |
6 | 6 |
|
7 | 7 | const { activate, deactivate } = defineExtension(async () => { |
8 | 8 | logger.info('nvim-ui-plus extension activated') |
9 | 9 |
|
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 | + // } |
29 | 29 |
|
30 | 30 | // Set up the mode manager |
31 | 31 | const modeManager = setupNeovimModeManager() |
|
0 commit comments