Skip to content

Commit

Permalink
fix(core): disable cached-dir for resolving root
Browse files Browse the repository at this point in the history
  • Loading branch information
fannheyward committed Dec 8, 2023
1 parent e108777 commit e49434b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/core/workspaceFolder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ export default class WorkspaceFolderController {
public resolveRoot(document: Document, cwd: string, fireEvent: boolean, expand: ((input: string) => string)): string | null {
if (document.buftype !== '' || document.schema !== 'file') return null
let u = URI.parse(document.uri)
let curr = this.getWorkspaceFolder(u)
if (curr) return URI.parse(curr.uri).fsPath
let dir = isDirectory(u.fsPath) ? path.normalize(u.fsPath) : path.dirname(u.fsPath)
let { ignoredFiletypes, ignoredFolders, workspaceFolderCheckCwd, workspaceFolderFallbackCwd, bottomUpFiletypes } = this.config
if (ignoredFiletypes?.includes(document.filetype)) return null
Expand Down

0 comments on commit e49434b

Please sign in to comment.