Skip to content

Commit 7abe3c5

Browse files
authored
Merge pull request #26 from nuxtrdev/fix/plugins-watcher
fix: remove plugins watcher
2 parents 4951e12 + 8833ecb commit 7abe3c5

File tree

3 files changed

+7
-26
lines changed

3 files changed

+7
-26
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## Changelog
22

3+
### Version 0.1.11
4+
5+
🩹 Fixes
6+
7+
- Removing Plugins watcher.
8+
39
### Version 0.1.9
410

511
📦 New

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nuxtr-vscode",
33
"displayName": "Nuxtr",
44
"description": "An extension for Nuxt.js offering commands and tools to make your experience more pleasant.",
5-
"version": "0.1.10",
5+
"version": "0.1.11",
66
"packageManager": "[email protected]",
77
"engines": {
88
"vscode": "^1.80.0"

src/watchers/index.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -66,31 +66,6 @@ class FileWatchers {
6666
this.sidebarProvider.getDependencies()
6767
})
6868

69-
70-
public pluginsFileWatcher = workspace
71-
.createFileSystemWatcher(`${projectRootDirectory()}/plugins/**/*`)
72-
.onDidCreate(async (uri: Uri) => {
73-
const pluginsFiles = await workspace.findFiles('plugins/**/*').then((files) => {
74-
return files.map((file: any) => {
75-
return file.path.replace(`${projectRootDirectory()}/`, '~/')
76-
})
77-
})
78-
updateNuxtConfig((config) => config.plugins = pluginsFiles)
79-
})
80-
81-
public pluginsFileWatcherDeleted = workspace
82-
.createFileSystemWatcher(`${projectRootDirectory()}/plugins/**/*`)
83-
.onDidDelete(async (uri: Uri) => {
84-
85-
const pluginsFiles = await workspace.findFiles('plugins/**/*').then((files) => {
86-
return files.map((file: any) => {
87-
return file.path.replace(`${projectRootDirectory()}/`, '~/')
88-
})
89-
})
90-
91-
updateNuxtConfig((config) => config.plugins = pluginsFiles)
92-
})
93-
9469
}
9570

9671
export default FileWatchers

0 commit comments

Comments
 (0)