11'use strict' ;
22
3- const vscode = require ( 'vscode' ) ;
3+ const workspace = require ( 'vscode' ) . workspace ;
44const fs = require ( 'fs' ) ;
55const path = require ( 'path' ) ;
66
@@ -9,7 +9,7 @@ const snippets = require('./snippets');
99/** Lazily activates extension once on emitted event. */
1010exports . activate = context => {
1111 const extensionId = 'javascript-snippets' ;
12- let configuration = vscode . workspace . getConfiguration ( extensionId ) ;
12+ let configuration = workspace . getConfiguration ( extensionId ) ;
1313
1414 // FIXME: Check if snippets needs to be generated
1515 try {
@@ -20,7 +20,7 @@ exports.activate = context => {
2020 // TODO: Handle error
2121 }
2222
23- const subscription = vscode . workspace . onDidChangeConfiguration ( ( ) => {
23+ const subscription = workspace . onDidChangeConfiguration ( ( ) => {
2424 const previousConfiguration = configuration ;
2525 configuration = listener ( previousConfiguration , extensionId ) ;
2626 } ) ;
@@ -30,7 +30,7 @@ exports.activate = context => {
3030
3131/** Listens for changes in extension configuration and return effective user's settings. */
3232function listener ( previousConfiguration , extensionId ) {
33- const configuration = vscode . workspace . getConfiguration ( extensionId ) ;
33+ const configuration = workspace . getConfiguration ( extensionId ) ;
3434
3535 const hasSemicolons = configuration . get ( 'semicolons' ) ;
3636 if ( hasSemicolons !== previousConfiguration . get ( 'semicolons' ) ) {
0 commit comments