@@ -88,7 +88,7 @@ export function activate(context: vscode.ExtensionContext) {
8888 const validateGetLanguage = ( languageId : string ) => {
8989 if ( disabledLanguages ?. has ( languageId ) ) {
9090 throw new Error (
91- `${ languageId } is disabled on vscode versions 1.98.0 through 1.06.3. See https://github.com/cursorless-dev/cursorless/issues/2879`
91+ `${ languageId } is disabled on vscode versions 1.98.0 through 1.06.3. See https://github.com/cursorless-dev/cursorless/issues/2879` ,
9292 ) ;
9393 }
9494 } ;
@@ -118,7 +118,7 @@ export function activate(context: vscode.ExtensionContext) {
118118 absolute = path . join (
119119 context . extensionPath ,
120120 "parsers" ,
121- language . module + ".wasm"
121+ language . module + ".wasm" ,
122122 ) ;
123123 }
124124
@@ -187,7 +187,7 @@ export function activate(context: vscode.ExtensionContext) {
187187
188188 function updateTree (
189189 parser : treeSitter . Parser ,
190- edit : vscode . TextDocumentChangeEvent
190+ edit : vscode . TextDocumentChangeEvent ,
191191 ) {
192192 if ( edit . contentChanges . length === 0 ) {
193193 return ;
@@ -240,20 +240,20 @@ export function activate(context: vscode.ExtensionContext) {
240240 async function openIfVisible ( document : vscode . TextDocument ) {
241241 if (
242242 vscode . window . visibleTextEditors . some (
243- ( editor ) => editor . document . uri . toString ( ) === document . uri . toString ( )
243+ ( editor ) => editor . document . uri . toString ( ) === document . uri . toString ( ) ,
244244 )
245245 ) {
246246 await open ( document ) ;
247247 }
248248 }
249249
250250 context . subscriptions . push (
251- vscode . window . onDidChangeVisibleTextEditors ( colorAllOpen )
251+ vscode . window . onDidChangeVisibleTextEditors ( colorAllOpen ) ,
252252 ) ;
253253 context . subscriptions . push ( vscode . workspace . onDidChangeTextDocument ( edit ) ) ;
254254 context . subscriptions . push ( vscode . workspace . onDidCloseTextDocument ( close ) ) ;
255255 context . subscriptions . push (
256- vscode . workspace . onDidOpenTextDocument ( openIfVisible )
256+ vscode . workspace . onDidOpenTextDocument ( openIfVisible ) ,
257257 ) ;
258258
259259 // Don't wait for the initial color, it takes too long to inspect the themes and causes VSCode extension host to hang
@@ -264,7 +264,7 @@ export function activate(context: vscode.ExtensionContext) {
264264
265265 if ( ret == null ) {
266266 const document = vscode . workspace . textDocuments . find (
267- ( textDocument ) => textDocument . uri . toString ( ) === uri . toString ( )
267+ ( textDocument ) => textDocument . uri . toString ( ) === uri . toString ( ) ,
268268 ) ;
269269
270270 if ( document == null ) {
@@ -298,15 +298,15 @@ export function activate(context: vscode.ExtensionContext) {
298298 */
299299 getLanguage ( languageId : string ) : treeSitter . Language | undefined {
300300 console . warn (
301- "vscode-parse-tree: getLanguage is deprecated, use createQuery(languageId, source) instead."
301+ "vscode-parse-tree: getLanguage is deprecated, use createQuery(languageId, source) instead." ,
302302 ) ;
303303 validateGetLanguage ( languageId ) ;
304304 return languages [ languageId ] ?. parser ?. language ?? undefined ;
305305 } ,
306306
307307 createQuery (
308308 languageId : string ,
309- source : string
309+ source : string ,
310310 ) : treeSitter . Query | undefined {
311311 const language = languages [ languageId ] ?. parser ?. language ;
312312 if ( language == null ) {
0 commit comments