Skip to content

Commit

Permalink
more clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
HighCommander4 committed Nov 17, 2024
1 parent f7e7bfa commit c7c91e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/clangd-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class EnableEditsNearCursorFeature implements vscodelc.StaticFeature {

export async function createContext(globalStoragePath: string,
outputChannel: vscode.OutputChannel):
Promise<ClangdContext | null> {
Promise<ClangdContext|null> {
const subscriptions: vscode.Disposable[] = [];
const clangdPath = await install.activate(subscriptions, globalStoragePath);
if (!clangdPath)
Expand Down
3 changes: 2 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export async function activate(context: vscode.ExtensionContext):
let shouldCheck = false;

if (vscode.workspace.getConfiguration('clangd').get<boolean>('enable')) {
clangdContext = await createContext(context.globalStoragePath, outputChannel);
clangdContext =
await createContext(context.globalStoragePath, outputChannel);
if (clangdContext)
context.subscriptions.push(clangdContext);

Expand Down

0 comments on commit c7c91e6

Please sign in to comment.