File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export const ServerCancelled: number = -32802;
1919
2020export 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 ) ;
You can’t perform that action at this time.
0 commit comments