From 19007fb6352f1b3048d7aa4c35cca32ff2db7693 Mon Sep 17 00:00:00 2001 From: Matt Bierner <12821956+mjbvz@users.noreply.github.com> Date: Wed, 18 Feb 2026 15:22:46 -0800 Subject: [PATCH] Remove workaround for Microsoft/TypeScript#59831 This has been fixed for a while. We want to avoid having to shim out `os` for browser builds --- .../src/typescriptServiceClient.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/extensions/typescript-language-features/src/typescriptServiceClient.ts b/extensions/typescript-language-features/src/typescriptServiceClient.ts index 207698de92f..dfd72176e1f 100644 --- a/extensions/typescript-language-features/src/typescriptServiceClient.ts +++ b/extensions/typescript-language-features/src/typescriptServiceClient.ts @@ -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,