Skip to content

Commit

Permalink
dotNet* runtimes are no longer creatable in cloud9 (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryceitoc9 authored Nov 11, 2020
1 parent 5fd43f3 commit 98421b6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lambda/models/samLambdaRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import * as vscode from 'vscode'
import { Runtime } from 'aws-sdk/clients/lambda'
import { Map as ImmutableMap, Set as ImmutableSet } from 'immutable'
import * as picker from '../../shared/ui/picker'
import { isCloud9 } from '../../shared/extensionUtilities'

export enum RuntimeFamily {
Unknown,
Expand Down Expand Up @@ -42,9 +43,10 @@ export const samLambdaRuntimes: ImmutableSet<Runtime> = ImmutableSet.union([
export const samLambdaImportableRuntimes: ImmutableSet<Runtime> = ImmutableSet.union([nodeJsRuntimes, pythonRuntimes])

// Filter out node8 until local debugging is no longer supported, and it can be removed from samLambdaRuntimes
export const samLambdaCreatableRuntimes: ImmutableSet<Runtime> = samLambdaRuntimes.filter(
runtime => runtime !== 'nodejs8.10'
)
// Doesn't include dotNetRuntimes if Cloud9.
export const samLambdaCreatableRuntimes: ImmutableSet<Runtime> = isCloud9()
? samLambdaImportableRuntimes.filter((runtime: string) => runtime !== 'nodejs8.10')
: samLambdaRuntimes.filter((runtime: string) => runtime !== 'nodejs8.10')

export type DependencyManager = 'cli-package' | 'mod' | 'gradle' | 'pip' | 'npm' | 'maven' | 'bundler'

Expand Down

0 comments on commit 98421b6

Please sign in to comment.