1- import { getCursorlessApi } from "@cursorless/vscode-common" ;
21import type { ScopeTypeInfo } from "@cursorless/common" ;
3- import { sleep } from "@cursorless/common" ;
2+ import { DOCS_URL , sleep } from "@cursorless/common" ;
3+ import { getCursorlessApi } from "@cursorless/vscode-common" ;
4+ import { stat , unlink , writeFile } from "fs/promises" ;
45import * as sinon from "sinon" ;
56import { assertCalledWithScopeInfo } from "./assertCalledWithScopeInfo" ;
6- import { stat , unlink , writeFile } from "fs/promises" ;
77
88/**
99 * Tests that the scope provider correctly reports custom spoken forms
@@ -152,8 +152,7 @@ const squareMissing: ScopeTypeInfo = {
152152 scopeType : { type : "surroundingPair" , delimiter : "squareBrackets" } ,
153153 spokenForm : {
154154 isPrivate : false ,
155- reason :
156- "paired delimiter with id squareBrackets; please update talon to the latest version (see https://www.cursorless.org/docs/user/updating/)" ,
155+ reason : `paired delimiter with id squareBrackets; please update talon to the latest version (see ${ DOCS_URL } /user/updating)` ,
157156 requiresTalonUpdate : true ,
158157 type : "error" ,
159158 } ,
@@ -195,8 +194,7 @@ const lambdaCustom: ScopeTypeInfo = {
195194 scopeType : { type : "anonymousFunction" } ,
196195 spokenForm : {
197196 isPrivate : false ,
198- reason :
199- "simple scope type type with id anonymousFunction; please see https://www.cursorless.org/docs/user/customization/ for more information" ,
197+ reason : `simple scope type type with id anonymousFunction; please see ${ DOCS_URL } /user/customization for more information` ,
200198 requiresTalonUpdate : false ,
201199 type : "error" ,
202200 } ,
@@ -218,8 +216,7 @@ const statementMissing: ScopeTypeInfo = {
218216 scopeType : { type : "statement" } ,
219217 spokenForm : {
220218 isPrivate : false ,
221- reason :
222- "simple scope type type with id statement; please update talon to the latest version (see https://www.cursorless.org/docs/user/updating/)" ,
219+ reason : `simple scope type type with id statement; please update talon to the latest version (see ${ DOCS_URL } /user/updating)` ,
223220 requiresTalonUpdate : true ,
224221 type : "error" ,
225222 } ,
0 commit comments