This has been fixed for a while. We want to avoid having to shim out `os` for browser builds
This commit is contained in:
Matt Bierner
2026-02-18 15:22:46 -08:00
parent bfe8da141e
commit 19007fb635

View File

@@ -3,7 +3,6 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { homedir } from 'os';
import * as path from 'path';
import * as vscode from 'vscode';
import { ServiceConfigurationProvider, SyntaxServerConfiguration, TsServerLogLevel, TypeScriptServiceConfiguration, areServiceConfigurationsEqual } from './configuration/configuration';
@@ -1043,11 +1042,6 @@ export default class TypeScriptServiceClient extends Disposable implements IType
if (fpath.startsWith(inMemoryResourcePrefix)) {
return;
}
if (process.platform === 'darwin' && fpath === path.join(homedir(), 'Library')) {
// ignore directory watch requests on ~/Library
// until microsoft/TypeScript#59831 is resolved
return;
}
this.createFileSystemWatcher(
(event.body as Proto.CreateDirectoryWatcherEventBody).id,