Skip to content

Commit

Permalink
add a guard around rootpath. (#8088)
Browse files Browse the repository at this point in the history
this spot was missed last time.

also update debugpy
  • Loading branch information
bschnurr authored Dec 6, 2024
1 parent c73d5bb commit 28b3027
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ private void WatchedFilesRegistered(object sender, DidChangeWatchedFilesRegistra
private void UpdateInterpreterExcludes() {
this._clientContexts.ForEach(context => {

if (PathUtils.IsSubpathOf(context.RootPath, context.InterpreterConfiguration.InterpreterPath)) {
if (context.RootPath != null && PathUtils.IsSubpathOf(context.RootPath, context.InterpreterConfiguration.InterpreterPath)) {
var pattern = CommonUtils.GetRelativeFilePath(context.RootPath, context.InterpreterConfiguration.GetPrefixPath()).TrimEnd('\\') + "/**/*";
var watcher = new FileSystemWatcher() { GlobPattern = pattern };
this._fileListener.AddExclude(watcher);
Expand Down

0 comments on commit 28b3027

Please sign in to comment.