@@ -12,22 +12,26 @@ import { LaunchConfiguration } from '../../../shared/debug/launchConfiguration'
12
12
import { API_TARGET_TYPE , TEMPLATE_TARGET_TYPE } from '../../../shared/sam/debugger/awsSamDebugConfiguration'
13
13
import * as workspaceUtils from '../../../shared/utilities/workspaceUtils'
14
14
15
- describe ( 'SamTemplateCodeLensProvider' , async function ( ) {
15
+ describe ( 'SamTemplateCodeLensProvider' , async function ( ) {
16
16
let codeLensProvider : SamTemplateCodeLensProvider = new SamTemplateCodeLensProvider ( )
17
17
let document : vscode . TextDocument
18
18
let launchConfig : LaunchConfiguration
19
19
let templateUri : vscode . Uri
20
20
let mockCancellationToken : vscode . CancellationToken
21
21
22
- beforeEach ( async function ( ) {
22
+ beforeEach ( async function ( ) {
23
23
codeLensProvider = new SamTemplateCodeLensProvider ( )
24
24
document = ( await workspaceUtils . openTextDocument ( 'python3.7-plain-sam-app/template.yaml' ) ) !
25
25
templateUri = document . uri
26
26
launchConfig = new LaunchConfiguration ( document . uri )
27
27
mockCancellationToken = mock ( )
28
28
} )
29
29
30
- it ( 'provides a CodeLens for a file with a new resource' , async function ( ) {
30
+ it ( 'provides a CodeLens for a file with a new resource' , async function ( ) {
31
+ if ( vscode . version . startsWith ( '1.42' ) ) {
32
+ this . skip ( )
33
+ }
34
+
31
35
const codeLenses = await codeLensProvider . provideCodeLenses (
32
36
document ,
33
37
instance ( mockCancellationToken ) ,
@@ -62,7 +66,7 @@ describe('SamTemplateCodeLensProvider', async function() {
62
66
assert . deepStrictEqual ( codeLenses , expectedCodeLens )
63
67
} )
64
68
65
- it ( 'provides no code lenses for a file with no resources' , async function ( ) {
69
+ it ( 'provides no code lenses for a file with no resources' , async function ( ) {
66
70
const mockSymbolResolver : TemplateSymbolResolver = mock ( )
67
71
when ( mockSymbolResolver . getResourcesOfKind ( 'function' , anything ( ) ) ) . thenResolve ( [ ] )
68
72
0 commit comments