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 {

View File

@@ -1083,7 +1083,7 @@ export class ExtHostNotebookController implements ExtHostNotebookShape, ExtHostN
const provider = this._notebookContentProviders.get(viewType);
const revivedUri = URI.revive(uri);
if (!provider) {
return undefined; // {{SQL CARBON EDIT}}
return undefined; // {{SQL CARBON EDIT}} strict-null-checks
}
const storageRoot = this._extensionStoragePaths.workspaceValue(provider.extension) ?? this._extensionStoragePaths.globalValue(provider.extension);