Skip to content

Commit

Permalink
Ignore tsserver requests for createDirectoryWatcher(~/Library) on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Sep 4, 2024
1 parent 76671ce commit 5ea81e9
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
*--------------------------------------------------------------------------------------------*/

import * as path from 'path';
import { join } from 'path';
import * as vscode from 'vscode';
import { homedir } from 'os';
import { ServiceConfigurationProvider, SyntaxServerConfiguration, TsServerLogLevel, TypeScriptServiceConfiguration, areServiceConfigurationsEqual } from './configuration/configuration';
import * as fileSchemes from './configuration/fileSchemes';
import { Schemes } from './configuration/schemes';
Expand Down Expand Up @@ -1042,6 +1044,11 @@ export default class TypeScriptServiceClient extends Disposable implements IType
if (path.startsWith(inMemoryResourcePrefix)) {
return;
}
if (process.platform === 'darwin' && path === join(os.homedir(), "Library") {
// ignore directory watch requests on ~/Library
// until microsoft/TypeScript#59831 is resolved
return;
}

this.createFileSystemWatcher(
(event.body as Proto.CreateDirectoryWatcherEventBody).id,
Expand Down

0 comments on commit 5ea81e9

Please sign in to comment.