Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use satisfies in a few more places #200181

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion extensions/markdown-language-features/server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export async function startServer(connection: Connection, serverConfig: {
const action: lsp.CodeAction = {
title: l10n.t("Organize link definitions"),
kind: organizeLinkDefKind,
data: <OrganizeLinkActionData>{ uri: document.uri }
data: { uri: document.uri } satisfies OrganizeLinkActionData,
};
return [action];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class ReferencesCodeLens extends vscode.CodeLens {
}
}

export abstract class TypeScriptBaseCodeLensProvider extends Disposable implements vscode.CodeLensProvider<ReferencesCodeLens>{
export abstract class TypeScriptBaseCodeLensProvider extends Disposable implements vscode.CodeLensProvider<ReferencesCodeLens> {
protected changeEmitter = this._register(new vscode.EventEmitter<void>());
public onDidChangeCodeLenses = this.changeEmitter.event;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ class TypeScriptQuickFixProvider implements vscode.CodeActionProvider<VsCodeCode
codeAction.diagnostics = [diagnostic];
codeAction.command = {
command: ApplyCodeActionCommand.ID,
arguments: [<ApplyCodeActionCommand_args>{ action: action, diagnostic, document }],
arguments: [{ action: action, diagnostic, document } satisfies ApplyCodeActionCommand_args],
title: ''
};
if (expand && message !== undefined) {
Expand Down Expand Up @@ -425,7 +425,7 @@ class TypeScriptQuickFixProvider implements vscode.CodeActionProvider<VsCodeCode
action.diagnostics = [diagnostic];
action.command = {
command: ApplyFixAllCodeAction.ID,
arguments: [<ApplyFixAllCodeAction_args>{ action }],
arguments: [{ action } satisfies ApplyFixAllCodeAction_args],
title: ''
};
results.addFixAllAction(tsAction.fixId, action);
Expand Down