提交 4fdf5e82 编写于 作者: I isidor

fix typos

上级 c4d9a290
......@@ -49,7 +49,7 @@ export class InstantiationService implements IInstantiationService {
get: <T>(id: ServiceIdentifier<T>, isOptional?: typeof optional) => {
const result = this._getOrCreateServiceInstance(id);
if (!result && isOptional !== optional) {
throw new Error(`[invokeFunction] unkown service '${id}'`);
throw new Error(`[invokeFunction] unknown service '${id}'`);
}
return result;
}
......
......@@ -37,14 +37,14 @@ import { IDecorationOptions } from 'vs/editor/common/editorCommon';
import { CodeEditorWidget } from 'vs/editor/browser/widget/codeEditorWidget';
const $ = dom.$;
const IPrivateBreakopintWidgetService = createDecorator<IPrivateBreakopintWidgetService>('privateBreakopintWidgetService');
export interface IPrivateBreakopintWidgetService {
const IPrivateBreakpointWidgetService = createDecorator<IPrivateBreakpointWidgetService>('privateBreakopintWidgetService');
export interface IPrivateBreakpointWidgetService {
_serviceBrand: any;
close(success: boolean): void;
}
const DECORATION_KEY = 'breakpointwidgetdecoration';
export class BreakpointWidget extends ZoneWidget implements IPrivateBreakopintWidgetService {
export class BreakpointWidget extends ZoneWidget implements IPrivateBreakpointWidgetService {
public _serviceBrand: any;
private selectContainer: HTMLElement;
......@@ -201,7 +201,7 @@ export class BreakpointWidget extends ZoneWidget implements IPrivateBreakopintWi
this.toDispose.push(scopedContextKeyService);
const scopedInstatiationService = this.instantiationService.createChild(new ServiceCollection(
[IContextKeyService, scopedContextKeyService], [IPrivateBreakopintWidgetService, this]));
[IContextKeyService, scopedContextKeyService], [IPrivateBreakpointWidgetService, this]));
const options = SimpleDebugEditor.getEditorOptions();
const codeEditorWidgetOptions = SimpleDebugEditor.getCodeEditorWidgetOptions();
......@@ -306,7 +306,7 @@ class AcceptBreakpointWidgetInputAction extends EditorCommand {
}
public runEditorCommand(accessor: ServicesAccessor, editor: ICodeEditor): void {
accessor.get(IPrivateBreakopintWidgetService).close(true);
accessor.get(IPrivateBreakpointWidgetService).close(true);
}
}
......@@ -331,7 +331,7 @@ class CloseBreakpointWidgetCommand extends EditorCommand {
return debugContribution.closeBreakpointWidget();
}
accessor.get(IPrivateBreakopintWidgetService).close(false);
accessor.get(IPrivateBreakpointWidgetService).close(false);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册