File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -153,11 +153,17 @@ export async function activate(context: ExtensionContext) {
153153
154154 // Resolve workspace folder
155155 let resolvedConfigPath = configPathRaw ;
156- if ( vscode . workspace . workspaceFolders && vscode . workspace . workspaceFolders . length > 0 ) {
156+ if (
157+ vscode . workspace . workspaceFolders &&
158+ vscode . workspace . workspaceFolders . length > 0
159+ ) {
157160 const workspaceRoot = vscode . workspace . workspaceFolders [ 0 ] . uri . fsPath ;
158161
159162 if ( configPathRaw . includes ( "${workspaceFolder}" ) ) {
160- resolvedConfigPath = configPathRaw . replace ( / \$ \{ w o r k s p a c e F o l d e r \} / g, workspaceRoot ) ;
163+ resolvedConfigPath = configPathRaw . replace (
164+ / \$ \{ w o r k s p a c e F o l d e r \} / g,
165+ workspaceRoot
166+ ) ;
161167 } else if (
162168 configPathRaw . startsWith ( "./" ) ||
163169 ( ! path . isAbsolute ( configPathRaw ) && configPathRaw . length > 0 )
@@ -167,7 +173,7 @@ export async function activate(context: ExtensionContext) {
167173 }
168174
169175 let valeConfig : Record < valeConfigOptions , valeArgs > = {
170- configPath : { value : resolvedConfigPath } as valeArgs ,
176+ configPath : resolvedConfigPath as unknown as valeArgs ,
171177 syncOnStartup : configuration . get ( "vale.valeCLI.syncOnStartup" ) as valeArgs ,
172178 filter : valeFilter as unknown as valeArgs ,
173179 // TODO: Build into proper onboarding
You can’t perform that action at this time.
0 commit comments