Skip to content

Commit

Permalink
feat(workspace): rm .vim from default rootPatterns (#1450)
Browse files Browse the repository at this point in the history
`.vim` folder is always in $HOME, used as default
pattern will always resolved to rootPath
  • Loading branch information
fannheyward authored Jan 9, 2020
1 parent 0c24d1d commit db5ffd2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@
},
"coc.preferences.rootPatterns": {
"type": "array",
"default": [".vim", ".git", ".hg", ".projections.json"],
"default": [".git", ".hg", ".projections.json"],
"description": "Root patterns to resolve workspaceFolder from parent folders of opened files, resolved from up to down.",
"items": {
"type": "string"
Expand Down
2 changes: 1 addition & 1 deletion doc/coc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ Builtin configurations:~

Root patterns to resolve workspaceFolder from parent folders of opened
files, resolved from up to down., default:
`[".vim",".git",".hg",".projections.json"]`
`[".git",".hg",".projections.json"]`

"coc.preferences.watchmanPath":~

Expand Down
2 changes: 1 addition & 1 deletion src/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@ augroup end`
if (patternType == PatternType.Buffer) return document.getVar('root_patterns', []) || []
if (patternType == PatternType.LanguageServer) return this.getServerRootPatterns(document.filetype)
const preferences = this.getConfiguration('coc.preferences', uri)
return preferences.get<string[]>('rootPatterns', ['.vim', '.git', '.hg', '.projections.json']).slice()
return preferences.get<string[]>('rootPatterns', ['.git', '.hg', '.projections.json']).slice()
}

public async renameCurrent(): Promise<void> {
Expand Down

0 comments on commit db5ffd2

Please sign in to comment.