Setup file watching for .tsx/.jsx as well as .ts/.js files (#53)
This commit is contained in:
parent
f8ed02524d
commit
e8c91d52ac
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ export default class UpdateImportsOnFileRenameHandler {
|
||||||
private readonly fileConfigurationManager: FileConfigurationManager,
|
private readonly fileConfigurationManager: FileConfigurationManager,
|
||||||
languageId: string
|
languageId: string
|
||||||
) {
|
) {
|
||||||
let glob = languageId == 'typescript' ? '**/*.ts' : '**/*.js'
|
let glob = languageId == 'typescript' ? '**/*.{ts,tsx}' : '**/*.{js,jsx}'
|
||||||
const watcher = workspace.createFileSystemWatcher(glob)
|
const watcher = workspace.createFileSystemWatcher(glob)
|
||||||
this.disposables.push(watcher)
|
this.disposables.push(watcher)
|
||||||
watcher.onDidRename(e => {
|
watcher.onDidRename(e => {
|
||||||
|
|
Loading…
Reference in a new issue