File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,19 +12,19 @@ export let documentEol: string;
1212export let platformEol : string ;
1313
1414/**
15- * Activates the vscode.lsp-sample extension
15+ * Activates the kddejong.vscode-cfn-lint extension
1616 */
1717export async function activate ( docUri : vscode . Uri ) {
18- // The extensionId is `publisher.name` from package.json
1918 const ext = vscode . extensions . getExtension ( 'kddejong.vscode-cfn-lint' ) ! ;
2019 await ext . activate ( ) ;
20+ await vscode . workspace . getConfiguration ( ) . update ( 'yaml.validate' , false , vscode . ConfigurationTarget . Global ) ;
2121 try {
2222 doc = await vscode . workspace . openTextDocument ( docUri ) ;
2323 editor = await vscode . window . showTextDocument ( doc ) ;
24- vscode . workspace . getConfiguration ( ) . update ( 'yaml.validate' , false , vscode . ConfigurationTarget . Global ) ;
2524 await sleep ( 4000 ) ; // Wait for server activation
2625 } catch ( e ) {
2726 console . error ( e ) ;
27+ throw ( e ) ;
2828 }
2929}
3030
You can’t perform that action at this time.
0 commit comments