type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
ClassDeclaration |
export class CursorWordEndLeft extends WordLeftCommand {
constructor() {
super({
inSelectionMode: false,
wordNavigationType: WordNavigationType.WordEnd,
id: 'cursorWordEndLeft',
precondition: undefined
});
}
} | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class CursorWordLeft extends WordLeftCommand {
constructor() {
super({
inSelectionMode: false,
wordNavigationType: WordNavigationType.WordStartFast,
id: 'cursorWordLeft',
precondition: undefined
});
}
} | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class CursorWordStartLeftSelect extends WordLeftCommand {
constructor() {
super({
inSelectionMode: true,
wordNavigationType: WordNavigationType.WordStart,
id: 'cursorWordStartLeftSelect',
precondition: undefined,
kbOpts: {
kbExpr: EditorContextKeys.textInputFocus,
primary: KeyMod.CtrlC... | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class CursorWordEndLeftSelect extends WordLeftCommand {
constructor() {
super({
inSelectionMode: true,
wordNavigationType: WordNavigationType.WordEnd,
id: 'cursorWordEndLeftSelect',
precondition: undefined
});
}
} | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class CursorWordLeftSelect extends WordLeftCommand {
constructor() {
super({
inSelectionMode: true,
wordNavigationType: WordNavigationType.WordStartFast,
id: 'cursorWordLeftSelect',
precondition: undefined
});
}
} | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration | // Accessibility navigation commands should only be enabled on windows since they are tuned to what NVDA expects
export class CursorWordAccessibilityLeft extends WordLeftCommand {
constructor() {
super({
inSelectionMode: false,
wordNavigationType: WordNavigationType.WordAccessibility,
id: 'cursorWordAccessi... | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class CursorWordAccessibilityLeftSelect extends WordLeftCommand {
constructor() {
super({
inSelectionMode: true,
wordNavigationType: WordNavigationType.WordAccessibility,
id: 'cursorWordAccessibilityLeftSelect',
precondition: undefined,
kbOpts: {
kbExpr: ContextKeyExpr.and(EditorContextKey... | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class CursorWordStartRight extends WordRightCommand {
constructor() {
super({
inSelectionMode: false,
wordNavigationType: WordNavigationType.WordStart,
id: 'cursorWordStartRight',
precondition: undefined
});
}
} | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class CursorWordEndRight extends WordRightCommand {
constructor() {
super({
inSelectionMode: false,
wordNavigationType: WordNavigationType.WordEnd,
id: 'cursorWordEndRight',
precondition: undefined,
kbOpts: {
kbExpr: EditorContextKeys.textInputFocus,
primary: KeyMod.CtrlCmd | KeyCode.R... | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class CursorWordRight extends WordRightCommand {
constructor() {
super({
inSelectionMode: false,
wordNavigationType: WordNavigationType.WordEnd,
id: 'cursorWordRight',
precondition: undefined
});
}
} | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class CursorWordStartRightSelect extends WordRightCommand {
constructor() {
super({
inSelectionMode: true,
wordNavigationType: WordNavigationType.WordStart,
id: 'cursorWordStartRightSelect',
precondition: undefined
});
}
} | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class CursorWordEndRightSelect extends WordRightCommand {
constructor() {
super({
inSelectionMode: true,
wordNavigationType: WordNavigationType.WordEnd,
id: 'cursorWordEndRightSelect',
precondition: undefined,
kbOpts: {
kbExpr: EditorContextKeys.textInputFocus,
primary: KeyMod.CtrlCmd ... | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class CursorWordRightSelect extends WordRightCommand {
constructor() {
super({
inSelectionMode: true,
wordNavigationType: WordNavigationType.WordEnd,
id: 'cursorWordRightSelect',
precondition: undefined
});
}
} | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class CursorWordAccessibilityRight extends WordRightCommand {
constructor() {
super({
inSelectionMode: false,
wordNavigationType: WordNavigationType.WordAccessibility,
id: 'cursorWordAccessibilityRight',
precondition: undefined,
kbOpts: {
kbExpr: ContextKeyExpr.and(EditorContextKeys.textIn... | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class CursorWordAccessibilityRightSelect extends WordRightCommand {
constructor() {
super({
inSelectionMode: true,
wordNavigationType: WordNavigationType.WordAccessibility,
id: 'cursorWordAccessibilityRightSelect',
precondition: undefined,
kbOpts: {
kbExpr: ContextKeyExpr.and(EditorContext... | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export abstract class DeleteWordCommand extends EditorCommand {
private readonly _whitespaceHeuristics: boolean;
private readonly _wordNavigationType: WordNavigationType;
constructor(opts: DeleteWordOptions) {
super(opts);
this._whitespaceHeuristics = opts.whitespaceHeuristics;
this._wordNavigationType = opt... | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class DeleteWordLeftCommand extends DeleteWordCommand {
protected _delete(wordSeparators: WordCharacterClassifier, model: ITextModel, selection: Selection, whitespaceHeuristics: boolean, wordNavigationType: WordNavigationType): Range {
let r = WordOperations.deleteWordLeft(wordSeparators, model, selection, w... | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class DeleteWordRightCommand extends DeleteWordCommand {
protected _delete(wordSeparators: WordCharacterClassifier, model: ITextModel, selection: Selection, whitespaceHeuristics: boolean, wordNavigationType: WordNavigationType): Range {
let r = WordOperations.deleteWordRight(wordSeparators, model, selection,... | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class DeleteWordStartLeft extends DeleteWordLeftCommand {
constructor() {
super({
whitespaceHeuristics: false,
wordNavigationType: WordNavigationType.WordStart,
id: 'deleteWordStartLeft',
precondition: EditorContextKeys.writable
});
}
} | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class DeleteWordEndLeft extends DeleteWordLeftCommand {
constructor() {
super({
whitespaceHeuristics: false,
wordNavigationType: WordNavigationType.WordEnd,
id: 'deleteWordEndLeft',
precondition: EditorContextKeys.writable
});
}
} | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class DeleteWordLeft extends DeleteWordLeftCommand {
constructor() {
super({
whitespaceHeuristics: true,
wordNavigationType: WordNavigationType.WordStart,
id: 'deleteWordLeft',
precondition: EditorContextKeys.writable,
kbOpts: {
kbExpr: EditorContextKeys.textInputFocus,
primary: KeyMod... | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class DeleteWordStartRight extends DeleteWordRightCommand {
constructor() {
super({
whitespaceHeuristics: false,
wordNavigationType: WordNavigationType.WordStart,
id: 'deleteWordStartRight',
precondition: EditorContextKeys.writable
});
}
} | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class DeleteWordEndRight extends DeleteWordRightCommand {
constructor() {
super({
whitespaceHeuristics: false,
wordNavigationType: WordNavigationType.WordEnd,
id: 'deleteWordEndRight',
precondition: EditorContextKeys.writable
});
}
} | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
ClassDeclaration |
export class DeleteWordRight extends DeleteWordRightCommand {
constructor() {
super({
whitespaceHeuristics: true,
wordNavigationType: WordNavigationType.WordEnd,
id: 'deleteWordRight',
precondition: EditorContextKeys.writable,
kbOpts: {
kbExpr: EditorContextKeys.textInputFocus,
primary: KeyMo... | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
InterfaceDeclaration |
export interface MoveWordOptions extends ICommandOptions {
inSelectionMode: boolean;
wordNavigationType: WordNavigationType;
} | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
InterfaceDeclaration |
export interface DeleteWordOptions extends ICommandOptions {
whitespaceHeuristics: boolean;
wordNavigationType: WordNavigationType;
} | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
MethodDeclaration |
public runEditorCommand(accessor: ServicesAccessor, editor: ICodeEditor, args: any): void {
if (!editor.hasModel()) {
return;
}
const wordSeparators = getMapForWordSeparators(editor.getOption(EditorOption.wordSeparators));
const model = editor.getModel();
const selections = editor.getSelections();
cons... | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
MethodDeclaration |
private _moveTo(from: Selection, to: Position, inSelectionMode: boolean): Selection {
if (inSelectionMode) {
// move just position
return new Selection(
from.selectionStartLineNumber,
from.selectionStartColumn,
to.lineNumber,
to.column
);
} else {
// move everything
return new Select... | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
MethodDeclaration |
protected abstract _move(wordSeparators: WordCharacterClassifier, model: ITextModel, position: Position, wordNavigationType: WordNavigationType): Position; | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
MethodDeclaration |
protected _move(wordSeparators: WordCharacterClassifier, model: ITextModel, position: Position, wordNavigationType: WordNavigationType): Position {
return WordOperations.moveWordLeft(wordSeparators, model, position, wordNavigationType);
} | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
MethodDeclaration |
protected _move(wordSeparators: WordCharacterClassifier, model: ITextModel, position: Position, wordNavigationType: WordNavigationType): Position {
return WordOperations.moveWordRight(wordSeparators, model, position, wordNavigationType);
} | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
MethodDeclaration |
protected _move(_: WordCharacterClassifier, model: ITextModel, position: Position, wordNavigationType: WordNavigationType): Position {
return super._move(getMapForWordSeparators(EditorOptions.wordSeparators.defaultValue), model, position, wordNavigationType);
} | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
MethodDeclaration |
public runEditorCommand(accessor: ServicesAccessor, editor: ICodeEditor, args: any): void {
if (!editor.hasModel()) {
return;
}
const wordSeparators = getMapForWordSeparators(editor.getOption(EditorOption.wordSeparators));
const model = editor.getModel();
const selections = editor.getSelections();
cons... | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
MethodDeclaration |
protected abstract _delete(wordSeparators: WordCharacterClassifier, model: ITextModel, selection: Selection, whitespaceHeuristics: boolean, wordNavigationType: WordNavigationType): Range; | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
MethodDeclaration |
protected _delete(wordSeparators: WordCharacterClassifier, model: ITextModel, selection: Selection, whitespaceHeuristics: boolean, wordNavigationType: WordNavigationType): Range {
let r = WordOperations.deleteWordLeft(wordSeparators, model, selection, whitespaceHeuristics, wordNavigationType);
if (r) {
return r... | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
MethodDeclaration |
protected _delete(wordSeparators: WordCharacterClassifier, model: ITextModel, selection: Selection, whitespaceHeuristics: boolean, wordNavigationType: WordNavigationType): Range {
let r = WordOperations.deleteWordRight(wordSeparators, model, selection, whitespaceHeuristics, wordNavigationType);
if (r) {
return ... | 0tt0sson/vscode | src/vs/editor/contrib/wordOperations/wordOperations.ts | TypeScript |
FunctionDeclaration |
export default async function () {
// setup
const argv = getGlobalVariable('argv');
if (argv.noglobal) {
return;
}
fs.writeFileSync('.npmrc', 'registry = http://localhost:4873', 'utf8');
await silentNpm(
'install',
'-g',
'@angular-devkit/schematics-cli',
'--registry=http://localhost:4... | kamilmysliwiec/angular-cli | tests/legacy-cli/e2e/tests/schematics_cli/schematic-test.ts | TypeScript |
FunctionDeclaration |
export function adt<T>(tag: T, value?: undefined): ADT<T>; | ryanjagar/ykgov_digital-marketplace | src/shared/lib/types.ts | TypeScript |
FunctionDeclaration |
export function adt<T, V>(tag: T, value: V): ADT<T, V>; | ryanjagar/ykgov_digital-marketplace | src/shared/lib/types.ts | TypeScript |
FunctionDeclaration |
export function adt<T extends ADT<unknown, unknown>>(tag: T['tag'], value: T['value']): ADT<T['tag'], T['value']> {
return { tag, value };
} | ryanjagar/ykgov_digital-marketplace | src/shared/lib/types.ts | TypeScript |
FunctionDeclaration |
export function adtCurried<T extends ADT<unknown, unknown>>(tag: T['tag']): ((value: T['value']) => ADT<T['tag'], T['value']>) {
return value => adt(tag, value);
} | ryanjagar/ykgov_digital-marketplace | src/shared/lib/types.ts | TypeScript |
ArrowFunction |
value => adt(tag, value) | ryanjagar/ykgov_digital-marketplace | src/shared/lib/types.ts | TypeScript |
InterfaceDeclaration | /**
* "ADT" stands for "Algebraic Data Type".
*
* ```
* type Color
* = ADT<'red'>
* | ADT<'blue'>
* | ADT<'green'>
* | ADT<'rgb', [number, number, number]>;
*
* const red: Color = { tag: 'red', value: undefined };
* const rgb: Color = { tag: 'rgb', value: [123, 255, 7] };
* ```
*/
export interface ... | ryanjagar/ykgov_digital-marketplace | src/shared/lib/types.ts | TypeScript |
InterfaceDeclaration |
export interface BodyWithErrors {
permissions?: string[];
database?: string[];
notFound?: string[];
conflict?: string[];
} | ryanjagar/ykgov_digital-marketplace | src/shared/lib/types.ts | TypeScript |
EnumDeclaration |
export enum ClientHttpMethod {
Get = 'GET',
Post = 'POST',
Put = 'PUT',
Patch = 'PATCH',
Delete = 'DELETE',
Options = 'OPTIONS'
} | ryanjagar/ykgov_digital-marketplace | src/shared/lib/types.ts | TypeScript |
TypeAliasDeclaration |
export type Id = string; | ryanjagar/ykgov_digital-marketplace | src/shared/lib/types.ts | TypeScript |
TypeAliasDeclaration |
export type Defined<T> = Exclude<T, undefined>; | ryanjagar/ykgov_digital-marketplace | src/shared/lib/types.ts | TypeScript |
TypeAliasDeclaration |
export type IfElse<T, Extends, Yes, No> = T extends Extends ? Yes : No; | ryanjagar/ykgov_digital-marketplace | src/shared/lib/types.ts | TypeScript |
TypeAliasDeclaration |
export type IfDefined<T, IsDefined, IsUndefined = undefined> = IfElse<T, undefined, IsUndefined, IsDefined>; | ryanjagar/ykgov_digital-marketplace | src/shared/lib/types.ts | TypeScript |
TypeAliasDeclaration |
export type Comparison = -1 | 0 | 1; | ryanjagar/ykgov_digital-marketplace | src/shared/lib/types.ts | TypeScript |
ArrowFunction |
() => I18nService | Kodzhabashev/truly-ui | projects/truly-ui/src/components/editor/model/toolbar-config.model.ts | TypeScript |
ClassDeclaration |
export class ToolbarConfigModel {
constructor( @Inject( forwardRef( () => I18nService)) public i18n: I18nService ) {}
public font = {
family: { show: true, tooltipText: this.i18n.getLocale().Editor.fontFamilyText },
size: { show: true, tooltipText: this.i18n.getLocale().Editor.fontSizeText },
bold: {... | Kodzhabashev/truly-ui | projects/truly-ui/src/components/editor/model/toolbar-config.model.ts | TypeScript |
ArrowFunction |
(emitter: EventMultiplexer<InstallExtensionOnServerEvent>, server) => { emitter.add(Event.map(server.extensionManagementService.onInstallExtension, e => ({ ...e, server }))); return emitter; } | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
ArrowFunction |
e => ({ ...e, server }) | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
ArrowFunction |
(emitter: EventMultiplexer<readonly InstallExtensionResult[]>, server) => { emitter.add(server.extensionManagementService.onDidInstallExtensions); return emitter; } | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
ArrowFunction |
(emitter: EventMultiplexer<UninstallExtensionOnServerEvent>, server) => { emitter.add(Event.map(server.extensionManagementService.onUninstallExtension, e => ({ ...e, server }))); return emitter; } | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
ArrowFunction |
(emitter: EventMultiplexer<DidUninstallExtensionOnServerEvent>, server) => { emitter.add(Event.map(server.extensionManagementService.onDidUninstallExtension, e => ({ ...e, server }))); return emitter; } | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
ArrowFunction |
({ extensionManagementService }) => extensionManagementService.getInstalled(type, donotIgnoreInvalidExtensions) | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
ArrowFunction |
s => s !== server | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
ArrowFunction |
i => !i.isBuiltin && areSameExtensions(i.identifier, extension.identifier) | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
ArrowFunction |
i => !this.extensionManifestPropertiesService.prefersExecuteOnUI(i.manifest)
&& i.manifest.extensionDependencies && i.manifest.extensionDependencies.some(id => areSameExtensions({ id }, extension.identifier)) | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
ArrowFunction |
id => areSameExtensions({ id }, extension.identifier) | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
ArrowFunction |
server => server !== this.extensionManagementServerService.webExtensionManagementServer | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
ArrowFunction |
({ extensionManagementService }) => extensionManagementService.unzip(zipLocation) | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
ArrowFunction |
([extensionIdentifier]) => extensionIdentifier | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
ArrowFunction |
server => this.installVSIX(vsix, server, options) | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
ArrowFunction |
server => server.extensionManagementService.installFromGallery(gallery, installOptions) | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
ArrowFunction |
([local]) => local | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
ArrowFunction |
extension => this.installFromGallery(extension, installOptions) | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
ArrowFunction |
id => ({ id }) | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
async getInstalled(type?: ExtensionType, donotIgnoreInvalidExtensions?: boolean): Promise<ILocalExtension[]> {
const result = await Promise.all(this.servers.map(({ extensionManagementService }) => extensionManagementService.getInstalled(type, donotIgnoreInvalidExtensions)));
return flatten(result);
} | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
async uninstall(extension: ILocalExtension, options?: UninstallOptions): Promise<void> {
const server = this.getServer(extension);
if (!server) {
return Promise.reject(`Invalid location ${extension.location.toString()}`);
}
if (this.servers.length > 1) {
if (isLanguagePackExtension(extension.manifest)) {... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
private async uninstallEverywhere(extension: ILocalExtension): Promise<void> {
const server = this.getServer(extension);
if (!server) {
return Promise.reject(`Invalid location ${extension.location.toString()}`);
}
const promise = server.extensionManagementService.uninstall(extension);
const otherServers: ... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
private async uninstallInServer(extension: ILocalExtension, server: IExtensionManagementServer, options?: UninstallOptions): Promise<void> {
if (server === this.extensionManagementServerService.localExtensionManagementServer) {
const installedExtensions = await this.extensionManagementServerService.remoteExtensio... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
private getDependentsErrorMessage(extension: ILocalExtension, dependents: ILocalExtension[]): string {
if (dependents.length === 1) {
return localize('singleDependentError', "Cannot uninstall extension '{0}'. Extension '{1}' depends on this.",
extension.manifest.displayName || extension.manifest.name, depende... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
async reinstallFromGallery(extension: ILocalExtension): Promise<void> {
const server = this.getServer(extension);
if (server) {
await this.checkForWorkspaceTrust(extension.manifest);
return server.extensionManagementService.reinstallFromGallery(extension);
}
return Promise.reject(`Invalid location ${exte... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
updateMetadata(extension: ILocalExtension, metadata: IGalleryMetadata): Promise<ILocalExtension> {
const server = this.getServer(extension);
if (server) {
return server.extensionManagementService.updateMetadata(extension, metadata);
}
return Promise.reject(`Invalid location ${extension.location.toString()}`... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
updateExtensionScope(extension: ILocalExtension, isMachineScoped: boolean): Promise<ILocalExtension> {
const server = this.getServer(extension);
if (server) {
return server.extensionManagementService.updateExtensionScope(extension, isMachineScoped);
}
return Promise.reject(`Invalid location ${extension.loca... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
zip(extension: ILocalExtension): Promise<URI> {
const server = this.getServer(extension);
if (server) {
return server.extensionManagementService.zip(extension);
}
return Promise.reject(`Invalid location ${extension.location.toString()}`);
} | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
unzip(zipLocation: URI): Promise<IExtensionIdentifier> {
return Promises.settled(this.servers
// Filter out web server
.filter(server => server !== this.extensionManagementServerService.webExtensionManagementServer)
.map(({ extensionManagementService }) => extensionManagementService.unzip(zipLocation))).the... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
async install(vsix: URI, options?: InstallVSIXOptions): Promise<ILocalExtension> {
if (this.extensionManagementServerService.localExtensionManagementServer && this.extensionManagementServerService.remoteExtensionManagementServer) {
const manifest = await this.getManifest(vsix);
if (isLanguagePackExtension(mani... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
async installWebExtension(location: URI): Promise<ILocalExtension> {
if (!this.extensionManagementServerService.webExtensionManagementServer) {
throw new Error('Web extension management server is not found');
}
return this.extensionManagementServerService.webExtensionManagementServer.extensionManagementServic... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
protected async installVSIX(vsix: URI, server: IExtensionManagementServer, options: InstallVSIXOptions | undefined): Promise<ILocalExtension> {
const manifest = await this.getManifest(vsix);
if (manifest) {
await this.checkForWorkspaceTrust(manifest);
return server.extensionManagementService.install(vsix, op... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
getManifest(vsix: URI): Promise<IExtensionManifest> {
if (vsix.scheme === Schemas.file && this.extensionManagementServerService.localExtensionManagementServer) {
return this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.getManifest(vsix);
}
if (vsix.scheme === Sche... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
async canInstall(gallery: IGalleryExtension): Promise<boolean> {
if (this.extensionManagementServerService.localExtensionManagementServer
&& await this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.canInstall(gallery)) {
return true;
}
const manifest = await thi... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
async updateFromGallery(gallery: IGalleryExtension, extension: ILocalExtension, installOptions?: InstallOptions): Promise<ILocalExtension> {
const server = this.getServer(extension);
if (!server) {
return Promise.reject(`Invalid location ${extension.location.toString()}`);
}
const servers: IExtensionManage... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
async installExtensions(extensions: IGalleryExtension[], installOptions?: InstallOptions): Promise<ILocalExtension[]> {
if (!installOptions) {
const isMachineScoped = await this.hasToFlagExtensionsMachineScoped(extensions);
installOptions = { isMachineScoped, isBuiltin: false };
}
return Promises.settled(e... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
async installFromGallery(gallery: IGalleryExtension, installOptions?: InstallOptions): Promise<ILocalExtension> {
const manifest = await this.extensionGalleryService.getManifest(gallery, CancellationToken.None);
if (!manifest) {
return Promise.reject(localize('Manifest is not found', "Installing Extension {0} ... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
getExtensionManagementServerToInstall(manifest: IExtensionManifest): IExtensionManagementServer | null {
// Only local server
if (this.servers.length === 1 && this.extensionManagementServerService.localExtensionManagementServer) {
return this.extensionManagementServerService.localExtensionManagementServer;
}... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
private isExtensionsSyncEnabled(): boolean {
return this.userDataAutoSyncEnablementService.isEnabled() && this.userDataSyncResourceEnablementService.isResourceEnabled(SyncResource.Extensions);
} | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
private async hasToFlagExtensionsMachineScoped(extensions: IGalleryExtension[]): Promise<boolean> {
if (this.isExtensionsSyncEnabled()) {
const result = await this.dialogService.show(
Severity.Info,
extensions.length === 1 ? localize('install extension', "Install Extension") : localize('install extensions... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
getExtensionsReport(): Promise<IReportedExtension[]> {
if (this.extensionManagementServerService.localExtensionManagementServer) {
return this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.getExtensionsReport();
}
if (this.extensionManagementServerService.remoteExt... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
private getServer(extension: ILocalExtension): IExtensionManagementServer | null {
return this.extensionManagementServerService.getExtensionManagementServer(extension);
} | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
protected async checkForWorkspaceTrust(manifest: IExtensionManifest): Promise<void> {
if (this.extensionManifestPropertiesService.getExtensionUntrustedWorkspaceSupportType(manifest) === false) {
const trustState = await this.workspaceTrustRequestService.requestWorkspaceTrust({
message: localize('extensionInst... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
private async checkInstallingExtensionPackOnWeb(extension: IGalleryExtension, manifest: IExtensionManifest): Promise<void> {
if (!manifest.extensionPack?.length) {
return;
}
if (this.servers.length !== 1 || this.servers[0] !== this.extensionManagementServerService.webExtensionManagementServer) {
return;
... | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
registerParticipant() { throw new Error('Not Supported'); } | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
MethodDeclaration |
getTargetPlatform(): Promise<TargetPlatform> { throw new Error('Not Supported'); } | Alpha-Girl/vscode | src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts | TypeScript |
FunctionDeclaration |
export function parseRequest(req: IncomingMessage) {
console.log('HTTP ' + req.url);
const { pathname, query } = parse(req.url || '/', true);
const { fontSize, images, widths, heights, theme, md } = (query || {});
if (Array.isArray(fontSize)) {
throw new Error('Expected a single fontSize');
... | kaspar-naaber/og-image | api/_lib/parser.ts | TypeScript |
FunctionDeclaration |
function getArray(stringOrArray: string[] | string | undefined): string[] {
if (typeof stringOrArray === 'undefined') {
return [];
} else if (Array.isArray(stringOrArray)) {
return stringOrArray;
} else {
return [stringOrArray];
}
} | kaspar-naaber/og-image | api/_lib/parser.ts | TypeScript |
FunctionDeclaration |
function getDefaultImages(images: string[], theme: Theme): string[] {
const defaultImage = theme === 'light'
? 'https://manage.e-resident.gov.ee/company/image/profile_logo/202109/6rYn1fAPNQ_1632924814.png'
: 'https://manage.e-resident.gov.ee/company/image/profile_logo/202109/6rYn1fAPNQ_1632924814.p... | kaspar-naaber/og-image | api/_lib/parser.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.