remove some vscode differences (#12146)

This commit is contained in:
Anthony Dresser
2020-09-04 18:04:30 -07:00
committed by GitHub
parent 503090856a
commit 704222b8d7
31 changed files with 1118 additions and 66 deletions

View File

@@ -127,13 +127,11 @@ export class MainThreadLanguageFeatures implements MainThreadLanguageFeaturesSha
}
private static _reviveCodeActionDto(data: ReadonlyArray<ICodeActionDto>): modes.CodeAction[] {
let dataCast = data as unknown; // {{ SQL CARBON EDIT }}
let returnval = dataCast as modes.CodeAction[]; // {{ SQL CARBON EDIT }}
if (returnval) {
if (data) {
data.forEach(code => reviveWorkspaceEditDto(code.edit));
}
return <modes.CodeAction[]>returnval; // {{ SQL CARBON EDIT }}
return <modes.CodeAction[]><unknown>data; // {{SQL CARBON EDIT}} strict-null-check
}
private static _reviveLinkDTO(data: ILinkDto): modes.ILink {