Setup file watching for .tsx/.jsx as well as .ts/.js files (#53)

This commit is contained in:
anark 2019-07-30 10:12:15 -07:00 committed by Qiming zhao
parent f8ed02524d
commit e8c91d52ac

View file

@ -25,7 +25,7 @@ export default class UpdateImportsOnFileRenameHandler {
private readonly fileConfigurationManager: FileConfigurationManager,
languageId: string
) {
let glob = languageId == 'typescript' ? '**/*.ts' : '**/*.js'
let glob = languageId == 'typescript' ? '**/*.{ts,tsx}' : '**/*.{js,jsx}'
const watcher = workspace.createFileSystemWatcher(glob)
this.disposables.push(watcher)
watcher.onDidRename(e => {