mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-11 18:48:33 -05:00
Merge from vscode 8e0f348413f4f616c23a88ae30030efa85811973 (#6381)
* Merge from vscode 8e0f348413f4f616c23a88ae30030efa85811973 * disable strict null check
This commit is contained in:
@@ -44,7 +44,7 @@ export class KeybindingsEditingService extends Disposable implements IKeybinding
|
||||
public _serviceBrand: any;
|
||||
private queue: Queue<void>;
|
||||
|
||||
private resource: URI = URI.file(this.environmentService.appKeybindingsPath);
|
||||
private resource: URI = this.environmentService.keybindingsResource;
|
||||
|
||||
constructor(
|
||||
@ITextModelService private readonly textModelResolverService: ITextModelService,
|
||||
@@ -186,7 +186,7 @@ export class KeybindingsEditingService extends Disposable implements IKeybinding
|
||||
}
|
||||
|
||||
private asObject(key: string, command: string | null, when: string | undefined, negate: boolean): any {
|
||||
const object = { key };
|
||||
const object: any = { key };
|
||||
if (command) {
|
||||
object['command'] = negate ? `-${command}` : command;
|
||||
}
|
||||
@@ -210,7 +210,7 @@ export class KeybindingsEditingService extends Disposable implements IKeybinding
|
||||
private resolveModelReference(): Promise<IReference<IResolvedTextEditorModel>> {
|
||||
return this.fileService.exists(this.resource)
|
||||
.then(exists => {
|
||||
const EOL = this.configurationService.getValue<{}>('files', { overrideIdentifier: 'json' })['eol'];
|
||||
const EOL = this.configurationService.getValue<{ eol: string }>('files', { overrideIdentifier: 'json' })['eol'];
|
||||
const result: Promise<any> = exists ? Promise.resolve(null) : this.textFileService.write(this.resource, this.getEmptyContent(EOL), { encoding: 'utf8' });
|
||||
return result.then(() => this.textModelResolverService.createModelReference(this.resource));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user