mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-29 16:29:19 -05:00
Fix linting issues
This commit is contained in:
@@ -2353,7 +2353,7 @@ namespace FourSlash {
|
||||
}
|
||||
}
|
||||
|
||||
public verifyCodeFixAvailable(negative: boolean, errorCode?:number ) {
|
||||
public verifyCodeFixAvailable(negative: boolean, errorCode?: number) {
|
||||
const fixes = this.getCodeFixes(errorCode);
|
||||
|
||||
if (negative && fixes && fixes.length > 0) {
|
||||
|
||||
4
src/server/protocol.d.ts
vendored
4
src/server/protocol.d.ts
vendored
@@ -247,7 +247,7 @@ declare namespace ts.server.protocol {
|
||||
/**
|
||||
* Errorcodes we want to get the fixes for.
|
||||
*/
|
||||
errorCodes?: number[]
|
||||
errorCodes?: number[];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1586,7 +1586,7 @@ declare namespace ts.server.protocol {
|
||||
/**
|
||||
* Changes to apply to each file as part of the code action.
|
||||
*/
|
||||
changes: FileTextChanges[]
|
||||
changes: FileTextChanges[];
|
||||
}
|
||||
|
||||
export interface FileTextChanges {
|
||||
|
||||
@@ -1214,7 +1214,8 @@ namespace ts.server {
|
||||
}
|
||||
if (simplifiedResult) {
|
||||
return codeActions.map(mapCodeAction);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
return codeActions;
|
||||
}
|
||||
|
||||
|
||||
@@ -297,7 +297,7 @@ namespace ts {
|
||||
fileName: string;
|
||||
textChanges: TextChange[];
|
||||
}
|
||||
|
||||
|
||||
export interface CodeAction {
|
||||
/** Description of the code action to display in the UI of the editor */
|
||||
description: string;
|
||||
|
||||
Reference in New Issue
Block a user