Skip to content

Commit

Permalink
chore(completion): use different mru file for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chemzqm committed Jan 14, 2022
1 parent 2616f7a commit ea23c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/completion/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class Completion implements Disposable {

public init(): void {
this.config = this.getCompleteConfig()
this.mru = new Mru('suggest.txt', process.env.COC_DATA_HOME, 1000)
this.mru = new Mru(`suggest${globalThis.__TEST__ ? process.pid : ''}.txt`, process.env.COC_DATA_HOME, 1000)
workspace.onDidChangeConfiguration(e => {
if (e.affectsConfiguration('suggest')) {
this.config = this.getCompleteConfig()
Expand Down

0 comments on commit ea23c24

Please sign in to comment.