diff --git a/extensions/vscode/src/api/types/files.ts b/extensions/vscode/src/api/types/files.ts index 71431693c..ed8850a59 100644 --- a/extensions/vscode/src/api/types/files.ts +++ b/extensions/vscode/src/api/types/files.ts @@ -12,7 +12,6 @@ export type ContentRecordFile = { reason: FileMatch | null; // pattern that matched a file, null if no match files: ContentRecordFile[]; isDir: boolean; - isEntrypoint: boolean; isFile: boolean; modifiedDatetime: string; rel: string; diff --git a/internal/services/api/files/files.go b/internal/services/api/files/files.go index da510925b..bfec1c44e 100644 --- a/internal/services/api/files/files.go +++ b/internal/services/api/files/files.go @@ -19,7 +19,6 @@ type File struct { Reason *matcher.Pattern `json:"reason"` // object describing the reason the file was included/excluded, or null if no pattern matched it Files []*File `json:"files"` // an array of objects of the same type for each file within the directory. IsDir bool `json:"isDir"` // true if the file is a directory - IsEntrypoint bool `json:"isEntrypoint"` // true if the file is an entrypoint IsRegular bool `json:"isFile"` // true if the file is a regular file ModifiedDatetime string `json:"modifiedDatetime"` // the last modified datetime Rel string `json:"rel"` // the relative path to the project root, which is used as the identifier diff --git a/internal/services/api/files/services_test.go b/internal/services/api/files/services_test.go index a6427f931..8623a3a44 100644 --- a/internal/services/api/files/services_test.go +++ b/internal/services/api/files/services_test.go @@ -110,7 +110,6 @@ func (s *ServicesSuite) TestGetFileUsingSampleContent() { s.Equal(Directory, file.FileType) s.True(file.IsDir) s.False(file.IsRegular) - s.False(file.IsEntrypoint) s.NotNil(file.Files) s.False(file.AllExcluded) s.False(file.AllIncluded) @@ -155,7 +154,6 @@ func (s *ServicesSuite) TestGetFileUsingSampleContentFromParentDir() { s.Equal(Directory, file.FileType) s.True(file.IsDir) s.False(file.IsRegular) - s.False(file.IsEntrypoint) s.NotNil(file.Files) s.False(file.AllExcluded) s.False(file.AllIncluded) @@ -185,7 +183,6 @@ func (s *ServicesSuite) TestGetFileUsingSampleContentAllIncluded() { s.Equal(Directory, file.FileType) s.True(file.IsDir) s.False(file.IsRegular) - s.False(file.IsEntrypoint) s.NotNil(file.Files) s.False(file.AllExcluded) s.True(file.AllIncluded) @@ -215,7 +212,6 @@ func (s *ServicesSuite) TestGetFileUsingSampleContentAllExcluded() { s.Equal(Directory, file.FileType) s.True(file.IsDir) s.False(file.IsRegular) - s.False(file.IsEntrypoint) s.NotNil(file.Files) s.True(file.AllExcluded) s.False(file.AllIncluded)