Skip to content

Commit d0ae6fa

Browse files
committed
Fix lint issues
1 parent 0e38165 commit d0ae6fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Extension/src/LanguageServer/protocolFilter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const ServerCancelled: number = -32802;
1919

2020
export function createProtocolFilter(): Middleware {
2121
return {
22-
didOpen: async (document, sendMessage) => {
22+
didOpen: async (document, _sendMessage) => {
2323
if (!util.isCpp(document)) {
2424
return;
2525
}
@@ -45,7 +45,7 @@ export function createProtocolFilter(): Middleware {
4545
// client.takeOwnership() will call client.TrackedDocuments.add() again, but that's ok. It's a Set.
4646
client.takeOwnership(document);
4747
client.ready.then(() => {
48-
client.sendDidOpen(document);
48+
client.sendDidOpen(document).catch(logAndReturn.undefined);
4949
const cppEditors: vscode.TextEditor[] = vscode.window.visibleTextEditors.filter(e => util.isCpp(e.document));
5050
client.onDidChangeVisibleTextEditors(cppEditors).catch(logAndReturn.undefined);
5151
}).catch(logAndReturn.undefined);

0 commit comments

Comments
 (0)