Skip to content

Commit

Permalink
cleanup and cache buster
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyang committed Jan 2, 2024
1 parent 46944de commit ac7e3c7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/commads/showClipboardHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ export class ClipboardHistoryProvider implements vscode.TextDocumentContentProvi
}

public provideTextDocumentContent(uri: vscode.Uri): string {

Check failure on line 24 in src/commads/showClipboardHistory.ts

View workflow job for this annotation

GitHub Actions / lint

[eslint] reported by reviewdog 🐶 'uri' is defined but never used. Allowed unused args must match /^_/u. Raw Output: {"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'uri' is defined but never used. Allowed unused args must match /^_/u.","line":24,"column":37,"nodeType":"Identifier","messageId":"unusedVar","endLine":24,"endColumn":52}
// You would normally fetch the clip data associated with this specific uri
// but since we're demonstrating, let's just return a static string.
return this.createClipsString(this._manager.clips);
}
}

Check failure on line 27 in src/commads/showClipboardHistory.ts

View workflow job for this annotation

GitHub Actions / lint

[eslint] reported by reviewdog 🐶 Delete `⏎` Raw Output: {"ruleId":"prettier/prettier","severity":2,"message":"Delete `⏎`","line":27,"column":2,"nodeType":null,"messageId":"delete","endLine":28,"endColumn":1,"fix":{"range":[992,993],"text":""}}
Expand All @@ -43,8 +41,8 @@ export class ShowClipboardHistory implements vscode.Disposable {
}

protected async execute(item: ClipHistoryItem) {

Check failure on line 43 in src/commads/showClipboardHistory.ts

View workflow job for this annotation

GitHub Actions / lint

[eslint] reported by reviewdog 🐶 'item' is defined but never used. Allowed unused args must match /^_/u. Raw Output: {"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'item' is defined but never used. Allowed unused args must match /^_/u.","line":43,"column":27,"nodeType":"Identifier","messageId":"unusedVar","endLine":43,"endColumn":48}
// const clipsString = this.createClipsString(this._manager.clips);
const uri = vscode.Uri.parse('clipboard-history://history/clipboard-buffer.txt');
const timestamp = Date.now();
const uri = vscode.Uri.parse(`clipboard-history://history/clipboard-buffer.txt?${timestamp}`);

const document = await vscode.workspace.openTextDocument(uri);

Expand Down

0 comments on commit ac7e3c7

Please sign in to comment.